[hidden] { display: none !important; }
/* Yarn website. Coral → pink accent on calm neutrals, matching the apps (Brand.swift). */
:root {
  --bg: #ffffff; --surface: #f6f6f8; --text: #16171c; --dim: #5d616c; --line: #e6e7eb;
  --coral: #ff7a59; --pink: #ff4d8d; --accent: #f0545a;
  --grad: linear-gradient(135deg, var(--coral), var(--pink));
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0f13; --surface: #17181e; --text: #f5f5f7; --dim: #9ba0aa; --line: #2a2d35; --accent: #ff6a6a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px var(--pink); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero .icon { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 18px 40px -16px var(--pink); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--dim); max-width: 620px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .small { margin-top: 16px; font-size: 14px; color: var(--dim); }

/* Before/after demo */
.demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 8px auto 0; max-width: 900px; }
.demo .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: left; }
.demo .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.demo .said { color: var(--dim); font-style: italic; }
.demo .arrow { font-size: 28px; color: var(--accent); }
@media (max-width: 720px) { .demo { grid-template-columns: 1fr; } .demo .arrow { transform: rotate(90deg); justify-self: center; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin: 0 0 12px; text-align: center; }
.lead { text-align: center; color: var(--dim); max-width: 620px; margin: 0 auto 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section:not(.alt) .feature { background: var(--surface); }
.feature .glyph { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--dim); font-size: 15.5px; }

/* Platforms */
.platform { text-align: center; }
.platform .os { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.platform h3 { font-size: 22px; margin: 6px 0 8px; }
.platform p { min-height: 3.2em; }
.platform .btn { margin-top: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--accent); }

/* Pricing */
.price { max-width: 460px; margin: 0 auto; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px; }
.price .amount { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.price .amount small { font-size: 17px; font-weight: 500; color: var(--dim); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.price li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.price li:last-child { border-bottom: 0; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Docs pages */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc h2 { text-align: left; font-size: 21px; margin: 36px 0 10px; }
.doc .dim { color: var(--dim); font-size: 15px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc td:first-child { width: 55%; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
code, kbd { font: 14.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }
