/* ─── Bitcoin Cloud Miner — website ─────────────────────────────────────────
   Same identity as the app: Bitcoin orange on white, graphite text,
   Chakra Petch for headings and numbers, Figtree for reading. */
:root {
  --btc: #F7931A; --btc-600: #E57F06; --btc-ink: #B45309;
  --btc-50: #FFF7EE; --btc-100: #FFECD5; --btc-200: #FFDDB2;
  --white: #FFFFFF; --graphite: #23262B; --graphite-2: #2E3238; --steel: #5F656E; --fog: #9AA0A8;
  --mist: #F5F6F8; --line: #EAECEF; --ok: #157A3C; --bad: #C9302C;
  --display: 'Chakra Petch', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 24px 60px rgba(180, 83, 9, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--graphite); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--btc-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--btc); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--graphite); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 20ch; }
h3 { font-size: 21px; }
.intro { color: var(--steel); font-size: 18px; max-width: 60ch; margin: 14px 0 0; }
.tnum { font-variant-numeric: tabular-nums; }
section { padding: 96px 0; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer;
  font: 600 17px var(--display); letter-spacing: .2px; text-decoration: none; transition: transform .12s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--btc); color: var(--graphite); box-shadow: 0 10px 24px rgba(247, 147, 26, .32); }
.btn-primary:hover { background: var(--btc-600); }
.btn-ghost { background: var(--white); color: var(--graphite); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--btc-200); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; box-shadow: none; }
.play-btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--graphite); color: #fff; text-decoration: none; transition: background-color .15s; }
.play-btn:hover { background: #000; }
.play-btn svg { width: 26px; height: 26px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.play-btn small { font: 500 11.5px var(--body); opacity: .8; letter-spacing: .3px; }
.play-btn b { font: 600 19px var(--display); }

/* ─── Header ─── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); color: var(--graphite); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--steel); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.nav a:hover { color: var(--graphite); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--graphite); background: var(--btc-100); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--graphite); position: relative; transition: transform .2s, background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(35, 38, 43, .08); display: none; }
  .menu-open .nav { display: flex; }
  .nav a { padding: 13px 14px; font-size: 17px; }
  .nav .nav-cta { display: flex; margin-top: 8px; justify-content: center; background: var(--btc); color: var(--graphite); }
}
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

/* ─── Hero ─── */
.hero { padding: 64px 0 88px; background: radial-gradient(1000px 520px at 85% 0%, var(--btc-100), transparent 70%), linear-gradient(180deg, var(--btc-50), var(--white) 85%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); max-width: 12.5ch; }
.hero .lede { font-size: 20px; color: #40454D; max-width: 44ch; margin: 22px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.pills li { padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--btc-100); font: 600 14px var(--display); color: var(--steel); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(247, 147, 26, .35), rgba(247, 147, 26, 0)); }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(35, 38, 43, .14); border: 1px solid var(--line); }
.float .k { font-size: 12.5px; font-weight: 600; color: var(--steel); }
.float .v { font: 700 22px var(--display); font-variant-numeric: tabular-nums; }
.float .v small { font-size: 13px; color: var(--btc-ink); margin-left: 3px; }
.float-a { left: 0; top: 18%; }
.float-b { right: 0; bottom: 16%; display: flex; align-items: center; gap: 10px; }
.float-b .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 122, 60, .45); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(21, 122, 60, .45); } 100% { box-shadow: 0 0 0 10px rgba(21, 122, 60, 0); } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .float-a { left: 2%; } .float-b { right: 2%; }
}

/* ─── Phone mockup ─── */
.phone { position: relative; z-index: 1; width: 300px; max-width: 78vw; padding: 10px; border-radius: 46px; background: #1E2227; box-shadow: var(--shadow), inset 0 0 0 2px #3A3F47; }
.phone img { border-radius: 37px; width: 100%; }
.phone.sm { width: 250px; border-radius: 40px; padding: 9px; }
.phone.sm img { border-radius: 32px; }

/* ─── Stats strip (live from the database, hidden until there's enough data) ─── */
.stats { padding: 0; margin-top: -40px; position: relative; z-index: 3; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--graphite); color: #fff; border-radius: var(--r-lg); padding: 26px 10px; box-shadow: var(--shadow); }
.stats .grid div { text-align: center; padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stats .grid div:first-child { border-left: 0; }
.stats b { display: block; font: 700 clamp(24px, 3vw, 34px) var(--display); color: var(--btc); font-variant-numeric: tabular-nums; }
.stats span { color: #C7CBD2; font-size: 14.5px; }
@media (max-width: 720px) { .stats .grid { grid-template-columns: 1fr 1fr; row-gap: 22px; } .stats .grid div:nth-child(3) { border-left: 0; } }

/* ─── Steps ─── */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--btc); color: var(--graphite); font: 700 20px var(--display); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--steel); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ─── Split feature rows ─── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media.duo { gap: 18px; }
.feature-media.duo .phone:last-child { margin-top: 60px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: #40454D; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--btc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { color: var(--graphite); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 40px; } .feature.flip .feature-media { order: 0; } .feature-media.duo .phone:last-child { margin-top: 40px; } }

/* ─── Rig preview card ─── */
.rig-card { position: relative; width: 100%; max-width: 460px; background: linear-gradient(180deg, var(--btc-50) 0%, #fff 62%); border: 1px solid var(--btc-100); border-radius: 30px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.rig-top { display: flex; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font: 600 13px var(--display); color: var(--steel); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fog); }
.pill.live { color: var(--ok); }
.pill.live .dot { background: var(--ok); animation: pulse 1.8s ease-out infinite; }
.chip { padding: 6px 12px; border-radius: 99px; background: var(--graphite); color: #fff; font: 600 13px var(--display); }
.rig-svg { width: 100%; height: auto; display: block; margin: 4px 0 -4px; }
.fan-blades { transform-box: view-box; }
.rig.on .fan-blades { animation: spin .38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rig-heat { opacity: 0; transition: opacity .8s; }
.rig.on .rig-heat { opacity: 1; }
.rig-packets .pk { opacity: 0; }
.rig.on .rig-packets .pk { animation: packet 1.9s ease-in infinite; }
.rig.on .pk1 { animation-delay: .48s; } .rig.on .pk2 { animation-delay: .95s; } .rig.on .pk3 { animation-delay: 1.42s; }
@keyframes packet { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.led { fill: #D5D9DE; }
.rig.on .led { fill: #22C55E; animation: led 1.1s steps(2, jump-none) infinite; }
.rig.on .led1 { animation-duration: .7s; } .rig.on .led2 { animation-duration: 1.5s; } .rig.on .led3 { animation-duration: .9s; fill: var(--btc); }
@keyframes led { 50% { opacity: .25; } }
.readout { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.readout .k { font-size: 13px; font-weight: 600; color: var(--steel); }
.readout .v { font: 700 27px var(--display); font-variant-numeric: tabular-nums; }
.readout small { font-size: 14px; color: var(--btc-ink); }
.readout .r { text-align: right; }
.gauge { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 10px 0 14px; }
.gauge span { height: 10px; border-radius: 3px; background: #EEE6DA; }
.gauge span.full { background: var(--btc); }
.gauge span.next { animation: seg 1s ease-in-out infinite; }
@keyframes seg { 50% { background: var(--btc-200); } }
.rig-card .btn { width: 100%; height: 48px; }
.rig-card .rig-note { text-align: center; color: var(--fog); font-size: 13px; margin: 10px 0 0; }

/* ─── Dark numbers band ─── */
.dark { background: var(--graphite); color: #fff; }
.dark .intro { color: #B9BEC6; }
.dark a:not(.btn) { color: var(--btc); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; padding: 0; }
.facts div { padding: 4px 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { color: #B9BEC6; font-size: 14px; font-weight: 600; }
.facts dd { margin: 8px 0 10px; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--display); color: var(--btc); font-variant-numeric: tabular-nums; }
.facts p { margin: 0; color: #D5D9DE; font-size: 15px; }
.band-foot { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: #D5D9DE; }
.band-foot p { margin: 0; max-width: 62ch; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 30px; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div { border-left: 0; padding-left: 0; } }

/* ─── Game cards ─── */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.game { border-radius: var(--r-lg); background: var(--btc-50); border: 1px solid var(--btc-100); overflow: hidden; display: flex; flex-direction: column; }
.game-shot { height: 300px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; }
.game-shot .phone { width: 230px; border-radius: 38px 38px 0 0; padding-bottom: 0; }
.game-shot .phone img { border-radius: 30px 30px 0 0; }
.game-body { padding: 22px 24px 26px; background: #fff; border-top: 1px solid var(--btc-100); flex: 1; }
.game-body h3 { margin-bottom: 6px; }
.game-body p { margin: 0; color: var(--steel); font-size: 15.5px; }
.game-body .meta { margin-top: 12px; font: 600 14px var(--display); color: var(--btc-ink); }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* ─── Screenshot rail ─── */
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 20px 30px; margin: 0 -20px; scrollbar-width: thin; }
.rail figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.rail figcaption { text-align: center; font: 600 15px var(--display); color: var(--steel); margin-top: 14px; }

/* ─── Honest band ─── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.cols > div { background: #fff; border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--btc-100); }
.cols ul { margin: 14px 0 0; padding-left: 20px; color: #40454D; display: grid; gap: 8px; }
.tint { background: var(--btc-50); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 600 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--btc-ink); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: #40454D; margin: 12px 0 0; max-width: 68ch; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 26px; }

/* ─── CTA band ─── */
.cta-band { padding: 0 0 96px; }
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--btc); border-radius: 32px; padding: 48px; overflow: hidden; position: relative; }
.cta-box::after { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cta-box h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 18ch; }
.cta-box p { margin: 10px 0 0; color: #3A2A14; font-size: 18px; }
.cta-box .play-btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; padding: 34px 26px; } }

/* ─── Page hero (inner pages) ─── */
.page-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--btc-50), var(--white)); border-bottom: 1px solid var(--btc-100); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); max-width: 18ch; }
.page-hero p { color: var(--steel); font-size: 19px; max-width: 58ch; margin: 16px 0 0; }
.crumbs { font-size: 14px; color: var(--fog); margin-bottom: 14px; }
.crumbs a { color: var(--steel); text-decoration: none; }

/* ─── Cards / grids on inner pages ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--steel); }
.card .num { font: 700 30px var(--display); color: var(--btc-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.icon-tile { width: 48px; height: 48px; border-radius: 15px; background: var(--btc-100); color: var(--btc-ink); display: grid; place-items: center; margin-bottom: 16px; }
.icon-tile svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 40px 0 0; border-left: 3px solid var(--btc); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ''; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--btc); }
.timeline b { font: 700 18px var(--display); display: block; }
.timeline span { color: var(--steel); }

.table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.table th { text-align: left; color: var(--steel); font-weight: 600; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table td:last-child, .table th:last-child { text-align: right; }

/* ─── Estimator ─── */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 30px; overflow: hidden; border: 1px solid var(--btc-100); margin-top: 40px; box-shadow: var(--shadow); }
.est-in { padding: 34px; background: #fff; display: grid; gap: 26px; }
.est-in label { display: block; font-weight: 600; }
.est-in .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.est-in output { font: 700 20px var(--display); color: var(--btc-ink); }
input[type=range] { width: 100%; accent-color: var(--btc); height: 28px; }
.est-out { padding: 34px; background: var(--graphite); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.est-out .k { color: #B9BEC6; font-size: 14.5px; }
.est-out .v { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--display); color: var(--btc); font-variant-numeric: tabular-nums; }
.est-out p { margin: 0; color: #B9BEC6; font-size: 14px; }
@media (max-width: 860px) { .estimator { grid-template-columns: 1fr; } }

/* ─── Forms (support, delete account, reset password) ─── */
.form { display: grid; gap: 16px; }
.form label, .doc label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input, .form select, .form textarea, .doc input {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; background: #fff; color: var(--graphite); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .doc input:focus { outline: none; border-color: var(--btc); box-shadow: 0 0 0 4px rgba(247, 147, 26, .16); }
.form .btn, .doc button { justify-self: start; }
.doc button { margin-top: 18px; height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer; background: var(--btc); color: var(--graphite); font: 600 16px var(--display); }
.doc button.danger { background: var(--bad); color: #fff; }
.doc button:disabled { opacity: .6; cursor: wait; }
.doc .card { margin: 22px 0; }
.doc label { margin-top: 14px; }
.msg { margin-top: 14px; font-size: 15px; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.note { background: var(--btc-50); border: 1px dashed rgba(247, 147, 26, .5); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; color: #40454D; }
.hp { position: absolute; left: -9999px; }

/* ─── Long-form documents (rules, privacy, terms) ─── */
.doc { padding: 56px 0 90px; }
.doc h2 { font-size: 24px; margin: 42px 0 10px; max-width: none; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #3A3F47; }
.doc ul { padding-left: 1.2rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0 12px; }
.doc th { text-align: left; color: var(--steel); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc td { padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.doc td:last-child, .doc th:last-child { text-align: right; }
.doc .muted, .muted { color: var(--steel); font-size: 15px; }
.links { display: grid; gap: 10px; margin-top: 20px; }
.links a { display: block; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--graphite); font-weight: 600; }
.links a:hover { border-color: var(--btc-200); background: var(--btc-50); }

/* ─── Footer ─── */
.site-foot { background: var(--graphite); color: #C7CBD2; padding: 64px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-foot .brand { color: #fff; margin: 0 0 14px; }
.site-foot p { margin: 0; max-width: 40ch; }
.site-foot h4 { font: 600 15px var(--display); color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-foot a { color: #C7CBD2; text-decoration: none; }
.site-foot a:hover { color: var(--btc); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #9AA0A8; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ─── One orchestrated entrance (hero only) ─── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .8, .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; }
  .hero-visual { animation: rise .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Keep grid children from forcing the page wider than the screen */
.feature > *, .hero .wrap > *, .cols > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 600px) {
  .feature-media.duo { gap: 12px; }
  .feature-media.duo .phone { width: 47%; padding: 7px; border-radius: 30px; }
  .feature-media.duo .phone img { border-radius: 24px; }
  section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
}
