/* tryprova.app. The app's own look: Poppins, the violet of the icon, the mascot.
   Motion is kept for moments that answer something: the page opening, a demo
   coming into view, a calculator result. Everything stops under Reduce Motion. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/fonts/Poppins-ExtraBold.ttf) format("truetype"); }

:root {
  --violet: #6C5CE7;       /* the app's accent */
  --violet-ink: #4A36C9;   /* violet that reads on white */
  --band: #5031CE;         /* the icon's background */
  --lilac: #C1B1FD;        /* the icon's leaves */
  --paper: #FFFFFF;
  --mist: #F3F0FF;
  --mist-2: #E6DFFF;
  --ink: #221A4A;
  --ink-2: #5D5786;
  --line: #E4DFF7;
  --sun: #FFC74A;
  --ok: #12825A;
  --ok-soft: #DDF5EA;
  --shadow: 0 30px 60px -32px rgba(48, 25, 160, .42), 0 2px 8px rgba(48, 25, 160, .06);
  --round: "SF Pro Rounded", ui-rounded, Poppins, system-ui, sans-serif;
  --spring: cubic-bezier(.2, .9, .3, 1.25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --violet: #B0A0F7;
    --violet-ink: #CFC5FF;
    --band: #3B22A6;
    --paper: #120D2B;
    --mist: #1C1640;
    --mist-2: #261E55;
    --ink: #F3F0FF;
    --ink-2: #B9B2DD;
    --line: #2E2660;
    --ok: #5FD3A0;
    --ok-soft: #12352A;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden;
  font: 400 1.0625rem/1.65 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .45em; color: inherit; }
h1, h2 { font-weight: 800; letter-spacing: -0.032em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.small { font-size: .88rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.nb { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--violet-ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(74, 54, 201, .8);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(74, 54, 201, .9); }
.btn:active { transform: scale(.97); }
@media (prefers-color-scheme: dark) { .btn { background: var(--violet); color: #1A1240; } }

.badge { display: inline-block; transition: transform .25s var(--spring); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }

/* ------------------------------------------------ header (sits on the band) */

.top { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; view-transition-name: top; }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(10, 0, 60, .5); }
.nav { display: flex; gap: 22px; flex: 1; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 #fff; }
.get { background: #fff; color: var(--band); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 999px; white-space: nowrap; transition: transform .25s var(--spring); }
.get:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; min-height: 0; }
  .brand { flex: 1; min-height: 48px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 18px; padding-bottom: 4px; }
  .nav a { font-size: .9rem; }
}

/* ------------------------------------------------ the band: every page opens on the app's violet */

.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--band); color: #fff;
  border-radius: 0 0 clamp(32px, 6vw, 64px) clamp(32px, 6vw, 64px);
  padding: 120px 0 72px;
  view-transition-name: band;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 60%, rgba(193, 177, 253, .55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(108, 92, 231, .7), transparent 70%);
}
@media (max-width: 760px) { .band { padding-top: 132px; } }
.band a:not(.btn):not(.badge):not(.get) { color: #fff; }
.band .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 34ch; }
.band .small { color: rgba(255, 255, 255, .74); }

/* the icon's leaves, drifting behind the content */
.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.leaf { position: absolute; width: var(--w); left: var(--x); top: var(--y); opacity: var(--o, .5); transform: rotate(var(--r)); animation: drift var(--d, 22s) ease-in-out infinite alternate; }
.leaf svg { width: 100%; height: auto; display: block; }
.leaf.soft { filter: blur(3px); }
@keyframes drift {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: var(--dx, 18px) var(--dy, -24px); rotate: var(--dr, 10deg); }
}

/* ------------------------------------------------ the mascot */

.mascot { position: relative; display: block; }
.mascot img { position: relative; z-index: 1; width: 100%; height: auto; }
.mascot::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 7%; z-index: 0;
  background: radial-gradient(closest-side, rgba(20, 8, 90, .38), transparent); border-radius: 50%;
}
.on-paper .mascot::after { background: radial-gradient(closest-side, rgba(48, 25, 160, .22), transparent); }

/* ------------------------------------------------ home hero */

.hero { padding-bottom: 148px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: .98; max-width: 11ch; }
.hero .badge { margin: 8px 0 10px; }
.hero .mascot { width: min(100%, 290px); justify-self: center; }
@media (max-width: 860px) {
  .hero { padding-bottom: 128px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero .mascot { order: -1; width: 112px; justify-self: start; margin: -4px 0 8px; }
}

/* one orchestrated opening: the words rise, the mascot springs in, then breathes */
.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero .mascot { animation: pop 1s var(--spring) .25s both; }
.hero .mascot img { animation: float 5.5s ease-in-out 1.3s infinite; }
.hero .mascot::after { animation: shadow 5.5s ease-in-out 1.3s infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(60px) scale(.86); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow { 50% { transform: scaleX(.82); opacity: .7; } }

/* ------------------------------------------------ the screens, drifting under the band */

.strip {
  position: relative; z-index: 2; margin-top: -104px; overflow: hidden; padding: 8px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.strip-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
.strip img { flex: 0 0 auto; width: clamp(172px, 19vw, 236px); border-radius: 28px; box-shadow: var(--shadow); }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }

/* ------------------------------------------------ home sections */

.section { padding-top: clamp(72px, 11vw, 140px); }
.section p.say { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36ch; }

/* the gift: what stays free */
.gift { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.gift .mascot { width: clamp(110px, 16vw, 168px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; padding: 0; list-style: none; max-width: 640px; }
.chips li { background: var(--mist); color: var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 1.02rem; }
.js .gift .chips li { transition: transform .55s var(--spring), opacity .4s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js .gift:not(.in) .chips li { opacity: 0; transform: translateY(18px) scale(.86); }
.js .gift.in .mascot img { animation: hop .7s var(--spring); }
@keyframes hop { 40% { transform: translateY(-16px) rotate(-3deg); } }
@media (max-width: 640px) { .gift { grid-template-columns: 1fr; } .gift .mascot { width: 120px; } }

/* the three stories: a tool, its live demo, the mascot pointing at it */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.story + .story { margin-top: clamp(72px, 10vw, 128px); }
.story.flip .stage { order: 2; }
.story .btn { margin-top: 6px; }
.stage { position: relative; background: var(--mist); border-radius: 40px; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.stage .mascot { position: absolute; z-index: 2; bottom: -6%; height: 58%; width: auto; }
.stage .mascot img { height: 100%; width: auto; }
.stage .mascot.left { left: -4%; }
.stage .mascot.right { right: -4%; }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story.flip .stage { order: 0; }
}

/* demo 1: the level curve draws itself */
.demo-curve { width: 64%; margin: 0 4% 16% 30%; overflow: visible; }
.demo-curve .area { fill: var(--violet); opacity: .14; }
.demo-curve .line { fill: none; stroke: var(--violet-ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.demo-curve .base { stroke: var(--mist-2); stroke-width: 2; }
.demo-curve .today { fill: var(--violet-ink); }
.demo-curve .ring { fill: none; stroke: var(--violet-ink); stroke-width: 2; transform-origin: 268px 27px; transform-box: view-box; }
.demo-curve .tag { fill: var(--ink); font: 600 11px Poppins, sans-serif; }
@media (prefers-color-scheme: dark) { .demo-curve .line { stroke: var(--violet); } .demo-curve .today { fill: var(--violet); } .demo-curve .ring { stroke: var(--violet); } }
.js .demo-curve .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .in .demo-curve .line { animation: draw 2.2s var(--ease) .2s forwards; }
.js .demo-curve .area, .js .demo-curve .today, .js .demo-curve .tag { opacity: 0; }
.js .in .demo-curve .area { animation: fade-area .8s ease 1.6s forwards; }
.js .in .demo-curve .today, .js .in .demo-curve .tag { animation: fade .4s ease 2.2s forwards; }
.in .demo-curve .ring { animation: ping 2s ease-out 2.4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-area { to { opacity: .14; } }
@keyframes ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }

/* demo 2: the 5% */
.demo-five { text-align: center; margin-left: 30%; }
.demo-five .num { font-family: var(--round); font-weight: 800; font-size: clamp(4.6rem, 11vw, 8.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--violet-ink); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .demo-five .num { color: var(--violet); } }
.demo-five .track { position: relative; height: 12px; width: min(240px, 100%); margin: 14px auto 10px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.demo-five .track i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 99px; background: var(--violet); transform-origin: left; }
.js .demo-five .track i { transform: scaleX(0); }
.js .in .demo-five .track i { transition: transform 1.3s var(--ease) .1s; transform: scaleX(1); }
.demo-five .scale-note { font-size: .92rem; color: var(--ink-2); margin: 0; font-variant-numeric: tabular-nums; }

/* demo 3: the printable sheets fan out */
.demo-paper { position: relative; width: 52%; aspect-ratio: 8.5 / 11; margin-right: 22%; }
.demo-paper .sheet-mini {
  position: absolute; inset: 0; background: #fff; border-radius: 10px; padding: 11% 10%;
  box-shadow: 0 24px 40px -24px rgba(48, 25, 160, .5); transition: transform 1s var(--spring);
}
.demo-paper .sheet-mini b { display: block; width: 62%; height: 9px; border-radius: 6px; background: var(--band); margin-bottom: 14%; opacity: .85; }
.demo-paper .sheet-mini i { display: block; height: 1px; background: #D9D3F2; margin-bottom: 10%; }
.demo-paper .sheet-mini:nth-child(1) { transform: rotate(-3deg); }
.demo-paper .sheet-mini:nth-child(2) { transform: rotate(1deg); }
.in .demo-paper .sheet-mini:nth-child(1) { transform: translate(-22%, 4%) rotate(-11deg); }
.in .demo-paper .sheet-mini:nth-child(2) { transform: translate(16%, 2%) rotate(7deg); }
.demo-paper .check { position: absolute; z-index: 3; right: -10%; top: 26%; width: 28%; opacity: 0; transform: scale(.4); transition: transform .6s var(--spring) 1s, opacity .3s 1s; }
.in .demo-paper .check { opacity: 1; transform: none; }
.demo-paper .check circle { fill: var(--sun); }
.demo-paper .check path { fill: none; stroke: #3A2A00; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* the promise: no account, the data stays home */
.promise { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 6vw, 80px); align-items: end; }
.promise h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 15ch; }
.promise .mascot { width: clamp(130px, 18vw, 210px); }
.meds { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.meds li { border-radius: 999px; padding: 7px 14px; font-size: .92rem; font-weight: 600; color: var(--violet-ink); background: var(--mist); }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } .promise .mascot { order: -1; } }

/* the last band: a celebration */
.band.end { margin-top: clamp(80px, 12vw, 150px); border-radius: clamp(32px, 6vw, 64px) clamp(32px, 6vw, 64px) 0 0; padding: 72px 0 80px; view-transition-name: none; }
.end-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 72px); align-items: center; }
.end .mascot { width: clamp(150px, 22vw, 260px); }
.end h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.end .mascot { transition: transform .9s var(--spring), opacity .4s; }
.js .end:not(.in) .mascot { transform: translateY(40px) scale(.9); opacity: 0; }
.end .confetti { left: clamp(90px, 16vw, 200px); top: 42%; }
@media (max-width: 640px) { .end .confetti { left: 100px; top: 28%; } }
@media (max-width: 640px) { .end-grid { grid-template-columns: 1fr; } }

.confetti { position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; background: var(--c, var(--sun)); opacity: 0; }
.in .confetti i, .good .confetti i { animation: burst 1.4s var(--ease) calc(var(--k) * 25ms + .3s) both; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); }
}

/* ------------------------------------------------ page bands (tools, guides) */

.band.page { padding-bottom: 136px; }
.page-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.page-grid .mascot { height: clamp(150px, 20vw, 230px); width: auto; margin-bottom: -40px; justify-self: start; }
.page-grid .mascot img { height: 100%; width: auto; }
.band.page h1 { max-width: 16ch; }
.band.page .lead { max-width: 44ch; margin-bottom: 0; }
.crumbs { font-weight: 600; font-size: .95rem; margin-bottom: 1em; }
.band.page .mascot { animation: pop .9s var(--spring) .1s both; }
@media (max-width: 640px) {
  .band.page { padding-bottom: 112px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-grid .mascot { order: -1; height: 120px; margin: 0 0 4px; }
}
.lift { position: relative; z-index: 2; margin-top: -96px; }
.lift > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; background: var(--paper); border-radius: 32px; padding: 24px 28px; box-shadow: var(--shadow); }
.print-bar p { margin: 0; flex: 1 1 260px; }
.band.page.flat { padding-bottom: 72px; }
.band.page.flat .mascot { margin-bottom: -24px; }

/* ------------------------------------------------ reading */

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; letter-spacing: -0.025em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lilac); color: var(--ink-2); }
.after-tool { padding-top: clamp(48px, 7vw, 80px); }
.first { padding-top: 56px; }
.sources { margin-top: 56px; padding: 24px 28px; border-radius: 24px; background: var(--mist); font-size: .93rem; }
.sources h2 { font-size: 1.15rem; margin: 0 0 .6em; letter-spacing: -0.01em; }
.sources ul { margin: 0 0 .6em; }
.sources p:last-child { margin: 0; }

.cta-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 56px 0 0; padding: 28px; border-radius: 32px; background: var(--band); color: #fff; overflow: hidden; }
.cta-card .mascot { width: 92px; }
.cta-card .mascot::after { background: radial-gradient(closest-side, rgba(20, 8, 90, .38), transparent); }
.cta-card p { margin: 0 0 6px; font-weight: 600; font-size: 1.08rem; }
.cta-card .badge img { height: 46px; }
@media (max-width: 520px) { .cta-card { grid-template-columns: 1fr; } }

/* articles: a reference page, quieter than the home */
.band.article-head { padding: 124px 0 60px; }
.band.article-head::before { background: radial-gradient(70% 120% at 100% 0%, rgba(193, 177, 253, .38), transparent 70%); }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 20ch; }
.article-head .dek { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 1.2em; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 48px; align-items: start; }
.article-layout .prose { margin: 0; max-width: 68ch; }
.toc { position: sticky; top: 28px; font-size: .9rem; }
.toc p { font-weight: 600; margin: 0 0 .6em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a[aria-current] { color: var(--ink); border-left-color: var(--violet); }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { position: static; background: var(--mist); border-radius: 18px; padding: 16px 18px; }
  .toc ol { border: 0; }
  .toc a { padding: 4px 0; margin: 0; border: 0; }
  .toc-wrap:empty { display: none; }
}
.article .note { font-size: .86rem; line-height: 1.5; color: var(--ink-2); background: var(--mist); border-radius: 14px; padding: 12px 16px; margin-bottom: 28px; }
.article .answer { font-size: clamp(1.18rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.article h2 { scroll-margin-top: 24px; }
.article h3 { margin-top: 1.5em; }
.article a { text-decoration-thickness: 1px; }
.article table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 1.4em 0; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article th { background: var(--mist); font-weight: 600; }
.article .sources ol { margin: 0; padding-left: 1.3em; }
.article .sources li { margin-bottom: .6em; }
.article .sources .checked { display: block; font-size: .84rem; color: var(--ink-2); }
.cta-quiet { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 40px; padding: 22px 24px; border-radius: 24px; background: var(--mist); }
.cta-quiet .mascot { width: 70px; }
.cta-quiet .mascot::after { background: radial-gradient(closest-side, rgba(48, 25, 160, .22), transparent); }
.cta-quiet p { margin: 0 0 8px; font-weight: 600; }
.cta-quiet .badge img { height: 44px; }
.tools-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.tools-row a { padding: 16px 18px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.35; transition: transform .3s var(--spring); }
.tools-row a:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .tools-row { grid-template-columns: 1fr; } }

.guide-list .when { margin-top: 8px; font-size: .84rem; font-weight: 600; color: var(--violet-ink); }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-list a { display: block; padding: 22px 26px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .3s var(--spring); }
.guide-list a:hover { transform: translateY(-3px); }
.guide-list strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.guide-list span { display: block; color: var(--ink-2); font-size: .95rem; }
.latest h2 { margin-bottom: .6em; }
.latest .more { margin-top: 18px; font-weight: 600; }

.links-big { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.links-big a { display: block; padding: 18px 22px; border-radius: 20px; background: var(--mist); font-weight: 600; text-decoration: none; color: var(--ink); transition: transform .3s var(--spring); }
.links-big a:hover { transform: translateX(4px); }

.table-wrap { overflow-x: auto; margin: 20px 0 28px; border-radius: 22px; box-shadow: var(--shadow); }
table.facts { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .94rem; background: var(--paper); }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.facts th { font-weight: 600; background: var(--mist); }
table.facts tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------ tools */

.tool { position: relative; background: var(--paper); border-radius: 32px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.tool label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.tool .hint { font-weight: 400; color: var(--ink-2); }
.field { margin-bottom: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > .field { flex: 1 1 180px; }
input, select, button { font: inherit; color: inherit; }
input, select {
  width: 100%; background: var(--mist); border: 2px solid transparent; border-radius: 16px; padding: 12px 14px; font-size: 1.05rem;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus { outline: none; border-color: var(--violet); background: var(--paper); }
.tool button { cursor: pointer; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: .95rem; border: 0; background: var(--mist); color: var(--ink); transition: transform .25s var(--spring), background .2s; }
.tool button:hover { background: var(--mist-2); }
.tool button:active { transform: scale(.96); }
.segmented { display: inline-flex; border-radius: 999px; padding: 4px; background: var(--mist); }
.tool .segmented button { background: none; padding: 7px 18px; }
.tool .segmented button[aria-pressed="true"] { background: var(--violet-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .tool .segmented button[aria-pressed="true"] { background: var(--violet); color: #1A1240; } }

.shots { display: grid; gap: 8px; margin: 8px 0 14px; }
.shot { display: grid; grid-template-columns: 1fr 130px 44px; gap: 8px; align-items: center; }
.shot.new { animation: rise .45s var(--ease) both; }
.tool .shot .remove { padding: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.shot-head { display: grid; grid-template-columns: 1fr 130px 44px; gap: 8px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }

.chart { margin: 24px 0 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .tick { fill: var(--ink-2); font-size: 11px; font-family: Poppins, system-ui, sans-serif; }
.chart .past { fill: none; stroke: var(--violet-ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .ahead { fill: none; stroke: var(--violet-ink); stroke-width: 2.5; stroke-dasharray: 6 6; opacity: .6; }
@media (prefers-color-scheme: dark) { .chart .past, .chart .ahead { stroke: var(--violet); } }
.chart .area { fill: var(--violet); opacity: .14; }
.chart .now { stroke: var(--ink); stroke-width: 1.5; }
.chart .now-label { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: Poppins, system-ui, sans-serif; }
@media (max-width: 560px) { .chart .tick, .chart .now-label { font-size: 18px; } }
.chart .dot { fill: var(--violet-ink); }
.chart .dot.later { fill: var(--paper); stroke: var(--violet-ink); stroke-width: 2; }
.chart .past.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.chart .area.draw { opacity: 0; animation: fade-area .6s ease .9s forwards; }

.result { position: relative; background: var(--mist); border-radius: 22px; padding: 18px 20px; margin-top: 18px; transition: background .4s; }
.result p { margin: 0 0 .3em; }
.result p:last-child { margin: 0; }
.result .big { font-family: var(--round); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.result.good { background: var(--ok-soft); padding-right: 124px; }
.result.good .big { color: var(--ok); }
.result .cheer { position: absolute; right: 14px; bottom: 6px; width: 100px; animation: cheer .8s var(--spring) both; }
.result .confetti { left: auto; right: 64px; top: 40%; }
.result .cheer.stay { animation: none; }
@keyframes cheer { from { opacity: 0; transform: translateY(30px) scale(.6) rotate(-8deg); } }
@media (max-width: 520px) { .result.good { padding-right: 20px; padding-top: 104px; } .result .cheer { top: 8px; bottom: auto; width: 88px; } .result .confetti { top: 50px; right: 60px; } }

/* ------------------------------------------------ printable sheets */

.sheet { background: #fff; color: #111; border-radius: 18px; padding: 28px; margin: 24px 0; overflow-x: auto; box-shadow: var(--shadow); }
.sheet h2 { margin-top: 0; font-size: 1.35rem; color: #111; letter-spacing: -0.01em; }
.sheet .fill { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; font-size: .9rem; }
.sheet .fill span { white-space: nowrap; }
.sheet .fill i { display: inline-block; min-width: 110px; border-bottom: 1px solid #999; margin-left: 6px; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .82rem; }
.sheet th, .sheet td { border: 1px solid #bbb; padding: 0 6px; height: 30px; text-align: left; }
.sheet th { background: #EFEDF9; font-weight: 600; height: 34px; }
.sheet .note { font-size: .78rem; color: #555; margin: 10px 0 0; }

/* ------------------------------------------------ footer */

.foot { padding: 56px 0; font-size: .92rem; color: var(--ink-2); }
.foot.on-band { background: var(--band); color: rgba(255, 255, 255, .8); padding-top: 0; }
.foot.on-band a { color: #fff; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .small { color: inherit; opacity: .85; }

/* ------------------------------------------------ page transitions (Safari 18.2+, Chrome 126+) */

@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: .25s ease both vt-out; }
::view-transition-new(root) { animation: .35s ease .05s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------ reduce motion */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .strip [aria-hidden="true"] { display: none; }
  .js .demo-curve .line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .demo-curve .today, .js .demo-curve .tag { opacity: 1; }
  .js .demo-curve .area { opacity: .14; }
  .js .demo-five .track i { transform: none; }
  .js .gift:not(.in) .chips li, .js .end:not(.in) .mascot { opacity: 1; transform: none; }
  .chart .past.draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .chart .area.draw { opacity: .14; }
  .confetti { display: none; }
}

/* ------------------------------------------------ print */

@media print {
  @page { size: letter; margin: 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .foot, .band, .no-print { display: none !important; }
  .lift { margin: 0; }
  .prose { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; margin: 0; break-after: page; overflow: visible; box-shadow: none; }
  .sheet:last-of-type { break-after: auto; }
  .sheet table { min-width: 0; }
}
