/* Sifted website. Same palette, type and feel as the app (src/theme.ts). */

:root {
  --bg: #F8F4EE;
  --bg-deep: #F1EBE2;
  --card: #FFFFFF;
  --ink: #1C1915;
  --ink-soft: #5B544C;
  --muted: #9C9389;
  --line: #E9E2D7;
  --accent: #C4532F;
  --accent-soft: #F7E6DD;
  --herb: #56785A;
  --herb-soft: #E3ECDF;
  --shadow: 74, 56, 40;
  --bezel: #1C1915;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --r-lg: 28px;
  --r-md: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --bg-deep: #1D1A17;
    --card: #221F1B;
    --ink: #F2EDE6;
    --ink-soft: #C4BBAF;
    --muted: #8D847A;
    --line: #35302A;
    --accent: #E27B56;
    --accent-soft: #3A2620;
    --herb: #8FB591;
    --herb-soft: #24302A;
    --shadow: 0, 0, 0;
    --bezel: #0B0A09;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 28px; color: var(--accent); margin-top: 4px; }
.brand span { font: 600 30px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 44px; height: 44px; margin: 2px -6px 0 -8px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.btn-ink, .nav a.btn-ink:hover { color: var(--bg); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--body); border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-soft { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled='true'] { cursor: default; }
.btn[aria-disabled='true']:hover { transform: none; }
.btn svg { width: 20px; height: 20px; }

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

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; margin: 20px 0 20px; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 30em; margin: 0 0 30px; }
.ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store { height: 60px; padding: 0 24px 0 18px; border-radius: 16px; gap: 12px; justify-content: flex-start; min-width: 200px; }
.btn.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; font: 600 18px/1.1 var(--body); letter-spacing: -0.01em; }
.btn-store small { font: 500 11.5px/1.2 var(--body); letter-spacing: 0.01em; opacity: 0.7; margin-bottom: 3px; white-space: nowrap; }
.how { font-weight: 600; color: var(--ink); }
.how span { display: inline-block; transition: transform .15s ease; }
.how:hover { text-decoration: none; }
.how:hover span { transform: translateX(3px); }
@media (max-width: 480px) {
  .stores { width: 100%; flex-wrap: nowrap; }
  .btn-store { flex: 1 1 0; min-width: 0; padding: 0 14px; gap: 10px; }
  .btn-store span { font-size: 16px; }
  .btn-store small { font-size: 10.5px; }
}
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

.stage { position: relative; height: 640px; }
.stage .phone { position: absolute; width: 290px; }
.stage .back { right: 4%; top: 10px; transform: rotate(5deg); }
.stage .front { left: 6%; top: 50px; transform: rotate(-3deg); }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .stage { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .stage .phone { width: 230px; }
  .stage .back { right: 0; }
  .stage .front { left: 0; }
}
@media (max-width: 420px) {
  .stage { height: 440px; }
  .stage .phone { width: 196px; }
}

/* ---------- phone frame around real app screenshots ---------- */

.phone {
  aspect-ratio: 603 / 1311;
  border-radius: 46px;
  padding: 9px;
  background: var(--bezel);
  box-shadow: 0 40px 80px -28px rgba(var(--shadow), .45), 0 10px 24px -8px rgba(var(--shadow), .25);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #F8F4EE; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen::before { /* Dynamic Island */
  content: ''; position: absolute; z-index: 2; top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 31%; height: 4.2%; border-radius: 999px; background: #000;
}
.status {
  position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 9%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 11% 0 13%;
  font: 600 clamp(10px, 4.6cqw, 15px)/1 var(--body); color: #1C1915; letter-spacing: -0.01em;
}
.screen { container-type: inline-size; }
.status.light { color: #fff; }
.status svg { height: 1em; width: auto; }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; max-width: 16em; }
.sub { color: var(--ink-soft); font-size: 19px; max-width: 34em; margin: 16px 0 0; }

.sources { padding: 8px 0 24px; }
.sources .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  background: var(--card); color: var(--ink-soft); padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(var(--shadow), .04), inset 0 0 0 1px var(--line);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 1px 2px rgba(var(--shadow), .05); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.step h3 { font-size: 23px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 1px 2px rgba(var(--shadow), .05); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature .ic.herb { background: var(--herb-soft); color: var(--herb); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font: 600 18px/1.3 var(--body); letter-spacing: -0.01em; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .grid, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid, .steps { grid-template-columns: 1fr; } }

.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 88px; }
.show.flip .copy { order: 2; }
.show .phone { width: min(300px, 78%); margin: 0 auto; }
.show .art { background: var(--bg-deep); border-radius: 36px; padding: 48px 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.plan.pro .ticks li strong { color: var(--bg); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--herb-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356785A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.example {
  margin-top: 22px; background: var(--card); border-radius: var(--r-md); padding: 16px 18px;
  font-size: 15px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.example b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; gap: 32px; }
  .show.flip .copy { order: 0; }
}

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

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; max-width: 880px; }
.plan { background: var(--card); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 1px 2px rgba(var(--shadow), .05); display: flex; flex-direction: column; }
.plan.pro { background: var(--ink); color: var(--bg); }
.plan.pro .ticks li { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.plan h3 { font-size: 26px; }
.price { font: 600 44px/1 var(--display); margin: 18px 0 4px; letter-spacing: -0.02em; }
.price small { font: 500 16px var(--body); opacity: .7; letter-spacing: 0; }
.plan .note { font-size: 15px; opacity: .75; margin: 0; }
.save { display: inline-block; margin-left: 6px; background: var(--accent); color: #fff; font: 600 12px/1 var(--body); padding: 5px 8px; border-radius: 999px; vertical-align: 3px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

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

.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 var(--body); color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- closing band + footer ---------- */

.band { text-align: center; }
.band .card { background: var(--accent); color: #fff; border-radius: 36px; padding: 64px 24px; }
.band h2 { margin: 0 auto; color: #fff; }
.band h2 em { color: #fff; }
.band p { color: rgba(255,255,255,.85); font-size: 19px; margin: 14px auto 28px; max-width: 28em; }
.band .btn-ink { background: #fff; color: var(--accent); }
.band .stores { justify-content: center; }
@media (prefers-color-scheme: dark) { .band .card { background: #A9462A; } }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* ---------- legal pages ---------- */

.legal { max-width: 720px; padding: 40px var(--gutter) 64px; margin: 0 auto; }
.legal h1 { font-size: clamp(38px, 6vw, 52px); margin: 8px 0 6px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.legal h2 { font-size: 26px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- entrance (honours reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .26s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .stage .front { animation: floatL 7s ease-in-out infinite; }
  .stage .back { animation: floatR 8s ease-in-out infinite; }
  @keyframes floatL { 50% { transform: rotate(-3deg) translateY(-8px); } }
  @keyframes floatR { 50% { transform: rotate(5deg) translateY(6px); } }
}
