/* Shopping List Tracker website: navy + gold, matching the app. */
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --ink: #14213D;
  --muted: #5D6B85;
  --border: #E1E6F0;
  --navy: #1F3F80;
  --navy-deep: #13224A;
  --navy-soft: #E8EEFA;
  --gold: #F2B33D;
  --gold-soft: #FDF1DA;
  --green: #1F9D63;
  --green-soft: #E2F5EB;
  --red-soft: #FBE6E4;
  --link: #1F3F80;
  --shadow: 0 18px 36px -16px rgba(19, 34, 74, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1428; --card: #141F3A; --ink: #E8EDF8; --muted: #9AA8C6; --border: #24314F;
    --navy-soft: #1B2A4D; --gold-soft: #3A2E14; --green-soft: #12352A; --red-soft: #3A1F22;
    --link: #8FB0F0; --shadow: 0 18px 36px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0C1428; --card: #141F3A; --ink: #E8EDF8; --muted: #9AA8C6; --border: #24314F;
  --navy-soft: #1B2A4D; --gold-soft: #3A2E14; --green-soft: #12352A; --red-soft: #3A1F22;
  --link: #8FB0F0; --shadow: 0 18px 36px -16px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 20px 10px 16px; border: 1px solid rgba(255,255,255,.18); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; }
.store-btn small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store-btn b { display: block; font-size: 19px; line-height: 1.15; font-weight: 700; }
.store-btn[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(242,179,61,.28), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 18px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 0 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,179,61,.25); }
.hero .note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.65); }
.phones { position: relative; height: 620px; }
.phone { position: absolute; width: 270px; border-radius: 44px; padding: 10px; background: #0A1022; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 780 / 1546; object-fit: cover; object-position: top; background: #fff; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #0A1022; z-index: 2; }
.phones .p1 { left: 4%; top: 30px; transform: rotate(-6deg); animation: float 7s ease-in-out infinite; }
.phones .p2 { right: 2%; top: 0; transform: rotate(5deg); animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.chip-float { position: absolute; z-index: 3; background: var(--card); color: var(--ink); border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; animation: float 6s ease-in-out infinite; }
.chip-float small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.chip-float.c1 { left: -2%; bottom: 70px; animation-delay: -1s; }
.chip-float.c2 { right: -1%; bottom: 150px; animation-delay: -4s; }
.chip-float .g { color: var(--green); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 24px; }
  .phones { height: 520px; max-width: 440px; margin: 0 auto; width: 100%; }
  .phone { width: 220px; }
}
@media (max-width: 460px) { .phone { width: 180px; } .phones { height: 430px; } .chip-float { font-size: 12px; } }

/* Store strip */
.stores { background: var(--card); border-bottom: 1px solid var(--border); }
.stores .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; align-items: center; padding: 22px 16px; color: var(--muted); font-weight: 700; font-size: 15px; }
.stores span { white-space: nowrap; }

/* Sections */
section.block { padding: 96px 0; }
.kicker { color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
:root[data-theme="dark"] .kicker { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--gold); } }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 10px 0 16px; font-weight: 800; }
.center { text-align: center; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; }
.center .sub { margin: 0 auto; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; position: relative; }
.feature .shot::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(31,63,128,.22)), transparent 68%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.feature .phone { position: relative; width: 290px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature li { display: flex; gap: 12px; margin: 12px 0; color: var(--ink); }
.feature li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 14px; margin-top: 1px; }
.feature p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature:nth-child(even) .shot { order: 0; }
  .feature .phone { width: 250px; }
}

/* Live trip demo */
.demo { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 80%); color: #fff; border-radius: 32px; padding: 56px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo h2 { color: #fff; }
.demo .sub { color: rgba(255,255,255,.8); }
.demo-card { background: var(--card); color: var(--ink); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.trip { background: linear-gradient(135deg, #24488F, #13224A); color: #fff; border-radius: 18px; padding: 16px 18px; }
.trip .row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }
.trip .bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,.18); margin: 12px 0 8px; overflow: hidden; }
.trip .bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 9px; transition: width .5s ease; }
.trip small { color: rgba(255,255,255,.75); font-size: 14px; }
.items { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); font-weight: 700; transition: background .3s; }
.item:first-child { border-top: 0; }
.item .tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border); display: grid; place-items: center; color: #fff; font-size: 14px; transition: all .25s; flex: none; }
.item.done .tick { background: var(--green); border-color: var(--green); }
.item.done .name { text-decoration: line-through; color: var(--muted); }
.item .name { flex: 1; }
.item .price { color: var(--muted); font-size: 15px; }
.item .pill { background: var(--navy-soft); color: var(--navy); border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
:root[data-theme="dark"] .item .pill { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .item .pill { color: var(--link); } }
.total { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); font-weight: 800; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; padding: 36px 20px; border-radius: 24px; } }

/* Small cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 24px; }
.tile .em { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--navy-soft); margin-bottom: 14px; }
.tile h3 { margin: 0 0 6px; font-size: 19px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--link); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 18px; }

/* Call to action + footer */
.cta { text-align: center; padding: 96px 16px; }
.cta img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .chip-float { animation: none !important; }
}

/* Policy pages */
.doc { max-width: 780px; margin: 48px auto 80px; padding: 0 16px; }
.doc .paper { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 36px clamp(20px, 5vw, 44px); }
.doc h1 { font-size: 36px; margin: 0 0 4px; letter-spacing: -.01em; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc .muted { color: var(--muted); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 8px; }
.doc td, .doc th { border-top: 1px solid var(--border); padding: 10px 6px; text-align: left; vertical-align: top; }
