
/* Site público do OnCourt (landing, suporte e privacidade).
   Landing em bento: hero com o celular e duas grades (jogar / organizar) com cards vivos.
   O logo troca o esporte: OnCourt (carvão + lima) ⇄ OnSand (areia + laranja); as cores vêm dos
   tokens do app (app/src/theme/tokens.ts) e o site.js troca os textos marcados com data-sand. */
:root {
  color-scheme: dark;
  --canvas: #10120F;
  --surface: #1A1E19;
  --raised: #242922;
  --line: #30362D;
  --accent: #C8FF36;
  --accent-ink: #11140D;
  --accent-text: #C8FF36;
  --alt: #E4835D;
  --alt-ink: #10120F;
  --text: #F5F7EF;
  --text-2: #C1C7B9;
  --text-3: #8E9688;
  --glow: rgba(200, 255, 54, .22);
  --phone: #050605;
  --phone-edge: #3A4036;
  --veil: rgba(16, 18, 15, .8);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}
:root[data-sport="sand"] {
  color-scheme: light;
  --canvas: #F3E9D8;
  --surface: #FFF9F0;
  --raised: #F0E3CD;
  --line: #DCCBB0;
  --accent: #E0600F;
  --accent-ink: #FFF9F0;
  --accent-text: #A34405;
  --alt: #0F6E7C;
  --alt-ink: #FFF9F0;
  --text: #2A2118;
  --text-2: #5A4A3A;
  --text-3: #85725C;
  --glow: rgba(224, 96, 15, .20);
  --phone: #2A2118;
  --phone-edge: #5A4A3A;
  --veil: rgba(243, 233, 216, .82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s; }
.tile, .mini, .store, .phone, .screen, .knob, .match, .feed-item, .trophy, .pairs div, .date, .chip, .code { transition: background-color .5s, color .5s, border-color .5s; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* Top bar + sport toggle */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--veil); backdrop-filter: blur(14px); transition: background-color .5s; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 12px; }
.sport { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--text); }
.sport span { display: flex; align-items: center; gap: 7px; padding: 6px 14px 6px 7px; border-radius: 99px; font: 700 21px/1 var(--body); letter-spacing: -.045em; color: var(--text-3); transition: background-color .4s, color .4s; }
.sport img { width: 24px; height: 24px; flex: none; transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
:root:not([data-sport="sand"]) .sport .c, :root[data-sport="sand"] .sport .s { background: var(--raised); color: var(--text); }
:root:not([data-sport="sand"]) .sport .s img, :root[data-sport="sand"] .sport .c img { filter: grayscale(.7); opacity: .6; }
.sport:hover img { transform: rotate(-24deg); }
.sport-hint { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.top nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 99px; }
.top nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-2); padding: 7px 14px; border-radius: 99px; }
.top nav a:hover { background: var(--raised); color: var(--text); }
@media (max-width: 760px) { .top nav, .sport-hint { display: none; } }
@media (max-width: 400px) { .sport span { font-size: 18px; padding-right: 10px; gap: 5px; } .sport img { width: 20px; height: 20px; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px 88px; }
.hero h1 { font: clamp(60px, 8.4vw, 116px)/.9 var(--display); margin: 0; letter-spacing: .005em; text-wrap: balance; }
.hero h1 span { color: var(--accent-text); }
.hero .lead { font-size: 20px; color: var(--text-2); margin: 24px 0 0; max-width: 28em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--text); color: var(--canvas); text-decoration: none; }
a.store:hover { filter: brightness(1.1); }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: .7; }
.store strong { display: block; font-size: 16px; line-height: 1.15; }
/* No celular, a loja do aparelho vem primeiro e em destaque; a outra fica secundária (data-os vem do site.js). */
[data-os] .store { order: 2; }
[data-os="ios"] .store[data-store="ios"], [data-os="android"] .store[data-store="android"] { order: 1; padding: 13px 24px 13px 18px; box-shadow: 0 0 0 3px var(--accent), 0 10px 30px var(--glow); }
[data-os="ios"] .store[data-store="android"], [data-os="android"] .store[data-store="ios"] { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); padding-block: 7px; }
[data-os="ios"] .store[data-store="android"] strong, [data-os="android"] .store[data-store="ios"] strong { font-size: 14px; }
.soon { font-size: 14px; color: var(--text-3); margin-top: 12px; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(18px); } }

.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.phone { position: relative; width: min(330px, 100%); border-radius: 46px; padding: 12px; background: var(--phone); border: 1px solid var(--phone-edge); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
.screen { border-radius: 36px; background: var(--canvas); padding: 22px 16px 18px; display: grid; gap: 12px; }
.screen > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.screen > *:nth-child(2) { animation-delay: .25s; }
.screen > *:nth-child(3) { animation-delay: .4s; }
.screen > *:nth-child(4) { animation-delay: .55s; }
.s-head { display: flex; justify-content: space-between; align-items: center; }
.s-head b { font: 26px/1 var(--display); letter-spacing: .04em; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.chip.hot { background: var(--accent); color: var(--accent-ink); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 0 7px transparent; } }
.mini { background: var(--surface); border-radius: 18px; padding: 14px; border: 1px solid var(--line); }
.mini .lbl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.rank { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.rank .cat { font: 46px/1 var(--display); color: var(--accent-text); }
.rank .pts { font: 28px/1 var(--display); }
.bar { height: 8px; border-radius: 99px; background: var(--raised); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 18%; border-radius: 99px; background: var(--accent); animation: fill 1.6s .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fill { from { width: 4%; } }
.legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.call { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; }
.date { text-align: center; background: var(--raised); border-radius: 12px; padding: 6px 0; }
.date b { display: block; font: 26px/1 var(--display); }
.date small { font-size: 11px; color: var(--text-3); text-transform: uppercase; }
.call p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.35; min-width: 0; }
.call p b { display: block; color: var(--text); font-size: 14px; }

/* Section heads */
.sec { padding-block: 40px 96px; }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-h h2 { font: clamp(46px, 6vw, 76px)/.92 var(--display); margin: 0; max-width: 13em; text-wrap: balance; }
.sec-h p { margin: 0; color: var(--text-2); max-width: 26em; font-size: 17px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, background-color .5s, border-color .5s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px var(--glow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile h3 { font-size: 21px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.tile p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.tile .art { margin-top: auto; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
@media (max-width: 960px) { .s2, .s3 { grid-column: span 3; } .s4, .s6 { grid-column: span 6; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .s2, .s3, .s4, .s6 { grid-column: auto; } .tile { padding: 22px; } }

/* Scroll reveal only where the browser drives it from scroll; elsewhere tiles simply sit in place. */
@supports (animation-timeline: view()) {
  .tile, .sec-h { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { transform: translateY(40px) scale(.97); } }
}

/* Ranking ladder (animated by script) */
.rank-read { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rank-read .cat { font: 56px/1 var(--display); color: var(--accent-text); min-width: 1.5em; }
.rank-read .pts { font: 34px/1 var(--display); }
.rank-read .delta { font-weight: 700; font-size: 15px; padding: 3px 9px; border-radius: 99px; background: var(--raised); }
.rank-read .delta.up { color: var(--accent-text); }
.rank-read .delta.down { color: var(--alt); }
.rank-read .delta.pop { animation: popin .5s cubic-bezier(.2, 1.4, .4, 1); }
.rank-read small { color: var(--text-3); font-size: 13px; margin-left: auto; }
@keyframes popin { from { transform: scale(.6); } }
.ladder { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 140px; margin-top: 14px; }
.ladder span { background: var(--raised); border-radius: 6px 6px 3px 3px; transition: background-color .45s, transform .45s; transform-origin: bottom; }
.ladder span.done { background: color-mix(in srgb, var(--accent) 35%, var(--raised)); }
.ladder span.now { background: var(--accent); transform: scaleY(1.06); }
.ladder span.level-up { animation: levelup .8s ease-out; }
@keyframes levelup { 0% { transform: scaleY(1.25); box-shadow: 0 0 0 0 var(--glow); } 100% { transform: scaleY(1.06); box-shadow: 0 -10px 30px 4px transparent; } }
.ladder-l { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 8px; font: 15px/1 var(--display); color: var(--text-3); text-align: center; letter-spacing: .04em; }
.ladder-l span { transition: color .45s; }
.ladder-l .now { color: var(--accent-text); }
.band { height: 6px; border-radius: 99px; background: var(--raised); margin-top: 12px; overflow: hidden; }
.band i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }

/* Score confirm */
.score { display: grid; grid-template-columns: 1fr repeat(3, 26px); gap: 8px 6px; align-items: center; font-size: 15px; }
.score .w { color: var(--text); font-weight: 700; }
.score .l { color: var(--text-3); }
.score .n { font: 26px/1 var(--display); text-align: center; }
.confirm { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.btn { font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 99px; background: var(--raised); color: var(--text-2); transition: background-color .3s, color .3s; }
.btn.go { background: var(--accent); color: var(--accent-ink); animation: pulse 2s ease-in-out infinite; }
.btn.done { background: transparent; color: var(--accent-text); padding-inline: 0; animation: none; }

/* Code typing */
.code { font: 44px/1 var(--display); letter-spacing: .12em; color: var(--accent-text); background: var(--raised); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.code::after { content: ""; display: inline-block; width: 3px; height: .8em; margin-left: 4px; background: var(--accent); vertical-align: -.05em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Feed */
.feed { display: grid; gap: 10px; }
.feed-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--raised); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.feed-item small { color: var(--text-3); display: block; font-size: 12px; }
.feed-item em { font-style: normal; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.feed-item.enter { animation: slidein .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes slidein { from { transform: translateY(-14px) scale(.98); } }

/* Reviews */
.stars { display: grid; gap: 10px; font-size: 14px; }
.stars div { display: grid; grid-template-columns: 1fr minmax(60px, 120px) 28px; gap: 10px; align-items: center; color: var(--text-2); }
.stars .m { height: 6px; background: var(--raised); border-radius: 99px; overflow: hidden; }
.stars .m i { display: block; height: 100%; background: var(--alt); transform-origin: left; animation: grow 1.4s .3s cubic-bezier(.2, .7, .2, 1) both; }
@supports (animation-timeline: view()) { .stars .m i { animation-timeline: view(); animation-range: entry 10% cover 40%; animation-delay: 0s; } }
@keyframes grow { from { transform: scaleX(.1); } }
.stars b { color: var(--text); text-align: right; }

/* Trophies */
.trophies { display: flex; gap: 10px; flex-wrap: wrap; }
.trophy { flex: 1 1 140px; background: var(--raised); border-radius: 16px; padding: 12px; font-size: 13px; color: var(--text-2); }
.trophy b { display: block; color: var(--text); font-size: 14px; }
.badge { position: relative; overflow: hidden; display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }

/* Swap text (city, knobs) */
.swap { display: inline-block; }
.swap.flip { animation: flip .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes flip { from { transform: translateY(60%); filter: blur(2px); } }

/* Bracket */
.bracket-scroll { overflow-x: auto; }
.bracket { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 18px; min-width: 500px; }
.bracket .col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bracket .col > small { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.match { background: var(--raised); border-radius: 12px; font-size: 13px; overflow: hidden; }
.match div { display: flex; justify-content: space-between; padding: 7px 10px; gap: 8px; }
.match div + div { border-top: 1px solid var(--line); }
.match .w { font-weight: 700; } .match .w span:last-child { color: var(--accent-text); }
.match .l { color: var(--text-3); }
.match .when { color: var(--text-3); font-size: 12px; }
.match.pending { outline: 1.5px solid var(--accent); animation: pulse 2s ease-in-out infinite; }
.match .adv { color: var(--accent-text); font-weight: 700; }
.match .adv.in { animation: popin .5s cubic-bezier(.2, 1.4, .4, 1); }

/* League */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 0 0 8px; }
.table td { padding: 9px 0; border-top: 1px solid var(--line); }
.table .r { text-align: right; }
.table tbody tr:first-child td { color: var(--accent-text); font-weight: 700; }
.table tbody tr { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
@supports (animation-timeline: view()) { .table tbody tr { animation-timeline: view(); animation-range: entry 0% entry 80%; } }

/* Knobs */
.knobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.knob { background: var(--raised); border-radius: 14px; padding: 10px 12px; overflow: hidden; }
.knob small { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.knob b { font: 26px/1.1 var(--display); letter-spacing: .02em; }

/* Pairs */
.pairs { display: grid; gap: 8px; }
.pairs div { display: grid; grid-template-columns: 1fr 90px auto; gap: 12px; align-items: center; background: var(--raised); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.pairs small { color: var(--text-3); white-space: nowrap; }
.pairs .meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pairs .meter i { display: block; height: 100%; background: var(--accent); width: var(--w); animation: balance 4s ease-in-out infinite alternate; }
@keyframes balance { from { width: calc(var(--w) - 22%); } }

/* Two sports tile with rally court */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.two h3 { font: 54px/.95 var(--display); letter-spacing: .01em; }
.two h3 span { color: var(--accent-text); }
.go-sport { margin-top: 18px; border: 0; border-radius: 99px; padding: 12px 18px; font: 700 15px/1 var(--body); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.go-sport:hover { filter: brightness(1.08); }
.rally { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 190px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.rally .half { position: relative; display: flex; align-items: flex-end; padding: 12px 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rally .court { background: #10120F; color: #C8FF36; }
.rally .court::before { content: ""; position: absolute; inset: 14% 0 14% 14%; border: 2px solid rgba(245, 247, 239, .28); border-right: 0; }
.rally .court::after { content: ""; position: absolute; left: 40%; top: 14%; bottom: 14%; border-left: 2px solid rgba(245, 247, 239, .28); }
.rally .sandside { background: repeating-radial-gradient(circle at 30% 40%, rgba(0,0,0,.025) 0 2px, transparent 2px 6px), #E8C48E; color: #7A3A0A; justify-content: flex-end; }
.rally .sandside::before { content: ""; position: absolute; inset: 14% 14% 14% 0; border: 2px solid rgba(15, 110, 124, .55); border-left: 0; }
.rally .net { position: absolute; left: 50%; top: 6%; bottom: 6%; width: 12px; margin-left: -6px; z-index: 2; background: repeating-linear-gradient(0deg, rgba(251,246,238,.6) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(251,246,238,.6) 0 1px, transparent 1px 6px); border-inline: 2px solid #FBF6EE; }
.rally .ball { position: absolute; z-index: 3; width: 16px; height: 16px; border-radius: 50%; left: calc(50% - 8px); top: 50%; background: #C8FF36; box-shadow: 0 8px 0 -2px rgba(0,0,0,.22); animation: rally 2.6s ease-in-out infinite alternate, tint 5.2s steps(1) infinite; }
@keyframes rally { 0% { transform: translate(-150px, 34px); } 50% { transform: translate(0, -46px) scale(1.25); } 100% { transform: translate(150px, 20px); } }
@keyframes tint { 0% { background: #C8FF36; } 50% { background: #FF7A1A; } }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .two h3 { font-size: 46px; } @keyframes rally { 0% { transform: translate(-36vw, 34px); } 50% { transform: translate(0, -46px) scale(1.25); } 100% { transform: translate(36vw, 20px); } } }

/* CTA + footer */
.cta { text-align: center; padding-block: 40px 110px; }
.cta h2 { font: clamp(64px, 10vw, 140px)/.9 var(--display); margin: 0; }
.cta h2 span { color: var(--accent-text); display: inline-block; animation: bounce 2.4s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 55% { transform: translateY(0); } 65% { transform: translateY(-4px); } }
.cta p { color: var(--text-2); font-size: 18px; margin: 16px 0 0; }
.cta .stores { justify-content: center; }
footer { border-top: 1px solid var(--line); padding-block: 26px 32px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--accent-text); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* Fade the content while the sport switches */
main { transition: opacity .25s; }
.switching main { opacity: .15; }


/* Páginas de texto: suporte e privacidade */
.doc { padding-block: 56px 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font: clamp(56px, 8vw, 92px)/.9 var(--display); margin: 0 0 14px; letter-spacing: .005em; text-wrap: balance; }
.doc h1 span { color: var(--accent-text); }
.doc .intro { font-size: 19px; color: var(--text-2); margin: 0 0 40px; max-width: 34em; }
.doc .updated { color: var(--text-3); margin: 0 0 36px; }
.doc h2 { font: 34px/1 var(--display); letter-spacing: .02em; margin: 52px 0 14px; color: var(--accent-text); }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent-text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }

.contact { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px 26px; }
.contact small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.contact .email { font: 700 clamp(18px, 3.4vw, 24px)/1.2 var(--body); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact p { margin: 8px 0 0; font-size: 15px; }
.contact .btn-mail { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-weight: 700; font-size: 17px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--accent-text); font-size: 20px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 10px; }
.faq details[open] > div { animation: rise .4s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
