/* Brasscard website. Colours follow the app: brass AccentColor (#B5893B, dark #D9B05C).
   --accent is the text shade (4.5:1 on --bg and --surface), --accent-fill the fill and ring shade.
   Brass is light, so text on it is dark (--on-accent). */
:root {
  --bg: #faf6ee;
  --band: #f3ecdf;
  --surface: #ffffff;
  --text: #231d12;
  --muted: #6b604c;
  --hairline: rgba(70, 50, 15, .10);
  --fill: rgba(70, 50, 15, .07);
  --fill-strong: rgba(70, 50, 15, .12);
  --glass: rgba(250, 246, 238, .72);
  --glow: rgba(181, 137, 59, .24);
  --accent: #8a6420;
  --accent-fill: #b5893b;
  --accent-soft: #f3e7cc;
  --on-accent: #231d12;
  --bezel: #1d1a16;
  --bezel-ring: rgba(0, 0, 0, .06);
  --shadow-1: rgba(60, 40, 10, .08);
  --shadow-2: rgba(60, 40, 10, .26);
  --radius: 24px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110d;
    --band: #1a1712;
    --surface: #221e17;
    --text: #f5eedf;
    --muted: #b3a88f;
    --hairline: rgba(255, 245, 225, .10);
    --fill: rgba(255, 245, 225, .08);
    --fill-strong: rgba(255, 245, 225, .14);
    --glass: rgba(19, 17, 13, .70);
    --glow: rgba(217, 176, 92, .16);
    --accent: #e6c47a;
    --accent-fill: #d9b05c;
    --accent-soft: #3a2f17;
    --on-accent: #1d1a16;
    --bezel: #000000;
    --bezel-ring: rgba(255, 255, 255, .14);
    --shadow-1: rgba(0, 0, 0, .3);
    --shadow-2: rgba(0, 0, 0, .6);
  }
}

/* ==== Shared app-website design ====
   Identical in every app website (SavourMap, Copperpot, …); only the token block above differs.
   Change it here in all sites at once. Principles: Apple HIG for the web (system font with
   size-specific tracking, translucent header, depth instead of lines, instant press feedback,
   motion only when allowed). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
a { color: var(--accent); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 3px; border-radius: 8px; }

/* Header: translucent material, content scrolls underneath */
header.top, .top { position: sticky; top: 0; z-index: 10; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px;
  max-width: none;
  padding-inline: max(24px, calc((100% - 1072px) / 2));
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 .5px var(--hairline); }
.top nav { display: flex; gap: 6px; font-size: .9375rem; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; transition: color .15s, background-color .15s; }
.top nav a:hover { color: var(--text); background: var(--fill); }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center;
  padding-block: 64px 96px;
}
.hero::before { /* soft accent light behind the phone, static */
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 40%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 750; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; }
.hero p.lead { font-size: clamp(1.15rem, 1.8vw, 1.375rem); line-height: 1.45; letter-spacing: -0.005em; color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons and pills: feedback on press, not on release */
.store-badge img { display: block; height: 50px; width: auto; } /* Apple's badge, unaltered, ≥ 40 px */
.button, .pill, .badge, .store-badge {
  display: inline-block; border-radius: 999px; text-decoration: none;
  transition: transform .1s ease-out, background-color .15s, box-shadow .15s;
}
.button { background: var(--accent-fill); color: var(--on-accent); padding: 13px 22px; font-weight: 600; }
.pill { background: var(--fill); color: var(--text); padding: 13px 20px; font-size: .9375rem; font-weight: 500; }
.pill:hover { background: var(--fill-strong); }
.badge { background: var(--fill); color: var(--text); padding: 13px 20px; font-size: .9375rem; font-weight: 600; }
.button:active, .pill:active, .store-badge:active { transform: scale(.97); }

/* Device: screenshot inside a bezel (padding + background; the image is clipped to the inner radius) */
.phone {
  padding: 9px;
  background: var(--bezel);
  border-radius: 46px;
  box-shadow:
    0 0 0 1px var(--bezel-ring),
    0 2px 4px var(--shadow-1),
    0 24px 48px -12px var(--shadow-2),
    0 60px 100px -40px var(--shadow-2);
}
.hero .phone { max-width: min(340px, 100%); margin: 0 auto; }
.split .phone { max-width: min(310px, 100%); margin: 0 auto; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 560px; margin: 0 auto; }
.pair .phone { padding: 6px; border-radius: 32px; }
.pair .phone:nth-child(2) { transform: translateY(36px); }

/* Sections: rhythm by space and alternating bands, not divider lines */
section { padding: 112px 0; }
section:nth-of-type(even) { background: var(--band); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9375rem; letter-spacing: .01em; margin: 0 0 10px; }
section.bar .eyebrow, section.bar ul.ticks li::before { color: var(--bar, var(--accent)); }
section.bar ul.ticks li::before { background: var(--bar-soft, var(--accent-soft)); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; margin: 0 0 18px; }
h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.012em; margin: 0 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split p { color: var(--muted); font-size: 1.1875rem; line-height: 1.5; max-width: 30em; }
ul.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
ul.ticks li { padding-left: 34px; position: relative; margin: 12px 0; color: var(--text); }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; line-height: 1;
  color: var(--accent); background: var(--accent-soft);
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px var(--shadow-1), 0 8px 24px -12px var(--shadow-1);
}
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.5; }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: var(--accent-soft);
}

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.price {
  background: var(--surface); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px var(--shadow-1), 0 8px 24px -12px var(--shadow-1);
}
.price.featured { box-shadow: 0 0 0 2px var(--accent-fill), 0 18px 40px -16px var(--shadow-2); }
.price .amount { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.price .note { color: var(--muted); font-size: .9375rem; margin: 0 0 16px; }
.price ul.ticks li { font-size: 1rem; }
.small { color: var(--muted); font-size: .875rem; margin-top: 22px; }

/* FAQ */
details {
  background: var(--surface); border-radius: 18px; padding: 0 22px; margin: 10px 0;
  box-shadow: 0 0 0 1px var(--hairline);
}
summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { color: var(--muted); margin: 0 0 18px; }

/* Legal / text pages */
.doc { max-width: 760px; padding-block: 40px 96px; overflow-wrap: anywhere; hyphens: auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; }
.doc h2 { font-size: 1.45rem; letter-spacing: -0.018em; margin-top: 40px; }
.doc .meta { color: var(--muted); font-size: .9375rem; }
.doc blockquote { margin: 20px 0; padding: 14px 18px; background: var(--accent-soft); border-radius: 14px; }
.doc blockquote p { margin: 0; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: .875rem; box-shadow: inset 0 1px 0 var(--hairline); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .small { flex-basis: 100%; margin: 4px 0 0; font-size: .8125rem; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-block: 32px 72px; text-align: left; }
  .hero::before { inset: 35% 0 0 0; }
  .split.reverse > :first-child { order: 0; }
  .grid, .prices { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
  section { padding: 76px 0; }
  .pair .phone:nth-child(2) { transform: translateY(24px); }
}

/* Gentle reveal while scrolling: compositor-only, only where motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .split > *, .card, .price {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .card, .price, details, .top { box-shadow: 0 0 0 1px var(--muted); }
  .pill, .badge { box-shadow: inset 0 0 0 1px var(--muted); }
}

/* Detail pass */
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
@supports (corner-shape: squircle) {
  .card, .price, details, .brand img, .card .icon { corner-shape: squircle; }
}
