/* BuyItWiser website. Same palette and type as the app. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #0b1b33;
  --body: #334155;
  --muted: #5e6a7d;
  --line: #e2e7ef;
  --brand: #1f4fe0;
  --brand-dark: #173db3;
  --brand-soft: #e9efff;
  --save: #0b7a4b;
  --save-soft: #e2f4ea;
  --tag: #ffd23f;
  --shadow: 0 10px 30px rgba(11, 27, 51, 0.08);
}

* { 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(--body);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.2rem; max-width: 34ch; }
.price { font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #fafbfd; color: var(--ink); }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .site-head .btn { min-height: 42px; padding: 0 16px; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; } }

/* The comparison scene: the shelf tag next to the app's answer */
.scene { position: relative; display: flex; justify-content: flex-end; padding: 44px 0 10px; }
.tag {
  position: absolute; left: 0; top: 4px; z-index: 2; width: 178px; padding: 14px 16px 16px;
  background: var(--tag); border-radius: 8px; transform: rotate(-5deg);
  box-shadow: 0 12px 24px rgba(11, 27, 51, 0.16); color: var(--ink);
}
.tag::before { content: ""; position: absolute; right: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.tag small { display: block; font-weight: 700; font-size: 0.82rem; }
.tag .price { font-size: 2.9rem; line-height: 1.05; display: block; }
.tag span { font-size: 0.78rem; font-weight: 600; }
.phone {
  width: 300px; background: var(--bg); border: 10px solid #0b1b33; border-radius: 42px;
  padding: 18px 14px 16px; box-shadow: 0 30px 60px rgba(11, 27, 51, 0.22);
}
.phone-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; color: var(--ink); font-size: 0.85rem; }
.phone-head img { width: 24px; height: 24px; }
.phone-product { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.2; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.best { padding: 12px 14px; display: grid; gap: 6px; margin-bottom: 12px; }
.pill { display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pill-tag { background: var(--tag); color: var(--ink); }
.pill-save { background: var(--save-soft); color: var(--save); }
.store { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; flex: none; }
.store-name { font-weight: 700; color: var(--ink); font-size: 0.85rem; line-height: 1.2; }
.best .price { font-size: 2.3rem; line-height: 1; }
.rows { margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.row + .row { border-top: 1px solid var(--line); }
.row .store-name { flex: 1; }
.row .price { font-size: 1.15rem; }
.row small { display: block; color: var(--save); font-weight: 700; font-size: 0.68rem; }
.phone-btn { display: block; text-align: center; background: var(--brand); color: #fff; border-radius: 12px; padding: 10px; font-weight: 700; font-size: 0.85rem; }
.scene-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
/* Stacked layout: the tag sits above the phone's top-left corner, clear of the screen */
@media (max-width: 900px) {
  .scene { justify-content: center; padding-top: 100px; }
  .tag { left: calc(50% - 196px); top: 0; }
}
@media (max-width: 480px) {
  .phone { width: 270px; }
  .tag { width: 150px; left: calc(50% - 168px); }
  .tag .price { font-size: 2.4rem; }
}

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.section-head p { font-size: 1.08rem; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* How it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Reasons to trust it */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; }
.point svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* Stores */
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stores li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* Tokens */
.tokens { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--save); transform: translateY(-1px); }
.token-card { padding: 26px; display: grid; gap: 6px; }
.token-card .price { font-size: 3.4rem; line-height: 1; }
@media (max-width: 760px) { .tokens { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; }

/* Early access */
.signup { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.signup form { display: grid; gap: 10px; }
.signup label { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.field { display: flex; gap: 10px; }
.field input {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid #c9d1dd;
  font: inherit; color: var(--ink); background: var(--surface);
}
.form-note { color: var(--muted); font-size: 0.88rem; }
.hidden { display: none; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; padding: 24px; } .field { flex-direction: column; } }

/* Footer */
.site-foot { padding-top: 40px; padding-bottom: 48px; display: grid; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--body); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Simple text pages (privacy, support) */
.page { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.page h2 { font-size: 1.4rem; margin: 36px 0 10px; letter-spacing: -0.015em; }
.page p, .page ul, .page ol { margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.page .updated { color: var(--muted); margin-bottom: 28px; }
.page-center { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; padding-top: 40px; padding-bottom: 80px; }
.page-center p { max-width: 42ch; margin: 0 auto; }

/* Privacy policy: subsections and the providers table */
.page h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.page .table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.page table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.page th { color: var(--ink); font-weight: 700; background: var(--surface-alt, #EEF2F8); }
.page tbody tr:last-child td { border-bottom: 0; }
.page td:first-child { font-weight: 700; color: var(--ink); width: 24%; }
@media (max-width: 600px) {
  .page table { min-width: 0; }
  .page thead { display: none; }
  .page tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .page tbody tr:last-child { border-bottom: 0; }
  .page td { display: block; padding: 2px 0; border: 0; width: auto; }
  .page td:first-child { font-size: 1.02rem; margin-bottom: 4px; width: auto; }
  .page td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}
