/* Lisan website. Palette and type mirror lib/app/theme.dart. */

@font-face { font-family: 'Young Serif'; src: url('../fonts/YoungSerif-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --iznik: #1F3F86;
  --nar: #C2343D;
  --turkuaz: #1E8C8A;
  --safran: #D98A1F;
  --gece: #1C3570;
  --bg: #EEF2F8;
  --surface: #FFFFFF;
  --ink: #10203F;
  --muted: #56647E;
  --line: #D5DCE8;
  --tint: #E4EAF6;
  --nar-tint: #F7E1E3;
  --turkuaz-tint: #E0F0EF;
  --cream: #FCF0DF;
  --accent: var(--iznik);
  --serif: 'Young Serif', 'PT Serif', Georgia, serif;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 32, 63, .06), 0 12px 32px -12px rgba(16, 32, 63, .18);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'%3E%3Crect x='12.88' y='12.88' width='30.24' height='30.24'/%3E%3Cpolygon points='28,6.62 49.38,28 28,49.38 6.62,28'/%3E%3Ccircle cx='28' cy='28' r='6.16'/%3E%3Ccircle cx='0' cy='0' r='5.04'/%3E%3Ccircle cx='56' cy='0' r='5.04'/%3E%3Ccircle cx='0' cy='56' r='5.04'/%3E%3Ccircle cx='56' cy='56' r='5.04'/%3E%3C/svg%3E");
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1630;
    --surface: #15224A;
    --ink: #EEF2F8;
    --muted: #A6B2CC;
    --line: #26355F;
    --tint: #1C2C5C;
    --nar-tint: #3A1E2C;
    --turkuaz-tint: #143A44;
    --cream: #3A2D17;
    --accent: #8FA9E8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0C1630; --surface: #15224A; --ink: #EEF2F8; --muted: #A6B2CC; --line: #26355F;
  --tint: #1C2C5C; --nar-tint: #3A1E2C; --turkuaz-tint: #143A44; --cream: #3A2D17; --accent: #8FA9E8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.tr { font-family: var(--serif); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 24px; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--iznik); color: #fff;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #18346f; }
.btn:active { transform: scale(.97); }
.btn.small { padding: 9px 16px; font-size: 14px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 180px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #0B0F1A; color: #fff; text-decoration: none;
  transition: transform .15s;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: .8; }
.store strong { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; }
.store-note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--nar); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--turkuaz); }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Lock Screen demo */
.phone {
  position: relative; width: min(330px, 100%); aspect-ratio: 330 / 690; margin-inline: auto;
  border-radius: 54px; padding: 11px;
  background: #0B0F1A;
  box-shadow: 0 40px 80px -30px rgba(16, 32, 63, .55), inset 0 0 0 2px #2A3245;
}
.screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; color: #fff;
  background: var(--pattern), radial-gradient(120% 80% at 30% 0%, #3F63B8 0%, var(--iznik) 45%, #0F2154 100%);
  background-size: 42px 42px, auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px;
}
.island { width: 32%; height: 28px; border-radius: 20px; background: #000; flex: none; }
.lock-date { margin-top: 26px; font-size: 15px; font-weight: 600; opacity: .9; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-date .tr { font-family: var(--sans); }
.lock-time { font-family: var(--sans); font-weight: 700; font-size: 86px; line-height: 1; letter-spacing: -.02em; margin-top: 2px; }
.lock-widgets { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; width: 100%; margin-top: 16px; align-items: stretch; }
.acc {
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; min-height: 68px;
}
.acc.rect { padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.acc .eb { font-size: 10px; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.acc .ph { font-family: var(--serif); font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc .mn { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc.circ { width: 68px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.acc.circ svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.ring-label { font-weight: 700; font-size: 17px; line-height: 1; }
.ring-label span { font-size: 11px; opacity: .7; font-weight: 600; }
button.acc { border: 0; color: inherit; font: inherit; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; }
.acc.circ.listen svg { position: static; inset: auto; width: 22px; height: 22px; }
button.acc span { font-size: 10px; font-weight: 700; }
button.acc.playing { background: rgba(255, 255, 255, .32); }

.big-widget {
  margin-top: auto; width: 100%; border-radius: 26px; padding: 16px;
  background: var(--pattern), var(--gece); background-size: 34px 34px, auto;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transition: opacity .35s;
}
.big-widget.fading { opacity: 0; }
.bw-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.chip { background: var(--safran); color: #2B1700; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; font-size: 10px; }
.cadence { opacity: .7; font-weight: 600; }
.bw-phrase { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin: 12px 0 2px; }
.bw-pron { font-size: 13px; opacity: .7; letter-spacing: .02em; }
.bw-pron b { opacity: 1; color: #fff; font-weight: 700; }
.bw-meaning { font-size: 15px; font-weight: 600; margin-top: 8px; }
.bw-note { font-size: 12px; opacity: .7; margin-top: 2px; min-height: 1.4em; }
.bw-actions { display: flex; gap: 8px; margin-top: 12px; }
.bw-actions button {
  border: 0; cursor: pointer; border-radius: 999px; font: 700 13px/1 var(--sans);
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
}
.bw-play { background: var(--nar); color: #fff; }
.bw-slow { background: rgba(255, 255, 255, .14); color: #fff; }
.bw-actions button svg { width: 14px; height: 14px; }
.bw-actions button.playing { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

.demo-langs { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.demo-langs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 600 13px/1 var(--sans); padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.demo-langs button[aria-pressed="true"] { background: var(--iznik); color: #fff; border-color: var(--iznik); }
.demo-caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint); color: var(--accent); font: 400 20px/1 var(--serif); margin-bottom: 18px;
}
.step h3 { font-size: 22px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font: 700 18px/1.3 var(--sans); margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.ic.blue { background: var(--tint); color: var(--accent); }
.ic.red { background: var(--nar-tint); color: var(--nar); }
.ic.green { background: var(--turkuaz-tint); color: var(--turkuaz); }
.ic.gold { background: var(--cream); color: var(--safran); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Screenshot strip */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px;
  margin-inline: calc((100% - min(1120px, 100% - 32px)) / -2 - 0px);
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 30px;
  border: 6px solid #0B0F1A; box-shadow: var(--shadow); background: #fff;
}
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 12px; }

/* Units */
.units { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.unit {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
}
.unit .tr { font-size: 18px; }
.unit span:last-child { color: var(--muted); font-size: 14px; }

/* Privacy band */
.band {
  border-radius: 32px; padding: clamp(32px, 6vw, 64px); color: #fff;
  background: var(--pattern), var(--gece); background-size: 56px 56px, auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.band h2 { font-size: clamp(30px, 4vw, 42px); }
.band p { opacity: .82; font-size: 18px; }
.band a { color: #fff; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); padding: 14px 18px; border-radius: 16px; font-weight: 600; }
.band li svg { width: 20px; height: 20px; color: #9EE0D8; flex: none; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-inline: auto; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 2px solid transparent; }
.plan.pro { border-color: var(--iznik); }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.plan .tag { font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--safran); color: #2B1700; padding: 5px 9px; border-radius: 999px; }
.plan > p { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--turkuaz); }
.fine { color: var(--muted); font-size: 14px; text-align: center; max-width: 720px; margin: 24px auto 0; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--serif); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--muted); padding-bottom: 18px; }
.faq details > div p:last-child { margin: 0; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta .stores { justify-content: center; margin-top: 24px; }
.cta p { color: var(--muted); font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--ink); }

/* Document pages (privacy, terms, support) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc h3 { font: 700 18px/1.3 var(--sans); margin-top: 28px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 28px; }
.doc .summary h2 { margin-top: 0; font-size: 22px; }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint); text-decoration: none; font-size: 14px; font-weight: 600; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin: 24px 0; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { display: block; color: var(--ink); font-size: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .big-widget { transition: none; }
}
