/* Aurevia marketing site — shared by the landing (/) and the guide pages.
   Casa editorial palette: marfil, viridian, oro, ink-green panels. */
:root {
  --bg: #F6F3EB;
  --surface: #FFFFFF;
  --surface-2: #F0EBE0;
  --border: #E3DCCC;
  --border-strong: #C8BFAA;
  --ink: #201E18;
  --muted: #5F5A4D;
  --dim: #8C8574;
  --brand: #2D5E4E;
  --brand-hover: #387360;
  --brand-deep: #21463A;
  --gold: #A67C33;
  --gold-bright: #C39647;
  --panel: #181F1B;
  --panel-soft: #212A25;
  --panel-border: #343F38;
  --panel-text: #ECE8DD;
  --panel-muted: #9DA79D;
  --wa: #DCF3E4;
  --max: 1160px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, nav, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,243,235,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-hover), var(--brand-deep));
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 6px rgba(24,31,27,0.3), inset 0 0 0 1px rgba(195,150,71,0.4);
  font-family: var(--serif); color: #F3EFE4; font-size: 16px; font-weight: 600; line-height: 1;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--brand); color: #F6F3EB !important;
  padding: 9px 17px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  transition: background 0.15s, transform 0.12s;
}
.nav-cta:hover { background: var(--brand-hover); }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } .brand { font-size: 17px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.13s ease, box-shadow 0.15s ease, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--brand); color: #F6F3EB; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 10px 24px -10px rgba(45,94,78,0.55); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 16px 32px -12px rgba(45,94,78,0.6); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #241B0C; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 28px -10px rgba(166,124,51,0.55); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-line { color: var(--panel-text); border-color: var(--panel-border); }
.btn-line:hover { border-color: var(--panel-muted); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .nav-cta:hover { transform: translateY(-1px); }
}
.btn:active, .nav-cta:active { transform: scale(0.97); transition-duration: 0.1s; }

/* ---------- Type ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow { margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), rgba(166,124,51,0.25)); }
.kicker { margin-bottom: 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
h1 em, h2 em { font-style: italic; color: var(--brand); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 17px; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 68px 0; } }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 88px;
  background:
    radial-gradient(58% 75% at 88% 8%, rgba(45,94,78,0.10), transparent 60%),
    radial-gradient(46% 55% at 4% 95%, rgba(166,124,51,0.10), transparent 60%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero { padding: 52px 0 64px; } .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; margin-bottom: 24px; }
.hero h1 .clock { font-variant-numeric: tabular-nums; color: var(--gold); font-style: normal; }
.hero-sub { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.proof-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.proof-row span { display: inline-flex; align-items: center; gap: 8px; }
.proof-row span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Night-shift phone */
.stage { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.stage::before {
  content: ''; position: absolute; width: 120px; height: 120px; right: -26px; top: -30px;
  border: 1px solid rgba(166,124,51,0.45); border-radius: 50%;
}
.phone {
  position: relative; background: var(--panel); border-radius: 30px; padding: 14px;
  box-shadow: 0 2px 4px rgba(24,31,27,0.1), 0 50px 90px -30px rgba(24,31,27,0.55);
  border: 1px solid var(--panel-border);
}
.phone-head { display: flex; align-items: center; gap: 11px; padding: 8px 10px 14px; color: var(--panel-text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: #241B0C; font-size: 15px; }
.phone-head b { display: block; font-size: 14px; font-weight: 600; }
.phone-head small { display: block; font-size: 11.5px; color: var(--panel-muted); }
.phone-head .time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--gold-bright); font-weight: 600; }
.thread { background: #EFE9DC; border-radius: 20px; padding: 14px 12px 40px; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,0.7); padding: 3px 10px; border-radius: 6px; margin-bottom: 4px; font-weight: 600; }
.msg { max-width: 84%; padding: 9px 12px 7px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,0.06); }
.msg small { display: block; text-align: right; font-size: 10px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.msg.in { background: var(--surface); align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: var(--wa); align-self: flex-end; border-top-right-radius: 4px; }
.msg.card { padding: 0; overflow: hidden; }
.msg.card .ph { height: 46px; background: linear-gradient(135deg, #CFC3A8, #A9B8A6); position: relative; }
.msg.card .ph::after { content: 'Cumbres 4° Sector'; position: absolute; left: 10px; bottom: 8px; font-size: 10.5px; color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.msg.card .body { padding: 8px 12px 7px; }
.msg.card b { font-weight: 650; }
.lead-chip {
  position: relative; z-index: 2; margin: -34px 0 0 -40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; width: 270px; font-size: 12.5px;
  box-shadow: 0 24px 50px -20px rgba(60,50,30,0.4);
}
.lead-chip .summary { color: var(--ink); font-weight: 600; font-size: 13px; }
.lead-chip .tag { display: inline-block; margin-bottom: 6px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.lead-chip .booked { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--border); color: var(--gold); font-weight: 650; }
@media (max-width: 560px) { .lead-chip { width: auto; margin: -28px 18px 0; } }

/* Sequenced thread: messages arrive one by one once the stage is visible */
.js .seq { opacity: 0; transform: translateY(8px) scale(0.98); }
.js .stage.in .seq { animation: arrive 0.5s var(--ease) forwards; }
.js .stage.in .seq:nth-child(2) { animation-delay: 0.2s; }
.js .stage.in .seq:nth-child(3) { animation-delay: 1.1s; }
.js .stage.in .seq:nth-child(4) { animation-delay: 2.0s; }
.js .stage.in .seq:nth-child(5) { animation-delay: 2.7s; }
.js .stage.in .seq:nth-child(6) { animation-delay: 3.6s; }
.js .stage.in .seq.chip { animation-delay: 4.4s; }
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ---------- Dark stat band ---------- */
.band {
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(166,124,51,0.14), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(45,94,78,0.45), transparent 60%),
    var(--panel);
  color: var(--panel-text);
}
.band h2 { color: var(--panel-text); }
.band h2 em { color: var(--gold-bright); }
.band .section-sub { color: var(--panel-muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--panel-border); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 34px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--panel-border); }
@media (max-width: 860px) { .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--panel-border); } }
.stat-num { font-family: var(--serif); font-size: clamp(46px, 5vw, 64px); line-height: 1; color: var(--gold-bright); font-weight: 500; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat p { color: var(--panel-text); font-size: 16px; max-width: 320px; }
.stat cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--panel-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--border-strong); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px 0 0; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,50,30,0.05), 0 22px 44px -18px rgba(60,50,30,0.25); border-color: var(--border-strong); }
}
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(45,94,78,0.09); border: 1px solid rgba(45,94,78,0.15); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(45,94,78,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232D5E4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.card-link { display: inline-flex; margin-top: 20px; font-weight: 600; font-size: 14px; color: var(--brand); }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Guarantees ---------- */
.surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.guarantees { display: grid; gap: 16px; }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.seal { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(166,124,51,0.5); display: grid; place-items: center; font-family: var(--serif); color: var(--gold); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.guarantee p { color: var(--muted); font-size: 15px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }
.fit .card.no { background: transparent; border-style: dashed; }
.fit .card.no .ticks li::before { background: rgba(166,124,51,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5m0-5l-5 5' fill='none' stroke='%23A67C33' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle h3 { font-size: 18px; }
.principle p { color: var(--muted); font-size: 14.5px; }
.principle::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 24px; color: var(--gold); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 700px; }
.faq details p a, .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(45,94,78,0.35); }

/* ---------- CTA panel ---------- */
.cta-panel {
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(166,124,51,0.18), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(45,94,78,0.5), transparent 60%),
    var(--panel);
  color: var(--panel-text); border-radius: 24px; border: 1px solid var(--panel-border);
  padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  box-shadow: 0 40px 80px -32px rgba(24,31,27,0.55);
}
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; padding: 34px 26px; } }
.cta-panel h2 { color: var(--panel-text); margin-bottom: 10px; }
.cta-panel h2 em { color: var(--gold-bright); }
.cta-panel p { color: var(--panel-muted); max-width: 540px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--panel); color: var(--panel-muted); padding: 60px 0 36px; border-top: 1px solid var(--panel-border); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--panel-border); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
footer .brand { color: var(--panel-text); }
footer .about { margin-top: 14px; font-size: 14px; max-width: 320px; }
footer h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-bright); margin-bottom: 14px; font-weight: 700; }
footer ul { list-style: none; font-size: 14px; }
footer li { margin-bottom: 9px; }
footer a { transition: color 0.15s; }
footer a:hover { color: var(--panel-text); }
.foot-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #77817A; }

/* ---------- Guide pages ---------- */
.guide-hero { padding: 64px 0 40px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.guide-hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.07; max-width: 880px; margin-bottom: 22px; }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 720px; }
.meta { margin-top: 22px; font-size: 13px; color: var(--dim); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-bottom: 24px; }
@media (max-width: 980px) { .guide-grid { grid-template-columns: 1fr; gap: 40px; } }
.prose { max-width: 700px; font-size: 17px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 56px; margin-bottom: 0; }
.prose h3 { margin-top: 32px; margin-bottom: 0; }
.prose p, .prose li { color: #3E3A30; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink); }
.prose .note { background: var(--surface-2); border-radius: 14px; padding: 18px 20px; font-size: 15px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; background: var(--bg); }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.convo { background: #EFE9DC; border-radius: 18px; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.convo .msg { font-size: 14.5px; }
.convo figcaption, .figure-cap { font-size: 13px; color: var(--dim); margin-top: 8px; }
.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 980px) { .aside { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.aside-card h3 { font-size: 18px; }
.aside-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: 8px; }
.toc { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--brand); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }
.related a.card h3 { font-size: 18px; }
.related a.card p { color: var(--muted); font-size: 14.5px; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: grid; gap: 18px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .calc-fields { grid-template-columns: 1fr; } }
.calc label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.calc input { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input:focus { outline: 2px solid rgba(45,94,78,0.35); border-color: var(--brand); }
.calc-out { border-top: 1px dashed var(--border-strong); padding-top: 16px; }
.calc-out .big { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-out p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .code { font-family: var(--serif); font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.lost h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 14px; }
.lost p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .seq { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .card, .btn { transition: none; }
}
