/* Atay — landing page. Built from the app's tokens and components so it reads as the same product. */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.dj { font-family: var(--serif); font-weight: 700; color: var(--green); }
.ar { font-family: var(--sans); font-weight: 600; direction: rtl; unicode-bidi: isolate; }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance;
}
.h2 {
  margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance;
}
.h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-green { background: var(--green); color: var(--cream); box-shadow: var(--shadow-cta); }
@media (hover: hover) { .btn-green:hover { background: #10483F; } }
.btn-cream { background: var(--cream); color: var(--green); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
@media (hover: hover) { .btn-cream:hover { background: #fff; } }
.btn-ghost { background: transparent; color: var(--ink-2); }
@media (hover: hover) { .btn-ghost:hover { background: var(--green-tint); color: var(--green); } }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.hero-card .btn:focus-visible, .cta-band .btn:focus-visible { outline-color: var(--cream); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 238, 223, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  transition: box-shadow .2s;
}
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line-strong), 0 8px 24px -16px rgba(60, 42, 20, .35); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand img { height: 28px; width: auto; }
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--green); line-height: 1; }
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.site-nav { display: none; gap: 4px; }
.site-nav a {
  padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--green-tint); color: var(--green); }
.site-nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-actions .btn { min-height: 44px; padding: 0 16px; }
@media (min-width: 900px) { .site-nav { display: flex; } }
@media (max-width: 420px) { .head-login { display: none; } }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section--sunken { background: var(--surface-sunken); }

.card { background: var(--surface-raised); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }

.star-bg { position: absolute; pointer-events: none; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
@media (min-width: 900px) { .hero { padding: 64px 0 112px; } }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 100px;
  background: var(--surface-raised); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 700; color: var(--green);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero .star-bg { width: 520px; right: -180px; top: -140px; opacity: .06; }

/* Phone mock-up (HTML, not an image) */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.phone {
  position: relative; width: 300px; max-width: 100%; border-radius: 46px; padding: 10px;
  background: #221C15; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 40px 80px -30px rgba(44, 32, 19, .55), 0 18px 40px -20px rgba(13, 69, 63, .35);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px;
  border-radius: 20px; background: #221C15; z-index: 2;
}
.screen {
  position: relative; overflow: hidden; border-radius: 37px; background: var(--surface-base);
  padding: 52px 16px 84px; display: flex; flex-direction: column; gap: 14px; min-height: 560px;
  font-size: 12px; line-height: 1.4;
}
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.m-title { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.m-sub { color: var(--ink-2); font-size: 11px; margin-top: 3px; }
.m-streak {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 100px;
  background: var(--surface-raised); box-shadow: var(--shadow-1); font: 600 11px var(--mono); color: var(--ink);
}
.m-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 16px; color: var(--cream);
  background: var(--surface-hero); box-shadow: var(--shadow-hero); display: flex; flex-direction: column; gap: 10px;
}
.m-chip { align-self: flex-start; padding: 3px 9px; border-radius: 100px; background: var(--surface-hero-deep); font-size: 10px; font-weight: 700; }
.m-hero-title { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.m-hero .dj { color: var(--cream-2); font-size: 13px; }
.m-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.m-days i { height: 4px; border-radius: 4px; background: rgba(251, 246, 236, .2); }
.m-days i.d { background: var(--cream); }
.m-days i.t { background: var(--saffron); }
.m-btn { align-self: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--cream); color: var(--green); font-size: 11px; font-weight: 700; }
.m-list { border-radius: 16px; background: var(--surface-raised); box-shadow: var(--shadow-1); padding: 2px 0; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.m-row + .m-row { border-top: 1px solid var(--line); }
.m-ico { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--green); }
.m-ico.ring { background: conic-gradient(var(--green) 0 154deg, var(--line-strong) 154deg 360deg); position: relative; }
.m-ico.ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface-raised); }
.m-ico.lock { background: var(--surface-sunken); }
.m-row b { display: block; font-family: var(--serif); font-size: 14px; line-height: 1.1; color: var(--ink); }
.m-row .dj { font-size: 11px; font-weight: 600; }
.m-row .end { margin-left: auto; font-size: 10px; color: var(--ink-3); }
.m-row.is-locked b, .m-row.is-locked .dj { color: var(--ink-3); }
.m-nav {
  position: absolute; left: 14px; right: 14px; bottom: 16px; height: 48px; border-radius: 30px;
  background: var(--green); display: flex; align-items: center; justify-content: space-around;
  box-shadow: 0 10px 24px -10px rgba(13, 69, 63, .6);
}
.m-nav span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.m-nav span.on { background: var(--cream); }

.float {
  position: absolute; z-index: 3; border-radius: 18px; background: var(--surface-raised);
  box-shadow: var(--shadow-2); padding: 12px 14px;
}
.float-wod { left: max(0px, calc(50% - 250px)); bottom: 56px; background: var(--surface-hero); color: var(--cream); box-shadow: var(--shadow-hero); }
.float-wod small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-2); }
.float-wod strong { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.1; }
.float-wod .ar { font-size: 16px; color: var(--cream-2); margin-left: 6px; }
.float-wod span.fr { display: block; font-size: 12px; color: var(--cream-2); }
.float-done { right: max(0px, calc(50% - 300px)); top: 46%; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.float-done .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
@media (max-width: 520px) {
  .float-wod { left: 0; bottom: 24px; transform: scale(.88); transform-origin: left bottom; }
  .float-done { right: 0; top: 44%; transform: scale(.88); transform-origin: right top; }
}

/* ---------- Truth ---------- */

.truth { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .truth { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.truth-copy { display: flex; flex-direction: column; gap: 18px; }
.truth-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 34em; }
.quote {
  position: relative; margin: 0; padding: 32px; border-radius: 24px; background: var(--surface-raised); box-shadow: var(--shadow-2);
}
.quote p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; color: var(--ink); }
.quote::before {
  content: "«"; position: absolute; top: -20px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--saffron); color: var(--cream);
  font-family: var(--serif); font-size: 28px; line-height: 1; box-shadow: 0 6px 14px -6px rgba(200, 144, 46, .9);
}

/* ---------- Method ---------- */

.days-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.day-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) { .day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.day-top { display: flex; align-items: center; gap: 12px; }
.day-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--cream); font: 600 12px var(--mono);
}
.day-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.snip { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface-sunken); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.snip .tok { padding: 5px 10px; border-radius: 9px; background: var(--surface-raised); box-shadow: var(--shadow-1); }
.snip .tok.on { box-shadow: inset 0 0 0 2px var(--green), var(--shadow-1); }
.snip .blank { display: inline-block; width: 46px; border-bottom: 2px solid var(--green); }
.snip .ser { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.day-card--key { background: var(--surface-hero); box-shadow: var(--shadow-hero); color: var(--cream); position: relative; overflow: hidden; }
.day-card--key .h3 { color: var(--cream); }
.day-card--key p { color: var(--cream-2); }
.day-card--key .day-num { background: var(--saffron); }
.day-card--key .snip { background: var(--surface-hero-deep); flex-direction: column; align-items: stretch; }
.bub { max-width: 85%; padding: 7px 11px; font-weight: 500; line-height: 1.35; }
.bub.them { align-self: flex-start; border-radius: 12px 12px 12px 4px; background: rgba(251, 246, 236, .12); color: var(--cream); }
.bub.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--cream); color: var(--green); }

/* ---------- Phrases ---------- */

.phrases-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.phrases-head .section-head { margin-bottom: 0; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 100px; background: var(--surface-raised); box-shadow: var(--shadow-1); }
.seg button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 100px; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s;
}
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.themes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.theme { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.theme-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-top .tag { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.theme .dj.name { font-size: 15px; font-weight: 600; }
.phrase { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--surface-sunken); }
.phrase .say { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--green); line-height: 1.25; }
.phrase .say.ar { font-family: var(--sans); font-size: 19px; }
.phrase .fr { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.arabizi-note { margin-top: 28px; font-size: 14px; color: var(--ink-3); text-align: center; }
.arabizi-note b { font-family: var(--mono); color: var(--green); }
html[data-script="ar"] .say.lat, html:not([data-script="ar"]) .say.ar { display: none; }

/* ---------- Goals ---------- */

.goals { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.goal { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.goal svg { margin-bottom: 6px; }
.goal b { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--ink); }
.goal span { font-size: 14px; color: var(--ink-2); }

/* ---------- Features ---------- */

.features { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-raised); box-shadow: var(--shadow-1); color: var(--green);
}
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 4px 22px; border-radius: 18px; background: var(--surface-raised); box-shadow: var(--shadow-1); }
.faq details[open] { box-shadow: var(--shadow-2); padding-bottom: 18px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2314574F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }

/* ---------- Final CTA ---------- */

.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px 28px;
  background: var(--surface-hero); color: var(--cream); box-shadow: var(--shadow-hero);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
@media (min-width: 720px) { .cta-band { padding: 80px 48px; } }
.cta-band .h2 { color: var(--cream); max-width: 16em; }
.cta-band p { margin: 0; font-size: 17px; color: var(--cream-2); max-width: 32em; }
.cta-band .star-bg { width: 380px; opacity: .07; }
.cta-band .star-bg.a { left: -120px; bottom: -160px; }
.cta-band .star-bg.b { right: -140px; top: -170px; }
.cta-mark { width: 56px; height: 42px; background: var(--cream); -webkit-mask: url(../assets/logo.png) center / contain no-repeat; mask: url(../assets/logo.png) center / contain no-repeat; }

/* ---------- Footer ---------- */

.site-foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--green); text-decoration: underline; }
.foot-legal { width: 100%; margin: 0; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-3); }
