/* JWDT Suite marketing site. Brand values from the JWDT brand kit (tokens/brand.css). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --jw-ink: #0B1530;
  --jw-blue: #1E5BFF;
  --jw-deep: #0A2BD8;
  --jw-mist: #F3F6FF;
  --jw-violet: #8B5CFF;
  --jw-gradient: linear-gradient(135deg, #19C8FF 0%, #1F63FF 50%, #8352FF 100%);

  --fg: var(--jw-ink);
  --fg-muted: #4A5573;
  --fg-subtle: #6B7591;
  --bg: #FFFFFF;
  --bg-mist: var(--jw-mist);
  --border: #DCE2F2;
  --action: var(--jw-blue);
  --action-hover: var(--jw-deep);

  --radius: 6px;
  --radius-lg: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--fg); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 2px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-large { min-height: 48px; padding: 0 24px; font-size: 16px; }
.button-primary { background: var(--action); color: #fff; }
.button-primary:hover { background: var(--action-hover); }
.button-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.button-ghost:hover { border-color: var(--fg); }
.button-light { background: #fff; color: var(--fg); }
.button-light:hover { background: var(--bg-mist); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { height: 36px; width: auto; }
.brand-divider { width: 1px; height: 22px; background: var(--border); }
.brand-label { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a {
  color: var(--fg-muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--fg); background: var(--bg-mist); }
.header-actions { margin-left: auto; display: flex; gap: 8px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--action); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 24px; }
.proof-list li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; font-size: 15px; }
.proof-list strong { font-weight: 700; }
.proof-list span { color: var(--fg-muted); }

/* Hero visual: illustrative app window built from the real menu names */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 10%;
  background: var(--jw-gradient); opacity: 0.18; filter: blur(48px); border-radius: 40px;
}
.app-window {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -24px rgba(11, 21, 48, 0.35); overflow: hidden;
}
.app-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F6F7FB; border-bottom: 1px solid var(--border); }
.app-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DAE8; }
.app-window-bar em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--fg-subtle); margin-left: 8px; }
.app-window-body { padding: 18px; }
.app-search {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px;
  font-size: 13px; color: var(--fg-subtle);
}
.app-group { margin: 16px 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 2px; }
.app-card b { font-size: 13px; font-weight: 700; }
.app-card small { font-size: 11.5px; color: var(--fg-subtle); }
.app-card.is-active { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-mist { background: var(--bg-mist); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-lead { margin-top: 14px; color: var(--fg-muted); font-size: 17px; }

/* Modules */
.module-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-group { border-top: 2px solid var(--fg); padding-top: 20px; }
.module-group h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.module-group dl { margin: 0; }
.module-group dl > div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.module-group dt { font-weight: 700; font-size: 15px; }
.module-group dd { margin: 4px 0 0; color: var(--fg-muted); font-size: 14.5px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.step-no { display: block; font-weight: 800; font-size: 14px; color: var(--action); margin-bottom: 18px; }
.steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--fg-muted); font-size: 15px; }

/* Editions */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.edition {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.edition-featured { border-color: var(--fg); box-shadow: 0 16px 40px -28px rgba(11, 21, 48, 0.45); }
.edition h3 { font-size: 24px; font-weight: 800; }
.edition > p { color: var(--fg-muted); }
.edition ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.edition li { padding-left: 22px; position: relative; }
.edition li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px;
  border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg);
}
.edition .button { margin-top: auto; align-self: flex-start; }
.edition .edition-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--fg); color: #fff;
}
.edition .edition-tag-soon { background: var(--bg-mist); color: var(--fg-muted); border: 1px solid var(--border); }
.note { margin-top: 28px; color: var(--fg-muted); font-size: 15px; max-width: 760px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--fg-muted); }

/* CTA */
.cta { background: var(--fg); color: #fff; }
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.contact-copy > p:not(.eyebrow) { margin-top: 12px; color: #C7CEE3; max-width: 40em; }

/* Contact and lead form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.eyebrow-light { color: #8FB0FF; }
.contact-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.contact-steps li {
  counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px;
  font-size: 15px; color: #C7CEE3;
}
.contact-steps li::before {
  content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  border: 1px solid #2E3B66; color: #fff;
}
.contact-steps strong { color: #fff; font-weight: 700; }

.lead-form {
  background: #fff; color: var(--fg); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 16px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--fg-subtle); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: #fff;
  border: 1px solid #C9D1E6; border-radius: var(--radius); padding: 10px 12px; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(30, 91, 255, 0.18); }
.field [aria-invalid="true"] { border-color: #C62828; }
.field-error { font-size: 13px; color: #B3261E; min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: 20px 1fr; column-gap: 10px; align-items: start; }
.field-check input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--action); }
.field-check label { font-weight: 400; font-size: 14px; color: var(--fg-muted); }
.field-check .field-error { grid-column: 2; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.lead-submit { justify-self: start; }
.lead-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.lead-status { font-size: 14px; color: var(--fg-muted); }
.lead-status:empty { display: none; }
.lead-status.is-error { color: #B3261E; }
.lead-status.is-success { color: #1B6E3A; font-weight: 600; }

/* Terms and conditions */
.terms h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.terms-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 20px 0 0; font-size: 14px; }
.terms-meta div { display: flex; gap: 8px; }
.terms-meta dt { color: var(--fg-subtle); }
.terms-meta dd { margin: 0; font-weight: 600; }
.terms-notice {
  margin-top: 24px; padding: 14px 16px; border-radius: var(--radius);
  background: #FFF6E0; border: 1px solid #F0D48A; color: #5C4300; font-size: 15px;
}
.terms-toc { margin-top: 32px; padding: 20px 24px; background: var(--bg-mist); border-radius: var(--radius-lg); }
.terms-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 14.5px; }
.terms-toc li { break-inside: avoid; padding: 3px 0; }
.terms-toc a { color: var(--fg); text-decoration: none; }
.terms-toc a:hover { color: var(--action); text-decoration: underline; }
.terms-body { margin-top: 40px; }
.terms-section { padding: 24px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.terms-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.terms-section p { color: var(--fg-muted); }
.terms-section p + p { margin-top: 12px; }
.terms-source { margin-top: 32px; font-size: 14px; color: var(--fg-subtle); }

/* Not found */
.not-found { min-height: 50vh; display: grid; align-content: center; gap: 16px; }
.not-found h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.not-found p { color: var(--fg-muted); max-width: 32em; }
.not-found .button { justify-self: start; margin-top: 8px; }

/* Footer */
.site-footer { background: #070E22; color: #AEB7D0; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand .brand-divider { background: #2A3557; }
.site-footer nav { margin-left: auto; display: flex; gap: 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .module-groups, .editions { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-actions .button-ghost { display: none; }
  .proof-list li { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .lead-submit { justify-self: stretch; }
  .terms-toc ol { columns: 1; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 380px) {
  .brand img { height: 30px; }
  .brand-label { font-size: 16px; }
  .header-actions .button { padding: 0 12px; font-size: 14px; }
}
