/* Sugoso Pro waitlist - v5. Premium, clean, minimal. A softer (not pitch-black) navy
   base with a gentle lavender/coral ambient and a warm coral->gold->pink->violet
   diagonal gradient signature. CLEAR liquid glass (transparent, light blur, no top
   sheen) - reads like glass, not frost. No borders or static outlines. System font
   (San Francisco on the Mac audience). WCAG AA on all text. No third-party fonts/scripts. */

:root {
  color-scheme: light dark;

  /* Light */
  --bg: #f1f0f7;
  --bg-2: #e8e6f1;
  --text: #18181f;
  --text-2: #565463;
  --text-3: #6d6b78;

  --glass: rgba(255, 255, 255, 0.46);
  --field: rgba(22, 18, 46, 0.04);
  --field-inset: inset 0 1px 2px rgba(22, 18, 46, 0.06);
  --accent-tint: rgba(236, 74, 44, 0.12);

  --accent: #ec4a2c;
  --accent-text: #cf3d20;
  --accent-ring: rgba(236, 74, 44, 0.32);
  --success: #157a43;

  --grad-warm: linear-gradient(120deg, #ff7a4d 0%, #ffae3d 36%, #ff5d8f 70%, #b067ff 100%);
  --grad-cta: linear-gradient(120deg, #d23f26 0%, #c63864 100%);
  --btn-text: #ffffff;

  --shadow-card: 0 18px 40px -26px rgba(28, 20, 60, 0.30), 0 3px 10px -6px rgba(28, 20, 60, 0.10);
  --shadow-shot: 0 22px 44px -22px rgba(28, 20, 60, 0.28), 0 4px 12px -8px rgba(28, 20, 60, 0.14);

  --r-card: 22px;
  --r-field: 13px;
  --r-pill: 999px;
  --pad: 26px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1000px;
  --measure: 600px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d29;
    --bg-2: #15151f;
    --text: #f4f4f8;
    --text-2: #aaaab8;
    --text-3: #8d8d9c;

    --glass: rgba(255, 255, 255, 0.04);
    --field: rgba(0, 0, 0, 0.18);
    --field-inset: inset 0 1px 2px rgba(0, 0, 0, 0.26);
    --accent-tint: rgba(255, 106, 77, 0.16);

    --accent: #ff6a4d;
    --accent-text: #ff8266;
    --accent-ring: rgba(255, 106, 77, 0.42);
    --success: #34c77b;

    --shadow-card: 0 24px 48px -28px rgba(0, 0, 0, 0.6), 0 5px 14px -8px rgba(0, 0, 0, 0.42);
    --shadow-shot: 0 26px 50px -24px rgba(0, 0, 0, 0.58), 0 5px 14px -8px rgba(0, 0, 0, 0.44);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Fixed background: a softer wash + gentle lavender/coral glows + a faint warm streak */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after { content: ""; position: absolute; }
.ambient::before {
  inset: 0;
  background:
    radial-gradient(760px 500px at 84% -8%, rgba(176, 103, 255, 0.16), transparent 60%),
    radial-gradient(700px 480px at 10% 2%, rgba(255, 122, 77, 0.13), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.ambient::after {
  left: -10%; top: -6%; width: 120%; height: 340px;
  transform: rotate(-12deg); background: var(--grad-warm); opacity: 0.08; filter: blur(52px);
}
.ambient span {
  position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
  width: 60vw; max-width: 640px; height: 420px; border-radius: 50%; filter: blur(70px);
  background: radial-gradient(circle, var(--accent), transparent 64%); opacity: 0.08;
}

/* CLEAR liquid glass: transparent + light blur, no top sheen. Depth from shadow only. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.9); }
  @media (prefers-color-scheme: dark) { :root { --glass: rgba(36, 36, 50, 0.94); } }
}

/* Layout */
.topbar, .hero, .showcase, .how, .features, .cta-again, .faq, .site-footer {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5);
}
main { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* Brand lockup */
.topbar { padding-top: var(--s-6); display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); padding: 4px; border-radius: 12px; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 17px;
  border-radius: 9px; background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand-name { font: 600 18px/1 var(--font); letter-spacing: -0.02em; }
.brand-pro {
  font: 700 11px/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: #fff;
  background: var(--grad-cta); padding: 5px 9px; border-radius: var(--r-pill);
}

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; padding-top: var(--s-7); }
.eyebrow {
  margin: 0; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--accent-tint);
  font: 600 12.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text);
}
.hero-title {
  margin: var(--s-5) 0 0; max-width: 16ch;
  font: 700 clamp(38px, 5vw, 52px)/1.12 var(--font); letter-spacing: -0.025em; color: var(--text);
}
.hero-sub {
  margin: var(--s-4) 0 var(--s-6); max-width: var(--measure);
  font: 400 clamp(17px, 1.7vw, 19px)/1.6 var(--font); color: var(--text-2);
}

/* Signup form (both instances). Labels + inputs left-aligned. Padding symmetric. */
.waitlist-wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; }
.waitlist { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: var(--pad); text-align: left; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 600 13px/1.2 var(--font); color: var(--text-2); }
.field .opt { margin-left: 6px; font-weight: 400; color: var(--text-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; }
input[type="email"], input[type="text"] {
  width: 100%; font: 400 16px/1.3 var(--font); text-align: left; color: var(--text);
  background: var(--field); border: 0; border-radius: var(--r-field);
  padding: 14px 15px; box-shadow: var(--field-inset);
  transition: box-shadow 0.16s ease;
}
input::placeholder { color: var(--text-3); }
input[type="email"]:focus, input[type="text"]:focus { outline: none; box-shadow: var(--field-inset), 0 0 0 3px var(--accent-ring); }
input[aria-invalid="true"] { box-shadow: var(--field-inset), 0 0 0 3px var(--accent-ring); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; font: 400 13px/1.5 var(--font); color: var(--text-2); }
.consent input { margin-top: 1px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.consent a, .reassure a, .faq a { color: var(--accent-text); text-underline-offset: 2px; }

.btn {
  width: 100%; margin-top: var(--s-2);
  font: 600 17px/1 var(--font); letter-spacing: -0.01em;
  border: 0; border-radius: var(--r-field); padding: 16px 20px; cursor: pointer; color: var(--btn-text);
  background: var(--grad-cta);
  box-shadow: 0 10px 24px -16px rgba(214, 58, 70, 0.6);
  transition: filter 0.16s ease, transform 0.06s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

/* status: collapses when idle (no dead space); appears on submit */
.status { margin: 0; font: 500 14px/1.5 var(--font); }
.status:empty { display: none; }
.status.ok { color: var(--success); font-weight: 600; }
.status.err { color: var(--accent-text); }
.waitlist.sent .field, .waitlist.sent .consent, .waitlist.sent .btn { display: none; }
.waitlist.sent .status { font-size: 16px; line-height: 1.55; }

.reassure { margin: var(--s-4) auto 0; max-width: 36em; font: 400 13px/1.6 var(--font); color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero screenshot (floats with its own shadow) */
.hero-visual { margin: var(--s-7) 0 0; display: flex; justify-content: center; }
.hero-visual img { width: 282px; max-width: 78vw; height: auto; border-radius: 18px; filter: var(--shadow-shot); }

/* Trust strip */
.trust { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); }
.trust li { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font); color: var(--text-2); padding: 6px 0; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Sections */
.section-title { margin: 0 0 var(--s-3); font: 700 clamp(27px, 3vw, 34px)/1.15 var(--font); letter-spacing: -0.02em; }
.section-sub { margin: 0 0 var(--s-6); font: 400 16px/1.6 var(--font); color: var(--text-2); }

/* Showcase: three real themed screenshots, floating (no wrapper) */
.showcase { padding-top: var(--s-8); }
.theme-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-6); justify-items: center; }
@media (min-width: 720px) { .theme-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.theme-grid li { width: 100%; max-width: 300px; display: flex; flex-direction: column; align-items: center; }
.theme-grid img { width: 248px; max-width: 72vw; height: auto; border-radius: 16px; filter: var(--shadow-shot); }
.theme-name { margin: var(--s-4) 0 0; font: 500 14px/1.4 var(--font); color: var(--text-2); }

/* Built into the panel: centered, two real page screenshots, no numbered badges */
.how { padding-top: var(--s-8); text-align: center; }
.how .section-sub { max-width: 40em; margin-inline: auto; }
.screens { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--s-7); margin-top: var(--s-5); }
.screen { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.screen img { width: 256px; max-width: 74vw; height: auto; border-radius: 16px; filter: var(--shadow-shot); }
.screen figcaption { font: 500 14px/1.4 var(--font); color: var(--text-2); }

/* Features: clear glass cards, one-color (accent) glass icon chips, minimal */
.features { padding-top: var(--s-8); }
.feature-grid { list-style: none; margin: var(--s-6) 0 0; padding: 0; width: 100%; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); text-align: left;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%);
  border-radius: var(--r-card); padding: var(--pad); box-shadow: var(--shadow-card);
}
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: var(--accent-tint); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0; font: 600 18px/1.3 var(--font); letter-spacing: -0.01em; }
.feature p { margin: 0; font: 400 15px/1.6 var(--font); color: var(--text-2); }

/* Second CTA */
.cta-again { padding-top: var(--s-8); display: flex; flex-direction: column; align-items: center; }
.cta-again .section-title { margin-bottom: var(--s-5); }

/* FAQ */
.faq { padding-top: var(--s-8); }
.faq-list { max-width: 640px; margin: var(--s-6) auto 0; display: flex; flex-direction: column; gap: var(--s-3); text-align: left; }
.faq details { overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative; font: 600 16px/1.4 var(--font); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.18s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq details p { margin: 0; padding: 0 22px 20px; font: 400 15px/1.65 var(--font); color: var(--text-2); }

/* Footer */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding-top: var(--s-8); padding-bottom: var(--s-7); }
.foot-brand { font: 600 14px/1 var(--font); color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.foot-links a { font: 400 14px/1 var(--font); color: var(--text-3); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.foot-links a:hover { color: var(--text); }
.foot-copy { font: 400 13px/1 var(--font); color: var(--text-3); }

/* Accessible focus without static outlines: a soft ring via box-shadow */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: none; }
a:focus-visible, summary:focus-visible, .brand:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 10px; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }
.consent input:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Legal documents - readable left-aligned body in a clear glass card */
body.doc { display: block; text-align: left; }
.doc-card {
  max-width: 680px; margin: 56px auto 96px; padding: 44px 40px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.doc-card .back { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font); color: var(--accent-text); text-decoration: none; margin-bottom: 24px; padding: 6px 0; }
.doc-card h1 { margin: 0 0 10px; font: 700 clamp(28px, 5vw, 34px)/1.1 var(--font); letter-spacing: -0.02em; }
.doc-card h2 { margin: 34px 0 10px; font: 600 18px/1.3 var(--font); }
.doc-card p { margin: 0 0 15px; font: 400 16px/1.65 var(--font); color: var(--text-2); }
.doc-card a { color: var(--accent-text); }
.doc-meta { font-size: 13px; color: var(--text-3); }
.doc-note { margin: 20px 0 8px; padding: 16px 18px; font: 400 14px/1.6 var(--font); color: var(--text-2); background: var(--field); border-radius: var(--r-field); }
