/* The kemenger.org website: landing page, privacy policy and the course / book link pages.
   Same look as the app: navy, orange and cream (lib/utils/colors.dart), Inter. Light only. */
:root {
  --page: #fffbf7; --surface: #ffffff; --line: #f1e4d8; --fg: #191c36; --muted: #666981;
  --navy: #191c36; --accent: #f7a464; --soft: #fcebdd; --blue: #0961f5; --blue-soft: #e6efff;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: flex-end; align-items: center; }
.nav a { padding: 6px 11px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--fg); }
.nav a.studio { color: var(--blue); }
.menu { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 14px; font-weight: 600; }
.lang { position: relative; margin-left: 6px; }
.lang summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 5px 12px; font-weight: 600; font-size: 13px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px #191c3626; min-width: 150px; z-index: 40; }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 14px; }
.lang li a:hover { background: var(--soft); }

/* buttons and store badges */
.btn { display: inline-block; padding: 11px 24px; border-radius: 24px; background: var(--accent); color: var(--navy); font-weight: 700; text-decoration: none; border: 0; }
.btn:hover { filter: brightness(.96); }
.btn.navy { background: var(--navy); color: #fff; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stores a { display: block; line-height: 0; }
.stores img { height: 48px; width: auto; border-radius: 8px; }

/* hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.hero .lead { margin-top: 16px; font-size: 18px; opacity: .85; max-width: 52ch; }
.hero .stores { margin-top: 28px; }
.hero-phones { position: relative; height: 430px; }
.hero-phones img { position: absolute; width: min(320px, 60%); clip-path: inset(0 0 9% 0); filter: drop-shadow(0 18px 30px #0007); }
.hero-phones .p1 { left: 2%; top: 0; z-index: 2; }
.hero-phones .p2 { right: 0; top: 56px; width: min(280px, 52%); }

/* sections */
.sec { padding-block: 72px; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-h { text-align: center; max-width: 62ch; margin: 0 auto 40px; }
.sec-h h2 { font-size: 30px; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.sec-h p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; }
.feat-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.feat-item { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.feat-item.on { border-color: var(--accent); background: var(--soft); }
.feat-item i { font-size: 28px; line-height: 1; color: var(--navy); flex: none; margin-top: 2px; }
.feat-item b { display: block; font-size: 16px; }
.feat-item em { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 2px; }
.phone-frame { position: relative; width: 250px; max-width: 100%; margin-inline: auto; aspect-ratio: 190 / 412; border: 7px solid var(--navy); border-radius: 34px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 50px #191c3640; }
.phone-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.phone-frame img.on { opacity: 1; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step b { display: block; font-size: 48px; line-height: 1; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); }

.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; justify-content: safe center; }
.shots a { flex: none; scroll-snap-align: center; line-height: 0; }
.shots img { height: 420px; width: auto; border-radius: 22px; border: 6px solid var(--navy); box-shadow: 0 12px 28px #191c3626; background: var(--navy); }

.split { background: var(--soft); }
.split-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: center; }
.split h2 { font-size: 30px; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.split p { color: var(--muted); margin: 10px 0 20px; font-size: 16px; }
.split .stores { margin-bottom: 18px; }
.split img.shot { display: block; max-width: 320px; margin-inline: auto; clip-path: inset(0 0 9% 0); }

.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--page); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.rev h3 { font-size: 17px; margin-bottom: 8px; }
.rev p { color: var(--muted); margin-bottom: 16px; }
.who { display: flex; gap: 12px; align-items: center; }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.who small { color: var(--muted); display: block; }

.dl { background: var(--navy); color: #fff; text-align: center; }
.dl .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.dl h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; text-wrap: balance; }
.dl .lead { opacity: .8; margin: 10px auto 0; max-width: 56ch; font-size: 16px; }
.dl .stores { justify-content: center; margin-top: 24px; }
.studio-cta { margin: 44px auto 0; max-width: 620px; padding: 24px; border-radius: 16px; background: #ffffff12; border: 1px solid #ffffff2a; }
.studio-cta h3 { font-size: 20px; }
.studio-cta p { opacity: .8; margin-top: 6px; }
.studio-cta .btn { margin-top: 16px; }

.faqs { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { color: var(--muted); margin-top: 8px; }

.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.notice { grid-column: 1 / -1; border-radius: 12px; padding: 12px 16px; background: var(--soft); }
.notice h3 { font-size: 16px; }
.info { display: grid; gap: 14px; align-content: start; color: var(--muted); }
.info b { color: var(--fg); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }
.alert-danger, .alert-success { border-radius: 12px; padding: 12px 16px; }
.alert-danger { background: #fde4e6; color: #a31d28; }
.alert-success { background: #e3f4e5; color: #1f5f1b; }

.ftr { background: var(--navy); color: #fff; padding-block: 44px 0; }
.ftr-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.ftr h4 { margin-bottom: 8px; font-size: 14px; }
.ftr a { display: block; opacity: .8; text-decoration: none; padding: 2px 0; }
.ftr a:hover { opacity: 1; text-decoration: underline; }
.ftr p, .ftr li { opacity: .75; }
.ftr ul { list-style: none; padding: 0; }
.ftr small { opacity: .7; display: block; margin-top: 6px; }
.copy { border-top: 1px solid #ffffff22; margin-top: 30px; padding-block: 16px; font-size: 12px; opacity: .75; }
.copy a { display: inline; }

/* privacy policy */
.doc { padding-block: 56px 80px; }
.doc .body { max-width: 76ch; }
.doc h1 { font-size: 34px; letter-spacing: -.02em; font-weight: 800; margin-bottom: 20px; }
.doc .body > div, .doc .body > p { color: var(--muted); }
.doc h2, .doc h3 { color: var(--fg); margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { color: var(--blue); }

/* course and book link pages */
.share { padding-block: 44px 64px; }
.share-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 36px; align-items: start; }
.share-grid.course { grid-template-columns: 320px minmax(0, 1fr) 270px; }
.cover { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 14px; background: var(--line); box-shadow: 0 16px 36px #191c3633; }
.course .cover { aspect-ratio: 3 / 2; }
.kind { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.share h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 8px 0 6px; text-wrap: balance; }
.by { color: var(--muted); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; list-style: none; padding: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 600; }
.fact.hl { background: var(--soft); border-color: transparent; }
.desc { color: var(--muted); max-width: 64ch; }
.desc p + p { margin-top: 10px; }
.open { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; justify-items: center; text-align: center; position: sticky; top: 92px; }
.open h2 { font-size: 17px; }
.open .btn { display: none; width: 100%; text-align: center; }
.open small { color: var(--muted); }
.qr { width: 156px; height: 156px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.open .stores { justify-content: center; }
.open .stores img { height: 40px; }

@media (max-width: 900px) {
  .hero-in, .split-in, .feat, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { height: 360px; max-width: 520px; margin-inline: auto; width: 100%; }
  .ftr-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-grid, .share-grid.course { grid-template-columns: 220px minmax(0, 1fr); }
  .share-grid.course { grid-template-columns: 280px minmax(0, 1fr); }
  .open { grid-column: 1 / -1; position: static; }
  .feat-phone { order: -1; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1px solid var(--line); padding: 10px 24px 16px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .lang { margin: 6px 0 0; }
  .lang ul { position: static; box-shadow: none; margin-top: 6px; }
  .menu { display: inline-block; }
  .hero h1 { font-size: 32px; }
  .hero-in { padding-block: 36px; }
  .hero-phones { height: 300px; }
  .sec { padding-block: 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .ftr-in { grid-template-columns: minmax(0, 1fr); }
  .shots img { height: 340px; }
  .wrap { padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
  .share { padding-block: 28px 44px; }
  .share-grid, .share-grid.course { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .share .cover { max-width: 200px; margin-inline: auto; }
  .share .course .cover { max-width: 100%; }
  .share h1 { font-size: 27px; }
  .open .qr { display: none; }
  .open .btn { display: block; }
  .open .qr-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .phone-frame img { transition: none; } }
