@font-face {
  font-family: 'Fraunces';
  src: url(fonts/fraunces.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url(fonts/instrument-sans.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #F6F3EE;
  --paper: #FFFDF9;
  --card: #FFFFFF;
  --ink: #1C1B19;
  --muted: #625E57;
  --line: #E6E1D8;
  --brand: #2E6A4F;
  --brand-deep: #214C39;
  --brand-soft: #E3EFE8;
  --on-brand: #FFFFFF;
  --amber: #C9822B;
  --amber-ink: #8A5413;
  --amber-soft: #FBF0E1;
  --kraft: #D9B98C;
  --shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 12px 32px -12px rgba(28, 27, 25, .18);
  --shadow-lg: 0 2px 4px rgba(28, 27, 25, .06), 0 40px 80px -24px rgba(33, 76, 57, .45);
  --radius: 22px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --paper: #161A18;
    --card: #1B201D;
    --ink: #EEEBE5;
    --muted: #A3ACA6;
    --line: #2A312D;
    --brand: #6FBF97;
    --brand-deep: #1E3A2D;
    --brand-soft: #1F2E27;
    --on-brand: #0E1F17;
    --amber: #E3A24F;
    --amber-ink: #E9B470;
    --amber-soft: #2B2218;
    --kraft: #6B5638;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--line) transparent; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.ico, [data-icon] { display: inline-flex; }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .98rem; }
.top nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-quiet { color: var(--brand); padding: 0 10px; }
.btn-quiet:hover svg { transform: translateX(3px); }
.btn-quiet svg { transition: transform .2s; }
.btn-ghost { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 120px);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: .98; letter-spacing: -.035em;
  font-variation-settings: 'opsz' 144;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; margin: 24px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fineprint { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.center { text-align: center; }

.hero-art { position: relative; margin: 0; display: grid; place-items: center; min-height: 560px; }
.slab {
  position: absolute; inset: 9% 4% 7% 10%;
  border-radius: 36px;
  background:
    repeating-linear-gradient(90deg, transparent 0 46%, color-mix(in srgb, var(--kraft) 55%, transparent) 46% 54%, transparent 54% 100%),
    linear-gradient(160deg, #2E6A4F 0%, #214C39 100%);
  background-size: 100% 22px, auto;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0;
  transform: rotate(-4deg);
}
.phone {
  position: relative; width: min(340px, 72vw);
  padding: 10px; border-radius: 48px;
  background: #0E0F0E;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3A3C3A;
  transform: rotate(3deg);
}
.phone img { border-radius: 38px; width: 100%; height: auto; }
.tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 12px; border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: 600 .9rem/1.2 var(--body); white-space: nowrap;
  box-shadow: var(--shadow);
}
.tag svg { color: var(--brand); width: 1.1em; height: 1.1em; }
.tag-a { left: -2%; top: 24%; transform: rotate(-3deg); }
.tag-b { right: -3%; bottom: 20%; transform: rotate(2deg); }
.tag-b svg { color: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .tag { animation: pop .7s cubic-bezier(.16, 1, .3, 1) both; }
  .tag-a { animation-delay: .55s; }
  .tag-b { animation-delay: .75s; }
  @keyframes rise { from { transform: translateY(40px) rotate(6deg); filter: blur(6px); opacity: .4; } }
  @keyframes pop { from { opacity: 0; scale: .9; filter: blur(4px); } }
}

/* ---------- features ---------- */
.features, .pricing { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; margin-bottom: clamp(28px, 4vw, 48px); }
.pricing h2 { margin-inline: auto; text-align: center; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "scan scan scan scan where where"
    "ask ask worth worth where where"
    "ask ask share share sell sell"
    "sync sync sync sync sync sync";
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); max-width: 52ch; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.card .ico svg { width: 24px; height: 24px; }

.c-scan { grid-area: scan; background: var(--brand); border-color: transparent; color: var(--on-brand); justify-content: flex-end; min-height: 260px; }
.c-scan p { color: color-mix(in srgb, var(--on-brand) 82%, var(--brand)); font-size: 1.08rem; }
.c-scan h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.c-scan .ico { background: color-mix(in srgb, var(--on-brand) 16%, transparent); color: var(--on-brand); }
.c-where { grid-area: where; background: var(--amber-soft); border-color: transparent; }
.c-where .ico { background: var(--card); color: var(--amber-ink); }
.c-ask { grid-area: ask; }
.c-worth { grid-area: worth; }
.c-share { grid-area: share; }
.c-sell { grid-area: sell; }
.c-sync { grid-area: sync; flex-direction: row; align-items: center; gap: 20px; }
.c-sync .ico { margin: 0; }
.c-sync p { max-width: 70ch; }
.c-sync h3 { white-space: nowrap; }

.chat { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.chat p { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; max-width: 30ch; }
.chat .q { justify-self: end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; }
.chat .a { background: var(--bg); color: var(--ink); border-bottom-left-radius: 5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.plan h3 svg { color: var(--brand); }
.price { font: 700 2.4rem/1 var(--display); letter-spacing: -.03em; margin: 18px 0 20px; font-variant-numeric: tabular-nums; }
.price span { font: 500 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li svg { color: var(--brand); transform: translateY(2px); }
.plan-pro { background: var(--ink); color: var(--bg); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan-pro .price span { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.plan-pro h3 svg, .plan-pro li svg { color: var(--amber); }

/* ---------- download ---------- */
.download { padding: 0 clamp(16px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.download-inner {
  max-width: 1200px; margin: 0 auto; border-radius: 36px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; text-align: center;
}
.download-inner h2 { margin: 0 auto 12px; color: #fff; }
.download-inner > p { color: rgba(255, 255, 255, .82); margin: 0 auto 32px; max-width: 46ch; }
.download-inner .fineprint { color: rgba(255, 255, 255, .72); margin-top: 24px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 210px;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  background: #0E0F0E; color: #fff; text-decoration: none; text-align: left;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.store svg { width: 30px; height: 30px; }
.store span { display: flex; flex-direction: column; font: 600 1.2rem/1.15 var(--body); }
.store small { font-size: .75rem; font-weight: 500; opacity: .75; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); }
.store.is-soon { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); cursor: default; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; padding: 28px 16px 40px; color: var(--muted); font-size: .92rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 0; padding: 16px 0 8px; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "scan scan" "where ask" "worth ask" "share sell" "sync sync";
  }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .signin { margin-left: auto; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "scan" "where" "ask" "worth" "share" "sell" "sync"; }
  .c-sync { flex-direction: column; align-items: flex-start; }
  .c-sync h3 { white-space: normal; }
  .tag-a { left: 0; top: 10%; }
  .tag-b { right: 0; bottom: 12%; }
  .tag { font-size: .8rem; }
  .store { min-width: 0; width: 100%; max-width: 320px; }
}
