/* Arbitrage Pro website
   Navy palette, a manila price tag as the one bold element,
   Zilla Slab for headings (auction-catalog sturdy), Atkinson Hyperlegible for reading. */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url(/fonts/zilla-slab-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url(/fonts/zilla-slab-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-display: swap; src: url(/fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); }

:root {
  --paper: #fbfcfe;
  --wash: #e8eef7;
  --ink: #14213d;
  --muted: #4a5a73;
  --line: #c8d3e3;
  --brand: #1e3a6e;
  --brand-deep: #132850;
  --on-brand: #f4f7fc;
  --manila: #e8cf95;
  --manila-edge: #c9ab68;
  --sticker: #ff5a1f;
  --buy: #1e7a3c;
  --card: #ffffff;
  --focus: #ff5a1f;
  --serif: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1322; --wash: #111c31; --ink: #e5ebf5; --muted: #a7b4ca; --line: #26344f;
    --brand: #8fb0ec; --brand-deep: #0d1d3a; --on-brand: #0a1630; --card: #111b30; --buy: #6fd394;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.32rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 34em; }
.fine { font-size: .92rem; color: var(--muted); }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.measure { max-width: 40em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.3rem var(--serif); }
.brand img { border-radius: 9px; }
.brand-small { font-size: 1.1rem; }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav .nav-cta { background: var(--brand); color: var(--on-brand); padding: .55rem 1rem; border-radius: 999px; }
.site-header nav .nav-cta:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .8rem 1.6rem; border-radius: 14px; font: 700 1.12rem var(--sans); text-decoration: none; border: 2px solid var(--brand); cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-plain { background: transparent; color: var(--brand); }
.btn-plain:hover { background: var(--wash); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* The tag: the one bold element */
.tag-scene { position: relative; min-height: 430px; display: grid; place-items: center; }
.tag-wrap {
  position: relative; width: min(300px, 78vw); aspect-ratio: 5 / 3;
  transform: rotate(-9deg) translate(-16%, -40%);
  filter: drop-shadow(0 18px 24px rgba(20, 33, 61, .18));
}
.tag {
  position: absolute; inset: 0; background: var(--manila);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 50%);
  display: flex; flex-direction: column; justify-content: center; padding: 0 1.4rem 0 28%;
}
.tag::before { content: ""; position: absolute; left: 9%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--manila-edge); }
/* String tied through the hole (hole centre is 9% across, half way down) */
.tag-string { position: absolute; width: 90px; height: 170px; left: calc(9% - 88px); top: calc(50% - 168px); overflow: visible; }
.tag-item { font: 400 1.15rem/1.15 var(--marker); color: #3b3527; }
.tag-price { font: 400 3.6rem/1 var(--marker); color: #1e1b14; margin-top: .25rem; }
.sticker { position: absolute; right: -10px; top: -18px; width: 74px; height: 74px; border-radius: 50%; background: var(--sticker); color: #fff; display: grid; place-items: center; text-align: center; font: 700 .82rem/1.05 var(--sans); transform: rotate(12deg); box-shadow: 0 6px 12px rgba(0,0,0,.15); }
.verdict {
  position: absolute; right: 0; bottom: 6px; width: min(300px, 82vw); background: var(--card); border: 2px solid var(--brand); border-radius: 18px; padding: 1.1rem 1.25rem 1.2rem;
  box-shadow: 0 22px 40px rgba(30, 58, 110, .16);
}
.verdict .verdict-word { font: 700 2.4rem/1 var(--serif); color: var(--buy); margin: 0 0 .4rem; }
.verdict dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: .7rem 0 0; font-size: 1rem; }
.verdict dt { color: var(--muted); }
.verdict dd { margin: 0; font-weight: 700; text-align: right; }
.verdict p { font-size: .95rem; margin: 0; color: var(--muted); }
@media (max-width: 860px) { .tag-scene { min-height: 400px; } .tag-wrap { transform: rotate(-9deg) translate(-10%, -38%); } }
@media (max-width: 480px) { .tag-scene { display: block; min-height: 0; padding-top: 4.5rem; } .tag-wrap { transform: rotate(-6deg); margin: 0 0 0 14%; width: min(260px, 70vw); } .verdict { position: relative; margin: -1.5rem 0 0 auto; } }

/* Sections */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band { background: var(--wash); }
.section-head { max-width: 40em; margin-bottom: 2.2rem; }

/* How it works: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font: 700 1.25rem var(--serif); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.4rem; right: -1.4rem; border-top: 2px dashed var(--line); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Report: appraisal-sheet sample */
.report-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .report-grid { grid-template-columns: 1fr; } }
.covers { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.covers li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.covers svg { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--brand); }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.8rem 1.4rem; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(20, 33, 61, .08); }
.sheet-title { font: 700 1.45rem/1.2 var(--serif); margin: 0 0 .2rem; }
.sheet-sub { color: var(--muted); margin: 0 0 1.2rem; font-size: 1rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 1.2rem; }
.sheet th, .sheet td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { font-weight: 400; color: var(--muted); width: 46%; }
.sheet td { font-weight: 700; }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet blockquote { margin: 0; padding: .9rem 1rem; background: var(--wash); border-radius: 6px; font-size: 1rem; }
.sheet-label { font-size: .95rem; color: var(--muted); margin: 0 0 .4rem; }

/* Uses */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 4rem; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; gap: 2rem; } }
.uses h3 { display: flex; align-items: center; gap: .7rem; }
.uses h3 svg { width: 1.6rem; height: 1.6rem; color: var(--brand); flex: none; }
.uses p { color: var(--muted); margin: 0; }

/* Your rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.math { background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 1.8rem; }
.math p { margin: 0 0 .6rem; }
.math strong { font-family: var(--serif); font-size: 1.6rem; display: block; line-height: 1.2; color: var(--on-brand); }
.math .fine { color: color-mix(in srgb, var(--on-brand) 80%, transparent); margin: 1rem 0 0; }

/* Promise */
.promise { text-align: left; }
.promise p.big { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--serif); max-width: 26em; margin: 0 0 1rem; }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary { cursor: pointer; font: 600 1.22rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.5rem/1 var(--sans); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { margin: .6rem 0 0; max-width: 30em; }

/* Download / join */
.get { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.get-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .get-grid { grid-template-columns: 1fr; } }
.invite { background: var(--manila); color: #1e1b14; border-radius: 14px; padding: 1.2rem 1.4rem; margin: 0 0 1.4rem; max-width: 26em; }
.invite p { margin: 0 0 .3rem; }
.invite-code { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.invite-code code { font: 700 1.9rem/1.1 var(--sans); letter-spacing: .05em; }
.copy { font: 700 .95rem var(--sans); background: #1e1b14; color: var(--manila); border: 0; border-radius: 999px; padding: .45rem .95rem; cursor: pointer; min-height: 40px; }
.install { counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.install li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.install li::before { content: counter(s); width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); display: grid; place-items: center; font: 700 1.05rem var(--serif); }
.install strong { display: block; }
.install span { color: var(--muted); }
.side { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; background: var(--card); }
.side h2 { font-size: 1.5rem; }
.qr { width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.only-android, .only-desktop { display: none; }
.is-android .only-android, .is-desktop .only-desktop { display: block; }
.note { border-left: 4px solid var(--sticker); padding: .2rem 0 .2rem 1rem; margin: 1.4rem 0; }

/* Legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.legal .measure h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legal .measure h3 { margin-top: 1.4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.summary-box { background: var(--wash); border-radius: 14px; padding: 1.3rem 1.5rem; margin: 1.5rem 0 2rem; }
.summary-box p:last-child { margin-bottom: 0; }
