/* =========================================================
   Attenda product page — "the register"
   ---------------------------------------------------------
   Tokens mirror the app's Warm Ledger theme (cream surface,
   charcoal ink, tangerine as the only action colour).
   One memorable move: the page is ruled like a class register,
   and the hero phone takes roll on a loop. Everything else stays quiet.
   No italics, no JS, and no web font: like the app, the page uses the
   visitor's system font (San Francisco, Roboto, Segoe UI) and builds its
   hierarchy from weight and size alone.
   ========================================================= */

:root {
  --paper: #FFF8EE;
  --card: #FFFDF8;
  --panel: #FBF4E8;
  --subtle: #F7EEDF;
  --ink: #2A2826;
  --ink-2: #6B5F54;
  --ink-3: #8A7D70;
  --rule: rgba(42, 40, 38, .14);
  --rule-strong: rgba(42, 40, 38, .32);
  --tang: #F49234;
  --tang-press: #E07A1F;
  --on-tang: #2A2826;
  --band-bg: #F7EEDF;
  --band-card: #FFFDF8;
  --band-ink: #2A2826;
  --band-ink-2: #6B5F54;
  --band-rule: rgba(42, 40, 38, .14);
  --present: #16A34A;
  --absent: #DC2626;
  --bezel: #2A2826;
  --shadow-phone: 0 30px 60px -28px rgba(42, 40, 38, .45), 0 10px 22px -12px rgba(42, 40, 38, .25);

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(18px, 5vw, 64px);
  --max: 1180px;
  --section: clamp(72px, 10vw, 132px);
}

/* The page is light only, on purpose: the cream register is the brand surface,
   so it does not follow the visitor's dark setting. */
:root { color-scheme: light; }

*, *::before, *::after { 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(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--tang); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tang); color: var(--on-tang); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(29px, 3.8vw, 48px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.measure { max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--tang); color: var(--on-tang);
  border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: -.005em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(42, 40, 38, .18), 0 8px 18px -10px rgba(224, 122, 31, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--tang-press); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.crumb img { border-radius: 9px; }
.crumb .crumb-parent { color: var(--ink-2); font-weight: 600; }
.crumb .crumb-sep { color: var(--ink-3); }
.head-nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.head-nav a { text-decoration: none; color: var(--ink-2); }
.head-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tang); }
.head-nav .btn { white-space: nowrap; min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; color: var(--on-tang); }
.head-nav .btn:hover { color: var(--on-tang); text-decoration: none; }
@media (max-width: 720px) { .head-nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 84px) clamp(56px, 8vw, 104px);
  background-image:
    linear-gradient(to right, transparent calc(var(--gutter) - 10px), rgba(244, 146, 52, .55) calc(var(--gutter) - 10px), rgba(244, 146, 52, .55) calc(var(--gutter) - 9px), transparent calc(var(--gutter) - 9px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--rule) 47px, var(--rule) 48px);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; align-content: center; }
.hero-copy .lede { max-width: 30em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-2); font-weight: 600; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .85; }

.hero-stage { position: relative; min-height: clamp(420px, 56vw, 660px); }
.hero-stage .phone { position: absolute; }
.hero-stage .phone-main { width: min(62%, 330px); right: 4%; top: 0; z-index: 2; transform: rotate(2.5deg); }
.hero-stage .phone-back { width: min(52%, 270px); left: 0; top: 14%; transform: rotate(-6deg); z-index: 1; opacity: .96; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { min-height: 560px; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) { .hero-stage { min-height: 480px; } }

/* The single orchestrated motion: the hero phone takes roll. */
.roll { position: relative; }
.roll img + img { position: absolute; inset: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .roll img:first-child { animation: rollA 7s infinite; }
  .roll img + img { animation: rollB 7s infinite; }
}
@keyframes rollA { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rollB { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Phone frame ---------- */
.phone { margin: 0; display: flow-root; container-type: inline-size; background: var(--bezel); border-radius: 13.5% / 6.2%; box-shadow: var(--shadow-phone); }
/* Bezel is 2.6% of the phone's own width (percent padding would use the parent's width). */
.phone > img, .phone > .roll { margin: 2.6cqw; width: auto; border-radius: 11.4% / 5.2%; overflow: hidden; }
.phone .roll img { border-radius: 0; }
.phone .roll { overflow: hidden; }
.phone figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Register strip (echoes the app's stat strip) ---------- */
.strip { border-block: 1px solid var(--rule-strong); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { padding: 22px 20px; border-left: 1px solid var(--rule); display: grid; gap: 2px; }
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip strong { font-size: clamp(30px, 4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip span { font-size: 15px; color: var(--ink-2); font-weight: 500; }
@media (max-width: 720px) {
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 44rem; }

/* Steps — a real sequence, so these are numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { display: grid; align-content: start; gap: 18px; counter-increment: step; }
.step:nth-child(2) { padding-top: clamp(0px, 4vw, 56px); }
.step:nth-child(3) { padding-top: clamp(0px, 8vw, 112px); }
.step-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; padding-top: 16px; border-top: 2px solid var(--ink); }
.step-head::before { content: counter(step); grid-row: span 2; font-size: 54px; line-height: .9; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.step p { color: var(--ink-2); }
.step .phone { width: min(100%, 280px); }
.step-shot { height: clamp(300px, 34vw, 420px); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.step-shot .phone { box-shadow: none; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step:nth-child(n) { padding-top: 0; }
  .step-shot { height: 380px; }
}

/* Video */
.video-wrap { display: grid; gap: 14px; }
.promo-video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #1C1917; box-shadow: var(--shadow-phone); }
.video-note { font-size: 15px; color: var(--ink-2); }

/* What's new — ruled list */
.new-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.new-visual { position: sticky; top: 24px; height: clamp(420px, 52vw, 600px); }
.new-visual .phone { position: absolute; width: min(56%, 270px); }
.new-visual .phone:first-child { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.new-visual .phone:last-child { right: 0; top: 11%; transform: rotate(3deg); z-index: 2; }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ruled li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.ruled li p { color: var(--ink-2); }
@media (max-width: 900px) {
  .new-grid { grid-template-columns: 1fr; }
  .new-visual { position: relative; top: 0; height: 440px; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) { .ruled li { grid-template-columns: 1fr; } }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-row.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 22px; align-content: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--rule-strong); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; }
.facts li span { display: block; font-weight: 400; color: var(--ink-2); font-size: 15px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 30px); align-items: start; }
.trio .phone:nth-child(2) { margin-top: clamp(0px, 4vw, 52px); }
.trio .phone:nth-child(3) { margin-top: clamp(0px, 8vw, 104px); }
.tag { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.single { width: min(100%, 330px); margin-inline: auto; }
.reports-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; border-top: 1px solid var(--rule-strong); }
.reports-list li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 16px; }
.reports-list li small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .reports-list { columns: 1; } }

/* Privacy band */
.band { background: var(--band-bg); color: var(--band-ink); padding-block: var(--section); border-block: 1px solid var(--rule); }
.band .lede, .band p { color: var(--band-ink-2); }
.band h2, .band h3 { color: var(--band-ink); }
.band a { text-decoration-color: var(--tang); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--band-rule); border-radius: 18px; overflow: hidden; background: var(--band-card); }
.ledger > div { padding: 24px; display: grid; gap: 14px; align-content: start; }
.ledger > div + div { border-left: 1px solid var(--band-rule); }
.ledger h3 { font-size: 15px; letter-spacing: .01em; font-weight: 700; color: var(--band-ink-2); }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ledger li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline; color: var(--band-ink); font-weight: 600; line-height: 1.35; }
.ledger li small { display: block; font-weight: 400; color: var(--band-ink-2); font-size: 14px; margin-top: 2px; }
.ledger .mark { font-weight: 800; }
.ledger .stays .mark { color: var(--present); }
.ledger .leaves .mark { color: var(--tang-press); }
.band .phone { width: min(100%, 300px); margin-inline: auto; }
.band-note { margin-top: 22px; font-size: 15px; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } .band .phone { width: min(100%, 260px); } }
@media (max-width: 560px) { .ledger { grid-template-columns: 1fr; } .ledger > div + div { border-left: 0; border-top: 1px solid var(--band-rule); } }

/* Pricing table */
.price-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.price-table { border-top: 2px solid var(--ink); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.price-row h3 { font-size: 22px; }
.price-row p { grid-column: 1; color: var(--ink-2); font-size: 16px; }
.price-row .amt { grid-row: 1; grid-column: 2; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-row .amt small { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.price-row.best { background: var(--subtle); margin-inline: -16px; padding-inline: 16px; border-radius: 4px; }
.price-fine { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--panel); border-block: 1px solid var(--rule); text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.cta h2 { margin-bottom: 12px; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 20px 0; font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-weight: 400; font-size: 26px; line-height: 1; flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Support + footer */
.support { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); }
.support-body { display: grid; gap: 14px; max-width: 40em; color: var(--ink-2); }
.foot { border-top: 1px solid var(--rule-strong); padding-block: 36px 52px; font-size: 15px; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--tang); }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }
