/* Sudonilo landing page.
   Shape rule: buttons are capsules (as in the app), tiles 20px, screenshots 32px. */

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --tint: #E9EEF9;
  --ink: #16213D;
  --ink-text: #EEF1F8;
  --text: #16181D;
  --muted: #5E6168;
  --line: #E4E2DC;
  --accent: #2B55B8;
  --on-accent: #FFFFFF;
  --flame: #D9680F;
  --glow: rgba(43, 85, 184, 0.07);
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 18px 48px rgba(22, 33, 61, 0.08);
  --radius-tile: 20px;
  --radius-screen: 32px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0C0E;
    --surface: #16171A;
    --tint: #141B2E;
    --ink: #1B2440;
    --ink-text: #EEF1F8;
    --text: #ECECEE;
    --muted: #A3A6AD;
    --line: #26272B;
    --accent: #86A8F2;
    --on-accent: #0A1633;
    --flame: #F09A4B;
    --glow: rgba(134, 168, 242, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 650; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem; padding: .5rem 1rem;
  background: var(--accent); color: var(--on-accent); border-radius: 999px; z-index: 30;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Icons (Phosphor Bold) */
.icon svg { width: 1em; height: 1em; display: block; }
.icon--tile { display: inline-flex; font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.icon--flame { color: var(--flame); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; font-weight: 650; letter-spacing: .02em; }
.mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 2px; }
.mark i, .mark b { width: 7px; height: 7px; border-radius: 2px; background: color-mix(in srgb, var(--text) 16%, transparent); }
.mark b { background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.langs { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.langs a { text-decoration: none; color: var(--muted); padding: .375rem .5rem; border-radius: 999px; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.langs a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); padding: 1.05rem 1.6rem; min-height: 52px; }
.btn--primary:hover { opacity: .92; }
.btn--small { padding: .6rem 1rem; min-height: 40px; font-size: .9rem; background: var(--accent); color: var(--on-accent); }
.btn--quiet { background: transparent; color: var(--muted); padding: .6rem 1rem; min-height: 40px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"].btn--primary { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.btn[aria-disabled="true"].btn--small { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.btn[aria-disabled="true"] .icon { display: none; }
.link { display: inline-flex; align-items: center; gap: .375rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Screenshots */
.screen {
  border-radius: var(--radius-screen);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 80%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); letter-spacing: -0.04em; }
.lead { margin: 1.25rem 0 2rem; max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); }
.hero__shot { margin: 0; justify-self: center; width: min(300px, 78vw); }

/* Bento */
.features { padding: clamp(3rem, 7vw, 6rem) 0; }
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "hero hero hero hero tint tint"
    "hero hero hero hero ink ink"
    "streak streak streak streak streak streak";
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.tile h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); max-width: 18ch; }
.tile h3 { font-size: 1.35rem; }
.tile p { margin-top: .75rem; color: var(--muted); max-width: 46ch; }
.tile--hero { grid-area: hero; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; padding-bottom: 0; }
.tile--hero .tile__text { align-self: center; padding-bottom: 2.5rem; }
.tile--tint { grid-area: tint; background: var(--tint); }
.tile--ink { grid-area: ink; background: var(--ink); border-color: transparent; color: var(--ink-text); }
.tile--ink p { color: color-mix(in srgb, var(--ink-text) 72%, transparent); }
.tile--ink .icon--tile { color: #A9C1F7; }
.tile--streak { grid-area: streak; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding-block: 0; }
.tile--streak .tile__text { padding-block: 2.5rem; }
.screen--crop { width: 100%; max-width: 300px; justify-self: center; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; aspect-ratio: 720 / 1000; object-fit: cover; object-position: bottom; }
.screen--peek { width: 100%; max-width: 280px; justify-self: center; margin-top: 2.5rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; aspect-ratio: 720 / 760; object-fit: cover; object-position: center 62%; }

/* Languages */
.languages { padding: clamp(3rem, 7vw, 6rem) 0; }
.languages__inner { display: grid; justify-items: center; text-align: center; gap: 3rem; }
.languages__copy { max-width: 40rem; }
.languages h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.languages p { margin: 1rem auto 0; color: var(--muted); max-width: 52ch; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: clamp(1rem, 3vw, 2.5rem); justify-content: center; }
.screen--offset { transform: translateY(2.5rem); }

/* Privacy */
.privacy { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.privacy__inner { max-width: 44rem; }
.privacy h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.privacy__text { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.points { list-style: none; margin: 2rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.points li { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; background: var(--surface); }

/* FAQ */
.faq { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.faq h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); }
.pm { flex: none; color: var(--muted); margin-top: .2rem; }
.pm svg { width: 1.1rem; height: 1.1rem; display: block; }
.pm .m, details[open] .pm .p { display: none; }
details[open] .pm .m { display: block; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Consent */
.consent {
  position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile); box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: center; font-size: .9rem;
}
.consent[hidden] { display: none; }
.consent p { color: var(--muted); }
.consent a { color: var(--accent); }
.consent__actions { display: flex; gap: .25rem; flex: none; }

/* Scroll reveal (only when motion is welcome and JS is running) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .screen--offset.reveal.is-visible { transform: translateY(2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Mobile */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__shot { width: min(300px, 80vw); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "hero" "tint" "ink" "streak"; }
  .tile--hero, .tile--streak { grid-template-columns: 1fr; }
  .tile--hero .tile__text, .tile--streak .tile__text { padding-bottom: 0; }
  .tile--streak .tile__text { padding-top: 2rem; }
  .screen--peek { margin-top: 0; }
  .faq__inner { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .langs a { padding: .375rem .35rem; }
  .nav .js-appstore { display: none; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen { border-radius: 22px; }
  .screen--offset { transform: translateY(1.5rem); }
  .js .screen--offset.reveal.is-visible { transform: translateY(1.5rem); }
}
