/* Ciao landing: the garage-sale sticker sheet. Same tokens as src/theme/tokens.ts. */
@font-face { font-family: Gabarito; font-weight: 900; font-display: swap; src: url(/fonts/gabarito-900.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: Gabarito; font-weight: 900; font-display: swap; src: url(/fonts/gabarito-900-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
@font-face { font-family: Gabarito; font-weight: 700; font-display: swap; src: url(/fonts/gabarito-700.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: Gabarito; font-weight: 700; font-display: swap; src: url(/fonts/gabarito-700-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
@font-face { font-family: Atkinson; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: Atkinson; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
@font-face { font-family: Atkinson; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-700.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: Atkinson; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-700-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }

:root {
  --bg: #EEF0F2; --surface: #FFFFFF; --surface-alt: #E1E5EA; --text: #1B2A4A; --muted: #56617A; --border: #CDD3DB;
  --primary: #1B2A4A; --on-primary: #FFFFFF; --accent: #B4430A; --empty: #DCE1E7;
  --sticker: #FF6A13; --on-sticker: #1B2A4A; --flap: #FBF7F2;
  --donated: #3DB57A; --sold: #FFC531; --gifted: #F27BB0; --recycled: #5AA2E6; --thrown: #9AA3AE;
  --display: Gabarito, 'Arial Black', system-ui, sans-serif;
  --body: Atkinson, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --pill: 999px;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A30; --surface: #17243F; --surface-alt: #22314F; --text: #EEF0F2; --muted: #A3ADC2; --border: #2C3B5C;
    --primary: #EEF0F2; --on-primary: #0F1A30; --accent: #FF8A4C; --empty: #22314F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--sticker); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }

/* Header & footer */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 128px; height: auto; }
.lang { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--pill); }
.site-footer { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--border); font-size: .95rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { display: inline-block; padding: 6px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px;
  border-radius: var(--pill); font-weight: 700; text-decoration: none; background: var(--primary); color: var(--on-primary); }
.btn:hover { color: var(--on-primary); filter: brightness(1.12); }
.btn svg { width: 22px; height: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.stores small { display: block; font-weight: 400; font-size: .75rem; line-height: 1; opacity: .85; }
.stores span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

/* Hero */
.hero { padding: 16px 0 24px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { max-width: 11ch; }

/* Phone visual (pure CSS + inline SVG) */
.phone { width: min(300px, 86%); margin: 0 auto; aspect-ratio: 9 / 19; background: var(--bg); border: 10px solid var(--text);
  border-radius: 44px; padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%);
  background: var(--text); border-radius: var(--pill); }
.phone .date { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.phone .big { position: relative; width: 78%; margin: 10px auto 4px; transform: rotate(-5deg); }
.phone .big b { position: absolute; inset: 0 22% 22% 0; display: grid; place-content: center; text-align: center;
  font: 900 4.2rem/1 var(--display); color: var(--on-sticker); letter-spacing: -0.04em; }
.phone .big b span { font: 700 .8rem/1.2 var(--body); letter-spacing: 0; }
.phone .status { text-align: center; font-size: .85rem; margin: 0; }
.phone .cta { background: var(--primary); color: var(--on-primary); border-radius: var(--pill); text-align: center; padding: 12px; font: 900 1rem var(--display); }
.phone .tabs { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone .tabs i { background: var(--surface); border-radius: 10px; font: 700 .72rem/1 var(--body); font-style: normal; text-align: center; padding: 12px 0; }
@media (prefers-reduced-motion: no-preference) {
  .phone .big { animation: land .9s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
  @keyframes land { from { transform: rotate(-30deg) scale(.6); opacity: 0; } to { transform: rotate(-5deg) scale(1); opacity: 1; } }
}

/* Sections */
section { padding: 72px 0 0; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--r-lg); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-content: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: var(--pill); background: var(--sticker); color: var(--on-sticker); font: 900 1.4rem var(--display); }
.steps li:nth-child(2)::before { background: var(--sold); }
.steps li:nth-child(3)::before { background: var(--donated); }
.steps p { margin: 0; }

.mechanic .wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .mechanic .wrap { grid-template-columns: 1fr 1fr; } }
.sheet { background: var(--surface); border-radius: var(--r-lg); padding: 20px; width: 100%; max-width: 440px; justify-self: center; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: var(--pill); display: inline-block; }
.rules { padding-left: 1.2em; }
.rules li { margin-bottom: .6em; }

.plans { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border-radius: var(--r-lg); padding: 28px; border: 2px solid transparent; }
.plan.pro { border-color: var(--text); }
.plan h3 { font-size: 1.6rem; font-weight: 900; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--donated); }

.faq details { background: var(--surface); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font: 700 1.1rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 18px; margin: 0; }

.contact .card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 8px; }

/* Legal pages */
.legal { padding-top: 24px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { margin-top: 1.2em; }
.legal .updated { color: var(--muted); }
.legal ul, .legal ol { padding-left: 1.3em; max-width: 68ch; }
.legal li { margin-bottom: .4em; }
.legal .table { overflow-x: auto; margin: 0 0 1.2em; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; background: var(--surface); border-radius: var(--r-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { font-family: var(--display); font-weight: 700; }
.crumbs { font-size: .9rem; margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }

.notfound { text-align: center; padding: 64px 0; }
.notfound svg { width: 160px; margin: 0 auto 24px; transform: rotate(-8deg); }
.d-donated { background: var(--donated); } .d-sold { background: var(--sold); } .d-gifted { background: var(--gifted); }
.d-recycled { background: var(--recycled); } .d-thrown { background: var(--thrown); }
.center { margin-inline: auto; }
