/* Oklat marketing site — design language v4 tokens, carried over from
   app/lib/design/tokens.dart. The values are the app's, not new ones. */

:root {
  --page: #F8F9F8;
  --card: #FFFFFF;
  --sunken: #F0F2F0;
  --line: rgba(18, 32, 24, .07);
  --line2: rgba(18, 32, 24, .12);
  --ink: #111A15;
  --ink2: #4A5B52;
  --ink3: #708278;
  --green: #0F8B4C;
  --green-fill: #0B733E;
  --green-deep: #063A22;
  --green-wash: rgba(15, 139, 76, .08);
  --orange: #D95D2A;
  --orange-text: #B84717;
  --yellow: #E5A922;
  --protein: #1E88E5;
  --carbs: #AB47BC;
  --fat: #E65100;
  --tint-green: #EDF6F0;
  --tint-orange: #F9EFEA;
  --tint-blue: #ECF3FA;
  --tint-violet: #F4EEF6;
  --tint-yellow: #FAF5E8;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 1px 2px rgba(20, 33, 26, .05), 0 8px 24px rgba(20, 33, 26, .06);
  --shadow-lg: 0 2px 4px rgba(20, 33, 26, .05), 0 24px 60px rgba(20, 33, 26, .10);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, sans-serif;
  --maxw: 1140px;
}

html[lang="ar"] {
  --font: "Cairo", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--green-fill); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 100;
}
.skip:focus { inset-inline-start: 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 248, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--ink);
}

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--ink2); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
}

/* language switcher */

.lang { position: relative; margin-inline-start: auto; }
.nav + .lang { margin-inline-start: 4px; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.lang-btn:hover { color: var(--ink); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 168px;
  display: none;
}
.lang-menu[data-open="true"] { display: block; }
.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.lang-menu a:hover { background: var(--sunken); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--green-fill); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green-fill);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 115, 62, .24), 0 10px 24px rgba(11, 115, 62, .22);
}
.btn-primary:hover { background: #0A6537; transform: translateY(-1px); }

.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: var(--sunken); }

.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */

.hero { padding: 76px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -320px;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--green-wash) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero { padding: 52px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint-green);
  color: var(--green-fill);
  border: 1px solid rgba(15, 139, 76, .16);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 22px;
}
html[lang="ar"] h1 { line-height: 1.3; letter-spacing: 0; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink2);
  margin: 0 0 34px;
  max-width: 34em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- phone mockup ---------- */

.phone-stage { display: flex; justify-content: center; }
.phone {
  width: 300px;
  flex: none;
  background: #fff;
  border-radius: 42px;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  position: relative;
}
.phone-screen {
  background: var(--page);
  border-radius: 32px;
  overflow: hidden;
  padding: 20px 16px 16px;
}
.phone-notch {
  position: absolute;
  top: 21px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: var(--sunken);
}

.p-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 16px;
}
.p-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.p-date { font-size: 12.5px; color: var(--ink3); font-weight: 600; }

.ring-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
}
.ring-figure { flex: none; position: relative; width: 96px; height: 96px; }
.ring-figure .kcal {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-figure .kcal b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.ring-figure .kcal small { font-size: 10.5px; color: var(--ink3); font-weight: 600; }

.macros { flex: 1; display: grid; gap: 11px; min-width: 0; }
.macro-row { font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.macro-row .lbl { display: flex; justify-content: space-between; margin-bottom: 5px; }
.macro-row .track {
  height: 6px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}
.macro-row .fill { height: 100%; border-radius: 999px; }

.p-section {
  margin: 18px 0 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink3);
}
html[lang="ar"] .p-section { letter-spacing: 0; }

.dish {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 13px;
  margin-bottom: 9px;
}
.dish-art {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.dish-body { flex: 1; min-width: 0; }
.dish-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish-meta { font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.dish-kcal { font-size: 13.5px; font-weight: 800; flex: none; }

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tint-green);
  color: var(--green-fill);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-inline-start: 6px;
}

/* ---------- generic section ---------- */

section { padding: 92px 0; }
@media (max-width: 940px) { section { padding: 64px 0; } }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-fill);
  margin-bottom: 14px;
}
html[lang="ar"] .kicker { letter-spacing: 0; }

h2 {
  font-size: clamp(29px, 3.7vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
html[lang="ar"] h2 { line-height: 1.38; letter-spacing: 0; }

.section-head p { font-size: 17.5px; color: var(--ink2); margin: 0; }

/* ---------- feature grid ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.card p { color: var(--ink2); margin: 0; font-size: 15.5px; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}

/* ---------- promise / anti-dark-pattern ---------- */

.promise { background: var(--ink); color: #fff; }
.promise h2 { color: #fff; }
.promise .kicker { color: #6EE7A6; }
.promise .section-head p { color: rgba(255, 255, 255, .72); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .10);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr; } }

.promise-item { background: var(--ink); padding: 30px; }
.promise-item .row { display: flex; gap: 13px; align-items: flex-start; }
.promise-item .mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}
.promise-item .yes { background: rgba(52, 211, 122, .16); color: #6EE7A6; }
.promise-item .no { background: rgba(239, 83, 80, .15); color: #FF8A85; }
.promise-item h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.015em;
}
.promise-item p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 15px; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--green-fill);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--ink2); font-size: 15px; }

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.split + .split { margin-top: 92px; }
@media (max-width: 940px) { .split + .split { margin-top: 64px; } }

.split.reverse .split-visual { order: -1; }
@media (max-width: 940px) { .split.reverse .split-visual { order: 0; } }

.split h2 { font-size: clamp(26px, 3vw, 34px); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink2);
  font-size: 16px;
}
.checklist .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--green-fill);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

/* shopping list mock */

.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mock-head h4 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

.avatars { display: flex; }
.avatars span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-inline-start: -8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.avatars span:first-child { margin-inline-start: 0; }

.aisle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 20px 0 4px;
}
html[lang="ar"] .aisle { letter-spacing: 0; }

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.item .box {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 2px solid var(--line2);
  flex: none;
}
.item.done .box {
  background: var(--green-fill);
  border-color: var(--green-fill);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.item.done .name { color: var(--ink3); text-decoration: line-through; }
.item .name { font-size: 15px; font-weight: 600; flex: 1; }
.item .who { font-size: 11.5px; color: var(--ink3); font-weight: 700; }

/* ---------- languages strip ---------- */

.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}
.lang-chip {
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
}
.lang-chip.rtl {
  border-color: rgba(15, 139, 76, .3);
  color: var(--green-fill);
  background: var(--tint-green);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured { border-color: rgba(15, 139, 76, .35); box-shadow: var(--shadow-lg); }
.plan .tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 34px;
  background: var(--green-fill);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
}
.plan h3 { font-size: 21px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.plan .price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 14px 0 4px;
}
.plan .price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink3);
  letter-spacing: 0;
}
.plan .sub { color: var(--ink2); font-size: 15px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink2);
}
.plan li .tick {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--green-fill);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  margin-top: 3px;
}
.plan .btn { width: 100%; }

/* ---------- waitlist ---------- */

.waitlist-section { padding-bottom: 92px; }

.waitlist {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-fill) 55%, var(--green) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 62px 44px;
  text-align: center;
}
@media (max-width: 660px) { .waitlist { padding: 44px 24px; } }

.waitlist h2 { color: #fff; }
.waitlist .lede { color: rgba(255, 255, 255, .82); margin: 0 auto; }

.form { display: flex; gap: 11px; max-width: 470px; margin: 30px auto 0; }
@media (max-width: 560px) { .form { flex-direction: column; } }

.form input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  min-width: 0;
}
.form input::placeholder { color: rgba(255, 255, 255, .62); }
.form input:focus { background: rgba(255, 255, 255, .2); outline-color: #fff; }

.form .btn { background: #fff; color: var(--green-fill); box-shadow: none; }
.form .btn:hover { background: #F0F2F0; }
.form .btn[disabled] { opacity: .6; cursor: default; transform: none; }

.form-note { font-size: 13.5px; color: rgba(255, 255, 255, .66); margin-top: 16px; }
.form-msg { margin-top: 18px; font-size: 15.5px; font-weight: 700; min-height: 24px; }
.form-msg.error { color: #FFD5D3; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand p { color: var(--ink3); font-size: 14.5px; margin: 14px 0 0; max-width: 30em; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 14px;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0; }

.footer-col a {
  display: block;
  color: var(--ink2);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink3);
  font-size: 14px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- utilities ----------
   These exist so no page needs an inline style attribute: the CSP in
   web/_headers sets style-src 'self', which blocks inline styles outright. */

.t-orange { background: var(--tint-orange); }
.t-blue   { background: var(--tint-blue); }
.t-violet { background: var(--tint-violet); }
.t-green  { background: var(--tint-green); }
.t-yellow { background: var(--tint-yellow); }
.t-stone  { background: var(--sunken); }

.fill-protein { background: var(--protein); width: 64%; }
.fill-carbs   { background: var(--carbs);   width: 78%; }
.fill-fat     { background: var(--fat);     width: 71%; }

.av-1 { background: var(--green-fill); }
.av-2 { background: var(--protein); }
.av-3 { background: var(--orange); }

.split-lede { color: var(--ink2); font-size: 17px; margin: 0; }

.mock-center { text-align: center; padding: 36px 24px; }
.mock-center .mc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
html[lang="ar"] .mock-center .mc-title { letter-spacing: 0; }
.mock-center .mc-sub { color: var(--ink3); font-size: 14px; }
