/* MagicCV — site styles. Mobile first; one file, no framework. */

:root {
  --blue: #0062FF;
  --violet: #5C33F2;
  --ink: #12141C;
  --muted: #5B6172;
  --line: #E6E8F0;
  --paper: #FCFCFE;
  --tint: #EEF3FF;
  --orange: #FF9500;
  --green: #1FB85A;
  --red: #FF3B30;
  --pink: #FF5FA2;
  --yellow: #FFD23F;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgba(18, 20, 28, .06), 0 8px 24px rgba(18, 20, 28, .06);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 254, .82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.top nav a.link:hover { background: var(--tint); }
.top nav a.link.hide-sm { display: none; }
@media (min-width: 720px) { .top nav a.link.hide-sm { display: inline-block; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--grad);
  box-shadow: 0 6px 18px rgba(0, 98, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--spring), box-shadow .25s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 98, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: scale(.96); filter: brightness(.95); }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px #cfd4e2; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 15px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .25s var(--spring), box-shadow .25s;
  box-shadow: 0 6px 16px rgba(18, 20, 28, .18);
  -webkit-tap-highlight-color: transparent;
}
.store:hover { transform: translateY(-2px) rotate(-1deg); }
.store:active { transform: scale(.96); }
.store svg { width: 22px; height: 22px; fill: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 11px; opacity: .8; font-weight: 600; }
.store b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */

.hero { padding: 26px 0 40px; position: relative; }
.hero .wrap { display: grid; gap: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--blue);
  background: var(--tint); padding: 7px 13px 7px 10px; border-radius: 999px;
}
.eyebrow .sp { width: 16px; height: 16px; fill: var(--blue); animation: twinkle 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(42px, 11vw, 76px); font-weight: 900; margin: 18px 0 22px; letter-spacing: -0.035em; }
.stat {
  display: inline-flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 14px 22px 14px 18px;
  border-radius: 24px; background: #fff; box-shadow: var(--shadow);
  animation: statIn .8s var(--spring) .2s both;
}
.stat-num { font-size: clamp(56px, 14vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-text { font-size: 19px; font-weight: 800; line-height: 1.2; max-width: 190px; }
.stat-text sup { color: var(--muted); font-size: 13px; }
.footnote { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 520px; }
@keyframes statIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.still .stat { animation: none; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.points { list-style: none; padding: 0; margin: -8px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.points li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.points li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* the highlighter, borrowed from the app's on-page highlights */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .06em; height: .42em;
  background: rgba(0, 98, 255, .22); border-radius: 6px;
  transform-origin: left; transform: scaleX(0);
  animation: mark .9s var(--ease) .5s forwards;
}
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .02em; height: 4px; border-radius: 4px;
  background: var(--blue); transform-origin: left; transform: scaleX(0);
  animation: mark .9s var(--ease) .65s forwards;
}
.hl.orange::before { background: rgba(255, 149, 0, .22); }
.hl.orange::after { background: var(--orange); }
.hl.red::before { background: rgba(255, 59, 48, .2); }
.hl.red::after { background: var(--red); }

.sticker {
  position: absolute; top: -6px; right: calc(50% - 190px); z-index: 6;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; line-height: 1.15; padding: 12px;
  box-shadow: 0 8px 20px rgba(18, 20, 28, .14);
  transform: rotate(12deg);
  transition: transform .5s var(--spring);
  cursor: default;
}
.sticker b { display: block; font-size: 22px; }
.sticker:hover { transform: rotate(-6deg) scale(1.08); }
@media (max-width: 719px) { .sticker { width: 86px; height: 86px; font-size: 9.5px; right: max(6px, calc(50% - 172px)); } .sticker b { font-size: 18px; } }

/* ---------- Phone mock ---------- */

.stage { position: relative; display: grid; place-items: center; padding: 10px 0; }
.phone {
  position: relative; width: 280px; height: 560px; border-radius: 46px;
  background: #fff; overflow: hidden;
  box-shadow: 0 0 0 10px #12141C, 0 0 0 11px #2a2d38, 0 30px 60px rgba(18, 20, 28, .25);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; z-index: 5; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #12141C;
}
.screen { position: absolute; inset: 0; padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.urlbar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 999px; background: #F1F3F8; font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.urlbar .ic { width: 14px; height: 14px; color: var(--muted); flex: none; }
.urlbar .caret { width: 1.5px; height: 14px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.page { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 6px 4px; opacity: 0; transition: opacity .5s; }
.page.on { opacity: 1; }
.bar { height: 8px; border-radius: 6px; background: #E9ECF3; }
.bar.t { height: 14px; width: 70%; background: #2a2d38; }
.ad { font-size: 13px; line-height: 1.7; color: #3a3f4d; }
.ad mark { background: none; color: inherit; border-radius: 4px; padding: 0 2px; transition: background .4s, box-shadow .4s; }
.ad.lit mark.have { background: rgba(0, 98, 255, .16); box-shadow: inset 0 -2px 0 var(--blue); }
.ad.lit mark.gap { background: rgba(255, 149, 0, .18); box-shadow: inset 0 -2px 0 var(--orange); }
.ad.lit mark.flag { background: rgba(255, 59, 48, .16); box-shadow: inset 0 -2px 0 var(--red); }

.pill {
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 4;
  display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 10px;
  border-radius: 22px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(18, 20, 28, .18), 0 0 0 1px rgba(18, 20, 28, .05);
  transform: translateY(130%); transition: transform .7s var(--spring);
}
.pill.on { transform: translateY(0); }
.ring { position: relative; width: 38px; height: 38px; flex: none; }
.ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: rgba(0, 98, 255, .14); }
.ring .fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pill .tx { flex: 1; min-width: 0; }
.pill .tx b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .tx small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .go { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; transition: background .3s; }
.pill .go.done { background: var(--green); }

.spark { position: absolute; fill: var(--blue); opacity: .85; animation: float 6s ease-in-out infinite; pointer-events: none; }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--blue); margin-bottom: 10px; }
h2.big { font-size: clamp(32px, 7.5vw, 52px); font-weight: 900; letter-spacing: -0.03em; }
.sub { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 560px; }
.squiggle { display: block; width: 120px; height: 14px; margin-top: 14px; }
.squiggle path { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.2s var(--ease) .2s; }
.in .squiggle path { stroke-dashoffset: 0; }

/* Feature rows with live mini demos */
.features { display: grid; gap: 22px; margin-top: 36px; }
.feature {
  display: grid; gap: 22px; align-items: center;
  background: #fff; border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.feature h3 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.feature .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--tint); color: var(--blue); font-weight: 900; margin-bottom: 14px; }
.demo { position: relative; height: 300px; border-radius: 24px; background: linear-gradient(160deg, #F4F7FF, #EEF0FF); overflow: hidden; display: grid; place-items: center; }
.mini { width: 220px; height: 260px; border-radius: 26px; background: #fff; box-shadow: 0 14px 34px rgba(18, 20, 28, .14), 0 0 0 1px rgba(18, 20, 28, .05); position: relative; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 860px) {
  .hero { padding: 56px 0 70px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .feature { grid-template-columns: 1fr 1fr; padding: 36px; }
  .feature:nth-child(even) .demo { order: -1; }
  .feature h3 { font-size: 34px; }
}

/* demo: apply */
.field { height: 30px; border-radius: 9px; background: #F1F3F8; font-size: 12px; display: flex; align-items: center; padding: 0 10px; color: var(--ink); transition: background .3s; }
.field.f { background: rgba(0, 98, 255, .1); }
.upload { height: 38px; border-radius: 9px; border: 1.5px dashed #cfd4e2; font-size: 12px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--muted); transition: all .4s var(--spring); }
.upload.f { border-style: solid; border-color: var(--green); color: var(--ink); font-weight: 700; transform: scale(1.03); }
.tap {
  margin-top: auto; align-self: center; height: 40px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; font: 700 14px var(--font); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0, 98, 255, .5); animation: pulse 1.8s infinite;
  transition: transform .2s var(--spring);
}
.tap:active { transform: scale(.94); }
.tap.done { animation: none; background: var(--green); }

/* demo: track */
.check { width: 74px; height: 74px; border-radius: 50%; background: var(--green); display: grid; place-items: center; transform: scale(0); transition: transform .6s var(--spring); }
.check svg { width: 34px; height: 34px; }
.check path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .5s var(--ease) .25s; }
.check.on { transform: scale(1); }
.check.on path { stroke-dashoffset: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border-radius: 12px; background: #F4F6FB; font-size: 12px; }
.row b { font-size: 12.5px; }
.chip { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 999px; transition: background .3s; }
.chip.g { background: var(--green); }
.confetti i { position: absolute; width: 8px; height: 5px; border-radius: 2px; left: 50%; top: 45%; opacity: 0; }

/* Little things grid */
.grid4 { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); transition: transform .35s var(--spring); }
.tile:hover { transform: translateY(-4px) rotate(-.6deg); }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.tile .ico svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 15.5px; }

/* Sites marquee */
.marquee { overflow: hidden; margin-top: 26px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 10px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.site { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px 0 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; white-space: nowrap; }
.site i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 13px; font-weight: 900; }

/* CV section */
.cvsec { display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .cvsec { grid-template-columns: 1fr 1fr; } }
.fan { position: relative; height: 300px; display: grid; place-items: center; }
.cvdoc { position: absolute; width: 168px; height: 230px; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(18, 20, 28, .15); padding: 16px 14px; transition: transform .6s var(--spring); }
.cvdoc .n { height: 11px; width: 70%; border-radius: 4px; background: #2a2d38; margin-bottom: 6px; }
.cvdoc .h { height: 6px; width: 50%; border-radius: 4px; background: var(--blue); margin-bottom: 14px; }
.cvdoc .l { height: 5px; border-radius: 3px; background: #E3E6EE; margin-bottom: 6px; }
.cvdoc.side { padding-left: 64px; }
.cvdoc.side::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 50px; background: #0F2C8C; border-radius: 10px 0 0 10px; }
.cvdoc:nth-child(1) { transform: rotate(-11deg) translateX(-62px); }
.cvdoc:nth-child(2) { transform: rotate(9deg) translateX(62px); }
.cvdoc:nth-child(3) { transform: translateY(-6px); z-index: 2; }
.fan:hover .cvdoc:nth-child(1) { transform: rotate(-16deg) translateX(-96px); }
.fan:hover .cvdoc:nth-child(2) { transform: rotate(14deg) translateX(96px); }
.fan:hover .cvdoc:nth-child(3) { transform: translateY(-16px) scale(1.04); }
.links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 700; transition: transform .3s var(--spring); }
.links a:hover { transform: translateX(4px); }
.links a small { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }
.links a .arr { color: var(--blue); font-size: 20px; }

/* Blog cards */
.cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(18, 20, 28, .06), 0 16px 34px rgba(18, 20, 28, .1); }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.card .tag.policy { background: #FFF1E6; color: #C25E00; }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card time { margin-top: auto; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.more { display: inline-flex; margin-top: 22px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* FAQ */
.faq { margin-top: 26px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; font-size: 17px; position: relative; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230062FF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .a { padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.finale { border-radius: var(--r-lg); background: var(--grad); color: #fff; padding: 44px 24px; text-align: center; position: relative; overflow: hidden; }
.finale h2 { font-size: clamp(32px, 8vw, 54px); font-weight: 900; letter-spacing: -0.03em; }
.finale p { opacity: .88; margin: 12px auto 26px; max-width: 460px; font-size: 18px; }
.finale .stores { justify-content: center; }
.finale .store { background: #fff; color: var(--ink); }
.finale .store svg { fill: var(--ink); }
.finale .spark { fill: #fff; opacity: .6; }

/* ---------- Footer ---------- */

footer.site-foot { padding: 50px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a.brand { color: var(--ink); }
.foot a:hover { color: var(--blue); }
.legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Articles ---------- */

.post-head { padding-top: 34px; padding-bottom: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--tint); transition: transform .25s var(--spring); }
.crumb:hover { transform: translateX(-3px); }
.post-head h1 { font-size: clamp(34px, 8vw, 56px); font-weight: 900; letter-spacing: -0.03em; margin: 20px 0 14px; }
.post-head .meta { color: var(--muted); font-size: 15px; font-weight: 600; }
.post-head .intro { font-size: 20px; color: var(--muted); margin-top: 16px; max-width: 680px; }
.prose { padding-bottom: 20px; }
.prose > * { max-width: 720px; }
.prose section { padding: 0; margin-top: 38px; }
.prose h2 { font-size: 28px; font-weight: 900; margin: 40px 0 14px; }
.prose section > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #343947; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 20px; font-size: 15px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: #F6F8FD; font-weight: 800; }
.prose .brand-col, .prose td.highlight { color: var(--blue); font-weight: 800; }
.prose .features { display: grid; gap: 12px; margin: 16px 0 10px; }
@media (min-width: 640px) { .prose .features { grid-template-columns: 1fr 1fr; } }
.prose .feature-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.prose .feature-card h3 { margin-top: 6px; }
.prose .feature-card p { margin: 0; font-size: 15.5px; }
.prose .feature-icon { font-size: 26px; }
.prose .eyebrow { margin-bottom: 18px; }
.prose .standfirst { font-size: 20px; color: var(--ink); }
.prose .notice { background: #FFF6E6; border-radius: 16px; padding: 16px 18px; margin: 0 0 20px; color: #7A4A00; }
.prose .stance { background: var(--tint); border-radius: 18px; padding: 6px 20px 4px; margin: 20px 0; }
.prose .stance h3 { margin-top: 16px; }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); color: var(--ink); }
.prose a { word-break: break-word; }
.tip-grid { display: grid; gap: 12px; }
.tip { background: #fff; border-radius: 18px; padding: 6px 20px 4px; box-shadow: var(--shadow); }
.tip h3 { margin-top: 16px; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes mark { to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(12deg); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 98, 255, .45); } 80%, 100% { box-shadow: 0 0 0 16px rgba(0, 98, 255, 0); } }
@keyframes shake { 20% { transform: translateX(6px); } 40% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.shake { animation: shake .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hl::before, .hl::after { transform: scaleX(1); }
  .pill { transform: none; }
  .page { opacity: 1; }
}

.store { position: relative; }

/* end-state rendering (reduced motion or ?still) */
.still *, .still *::before, .still *::after { transition: none !important; }
.still .reveal { opacity: 1; transform: none; }
.still .hl::before, .still .hl::after { animation: none; transform: scaleX(1); }
.still .squiggle path { stroke-dashoffset: 0; }

/* ---------- Tools ---------- */

.tool { max-width: 720px; }
.tool-head { padding-top: 34px; padding-bottom: 6px; }
.tool-head h1 { font-size: clamp(36px, 9vw, 60px); font-weight: 900; letter-spacing: -0.03em; margin: 18px 0 12px; }
.tool-head p { font-size: 19px; color: var(--muted); max-width: 560px; }
.safe-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--green); }
.safe-note svg { width: 18px; height: 18px; }

.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px;
  min-height: 260px; padding: 30px 20px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow); border: 2.5px dashed #cdd5ea;
  cursor: pointer; transition: transform .35s var(--spring), border-color .25s, background .25s;
}
.drop:hover { border-color: var(--blue); }
.drop.over { transform: scale(1.02); border-color: var(--blue); background: var(--tint); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .doc { width: 78px; height: 96px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 12px 26px rgba(0, 98, 255, .3); transition: transform .5s var(--spring); }
.drop:hover .doc, .drop.over .doc { transform: translateY(-6px) rotate(-6deg); }
.drop .doc svg { width: 36px; height: 36px; }
.drop b { font-size: 21px; font-weight: 800; }
.drop small { color: var(--muted); font-size: 15px; }

.scan { display: none; flex-direction: column; align-items: center; gap: 18px; padding: 40px 0; }
.scan.on { display: flex; }
.scan .paper { position: relative; width: 130px; height: 170px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; padding: 18px 16px; display: grid; gap: 9px; align-content: start; }
.scan .paper i { display: block; height: 7px; border-radius: 4px; background: #E3E6EE; }
.scan .paper i:first-child { height: 11px; width: 70%; background: #2a2d38; }
.scan .beam { position: absolute; left: 0; right: 0; height: 44px; background: linear-gradient(transparent, rgba(0, 98, 255, .35), transparent); animation: beam 1.2s ease-in-out infinite alternate; }
@keyframes beam { from { top: -40px; } to { top: 170px; } }
.scan p { font-weight: 800; font-size: 19px; }

.result { display: none; margin-top: 8px; scroll-margin-top: 84px; }
.result.on { display: block; }
.score-card { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.big-ring { position: relative; width: 108px; height: 108px; flex: none; }
.big-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 9; }
.big-ring .bg { stroke: #EDF0F7; }
.big-ring .fg { stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease), stroke .3s; }
.big-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 900; }
.score-card h2 { font-size: 26px; font-weight: 900; }
.score-card p { color: var(--muted); margin-top: 4px; }

.fixes { display: grid; gap: 10px; margin-top: 18px; }
.fix { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); animation: rise .5s var(--ease) forwards; }
.fix .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; }
.fix.f .dot { background: var(--red); }
.fix.i .dot { background: var(--orange); }
.fix.t .dot { background: var(--blue); }
.fix.g .dot { background: var(--green); }
.fix b { display: block; font-size: 17px; }
.fix span { color: var(--muted); font-size: 15.5px; }
.group-title { font-size: 15px; font-weight: 800; color: var(--muted); margin: 22px 0 -2px; }
@keyframes rise { to { opacity: 1; transform: none; } }

.again { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.paste { width: 100%; min-height: 230px; padding: 18px; border-radius: var(--r); border: 0; box-shadow: var(--shadow); background: #fff; font: 500 16px/1.6 var(--font); color: var(--ink); resize: vertical; outline: none; transition: box-shadow .25s; }
.paste:focus { box-shadow: 0 0 0 3px rgba(0, 98, 255, .25), var(--shadow); }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.check-row .example { font-size: 15px; font-weight: 700; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 8px; }

.verdict { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); color: #fff; }
.verdict.bad { background: linear-gradient(135deg, #FF3B30, #E0245E); }
.verdict.warn { background: linear-gradient(135deg, #FF9500, #F26B1D); }
.verdict.ok { background: linear-gradient(135deg, #1FB85A, #12A08C); }
.verdict .ic { width: 58px; height: 58px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 30px; animation: pop .6s var(--spring); }
.verdict h2 { font-size: 26px; font-weight: 900; }
.verdict p { opacity: .92; margin-top: 2px; }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); } to { transform: none; } }
.marked { margin-top: 16px; padding: 18px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); white-space: pre-wrap; line-height: 1.75; font-size: 15.5px; color: #343947; }
.marked mark { background: rgba(255, 59, 48, .16); box-shadow: inset 0 -2px 0 var(--red); color: inherit; border-radius: 4px; padding: 0 2px; }
.marked mark.w { background: rgba(255, 149, 0, .18); box-shadow: inset 0 -2px 0 var(--orange); }
.share { background: #25D366; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
