/* Tokens match src/lib/ui.js. Gabarito 500–900 only: no element may use a weight below 500. */
:root {
  --bg: #0A0A0C; --card: #141418; --raised: #1E1E24; --line: rgba(255,255,255,.07);
  --text: #F5F5F7; --sub: #9A9AA6; --faint: #4A4A55; --empty: .13; --mark-empty: .22;
  --accent: #7C83FF;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F3F0; --card: #FFFFFF; --raised: #E9E9E5; --line: rgba(10,10,12,.08);
    --text: #141418; --sub: #6E6E78; --faint: #B4B4BC; --empty: .16; --mark-empty: .3;
    --accent: #5B62E0;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 17px/1.5 Gabarito, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
b, strong, th, summary { font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section.wrap { padding-top: 72px; padding-bottom: 24px; }
.sub { color: var(--sub); margin: 0 0 24px; }
.note { color: var(--sub); font-size: 14px; margin: 16px 0 0; max-width: 760px; }
.note a { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 24px; letter-spacing: -.03em; }
.mark { width: 28px; height: 28px; display: block; }
.mark .e { fill-opacity: var(--mark-empty); }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--sub); font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 48px; }
h1 { font-size: clamp(64px, 11vw, 132px); letter-spacing: -.045em; }
.lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 600; margin: 20px 0 32px; max-width: 30ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--line); color: var(--sub);
  font-weight: 700; font-size: 17px; line-height: 1.1; cursor: not-allowed;
}
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.facts { color: var(--sub); margin: 20px 0 0; font-size: 15px; }

/* Phone mock-up (built from the app's own tokens) */
.phone {
  justify-self: center; width: 330px; max-width: 100%; padding: 10px; border-radius: 46px;
  background: var(--raised); border: 1px solid var(--line);
}
.screen { border-radius: 38px; background: #0A0A0C; color: #F5F5F7; padding: 26px 16px 18px; overflow: hidden; --empty: .13; }
.over { margin: 0; color: #9A9AA6; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.today { display: flex; justify-content: space-between; align-items: center; }
.today b { font-size: 34px; font-weight: 900; letter-spacing: -.04em; }
.plus { width: 34px; height: 34px; border-radius: 50%; background: #F5F5F7; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #0A0A0C; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.bars { display: flex; gap: 5px; margin: 10px 0 6px; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c) calc(var(--f) * 100%), color-mix(in srgb, var(--c) 22%, transparent) 0); }
.screen .sub { color: #9A9AA6; font-size: 12px; margin: 0 0 12px; }
.hcard { background: #141418; border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.hhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hhead div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.hhead b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.hhead span { font-size: 11.5px; color: #9A9AA6; }
.ico { width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, transparent); position: relative; }
.ico::after { content: ""; position: absolute; inset: 10px; border-radius: 3px; background: var(--c); }
.chk { width: 34px; height: 34px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, transparent); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.chk.done { background: var(--c); }
.chk.done::after { content: ""; width: 12px; height: 6px; border: solid #0B0B0E; border-width: 0 0 2.5px 2.5px; transform: translate(0, -2px) rotate(-45deg); }
.grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2.5px; aspect-ratio: 18 / 7.2; }
.grid i { border-radius: 30%; background: color-mix(in srgb, var(--c) calc(var(--empty) * 100%), transparent); }
.grid i.on { background: var(--c); }
.grid i.today-cell { box-shadow: inset 0 0 0 1.5px var(--c); }

/* Features */
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; color: var(--sub); font-size: 15.5px; line-height: 1.45; }
.features b { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 2px 7px; border-radius: 6px; }

/* Comparison table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); font-weight: 700; }
tbody th { font-weight: 700; }
th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
td { color: var(--sub); }
td.y { color: var(--text); }
td.y::before { content: "✓ "; color: #3DD68C; font-weight: 800; }
td.n { color: var(--faint); }
.us { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); }
thead .us { color: var(--text); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plan .price { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 12px 0 8px; }
.prices { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0 16px; }
.prices p { margin: 0; color: var(--sub); font-weight: 600; }
.prices .price { display: block; font-size: 34px; margin: 0 0 2px; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 4px; background: #3DD68C; }
.plan.pro li::before { background: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
summary { cursor: pointer; font-size: 18px; letter-spacing: -.01em; }
details p { color: var(--sub); margin: 10px 0 0; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 48px; padding-bottom: 48px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--sub); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Legal pages */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--sub); }
.doc strong { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  section.wrap { padding-top: 56px; }
  .top nav { display: none; }
  .features, .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
}
