/* helpdear.com. Type styles and spacing follow one scale; motion uses one curve. */
:root {
    --accent: #0891b2;
    --accent-strong: #0e7490;
    --accent-soft: #ecfeff;
    --ink: #0b0f14;
    --muted: #5b6472;
    --faint: #8b93a1;
    --line: #e6e9ee;
    --bg: #ffffff;
    --raised: #f6f8f9;
    --card: #ffffff;
    --on-accent: #ffffff;
    --hero-from: #000000;
    --hero-to: #666666;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #22d3ee;
        --accent-strong: #67e8f9;
        --accent-soft: #0b2a31;
        --ink: #f2f2f2;
        --muted: #a3a3a3;
        --faint: #737373;
        --line: #313131;
        --bg: #181818;
        --raised: #1f1f1f;
        --card: #1f1f1f;
        --on-accent: #000000;
        --hero-from: #ffffff;
        --hero-to: #9b9b9b;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }
@media (max-width: 760px) {
    .heading-1 { font-size: 36px; line-height: 40px; }
    .heading-2 { font-size: 30px; line-height: 36px; }
    .heading-3 { font-size: 30px; line-height: 36px; }
    .heading-4 { font-size: 24px; line-height: 32px; }
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform 300ms var(--ease), background-color 300ms var(--ease); }
.button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button-lg { padding: 12px 24px; font-size: 18px; line-height: 28px; }
.button-sm { font-size: 14px; line-height: 20px; }
.button-secondary { background: var(--raised); color: var(--ink); }
.button-secondary:hover { background: var(--line); }
.link-button { display: inline-flex; align-items: center; padding: 12px 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 999px; transition: background-color 300ms var(--ease); }
.link-button:hover { background: var(--raised); }

/* Navigation: a floating bar sized to its content */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 8px 32px rgb(0 0 0 / 0.06); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; margin-right: 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--raised); }
.menu { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 500ms var(--ease); }
.menu span:first-child { top: 16px; }
.menu span:last-child { top: 22px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 760px) {
    .nav { width: 100%; justify-content: space-between; }
    .menu { display: block; }
    .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px; padding: 96px 24px; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease); }
    .nav-links a { font-size: 30px; line-height: 36px; font-weight: 600; color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
    .nav-links.open { opacity: 1; pointer-events: auto; }
    .nav-links.open a { opacity: 1; transform: none; }
    .nav-links.open a:nth-child(2) { transition-delay: 60ms; }
    .nav-links.open a:nth-child(3) { transition-delay: 120ms; }
    .nav-links.open a:nth-child(4) { transition-delay: 180ms; }
    .brand { margin-right: auto; }
}

/* Hero */
.hero { padding: 160px 0 64px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent-strong); margin-bottom: 24px; }
.hero-title { max-width: 680px; margin: 0 auto; background: linear-gradient(90deg, var(--hero-from), var(--hero-to)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.hero-sub { max-width: 680px; margin: 24px auto 0; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 0; margin: 32px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg, .checks svg { color: var(--accent); }
.shot { margin-top: 64px; }
.shot img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 32px 80px rgb(0 0 0 / 0.12); }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; display: grid; gap: 12px; }
.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--raised); border-radius: 16px; padding: 24px; display: grid; align-content: start; gap: 8px; transition: transform 500ms var(--ease); }
.card:hover { transform: translateY(-2px); }
/* Illustrated badges: a soft tinted tile holding a colored illustration that lifts on hover */
.art-badge { display: inline-flex; width: 76px; height: 76px; border-radius: 22px; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 26%, var(--raised)), color-mix(in oklab, var(--accent) 8%, var(--raised)) 70%); margin-bottom: 14px; }
.art-badge .art { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.18)); transition: transform 500ms var(--ease); }
.card:hover .art-badge .art { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.step-art { display: flex; align-items: flex-end; gap: 0; margin-bottom: 4px; }
.step-art .step { margin: 0 0 0 -14px; position: relative; box-shadow: 0 0 0 4px var(--raised); }
@media (prefers-reduced-motion: reduce) { .card:hover .art-badge .art { transform: none; } }
.icon-badge { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 24px; margin-bottom: 8px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Tagline: words light up one at a time as they scroll into view */
.tagline .heading-2 { max-width: 760px; margin: 0 auto; text-align: center; }
.reveal-words .word { color: color-mix(in oklab, var(--ink) 30%, transparent); transition: color 600ms var(--ease); }
.reveal-words .word.on { color: var(--ink); }

/* Feature rows */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-bottom: 96px; }
.split:last-child { margin-bottom: 0; }
.split > div { display: grid; gap: 16px; align-content: start; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse > div { order: 2; }
.frame { border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgb(0 0 0 / 0.1); }
.frame-widget { max-width: 360px; justify-self: center; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li svg { margin-top: 2px; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; } .split.reverse > div { order: 0; } }

/* Steps */
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.step { display: inline-flex; width: 32px; height: 32px; border-radius: 999px; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing: the free plan leads; paid keys are a quiet row underneath */
.plan-free { background: var(--accent-soft); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: center; margin-bottom: 32px; }
.plan-free-head { display: grid; gap: 12px; justify-items: start; }
.plan-free-head .button { margin-top: 12px; }
.checks-2 { display: block; columns: 2; column-gap: 32px; }
.checks-2 li { break-inside: avoid; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.upgrades { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.upgrades > .title-3 { margin-bottom: 8px; }
.upgrade-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--raised); border-radius: 16px; padding: 16px 24px; }
.upgrade-row h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.upgrade-row .button { flex-shrink: 0; }
.upgrades > .caption-2 { margin-top: 8px; text-align: center; }
@media (max-width: 860px) { .plan-free { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; } }
@media (max-width: 560px) { .checks-2 { columns: 1; } .upgrade-row { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* FAQ */
.faq { max-width: 760px; display: grid; gap: 8px; }
.faq h2 { margin-bottom: 24px; text-align: center; }
.faq details { background: var(--raised); border-radius: 16px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 16px; line-height: 24px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 24px; }

/* Final call to action */
.final-card { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 64px; padding-bottom: 64px; background: var(--raised); border-radius: 32px; }
.final-card .button { margin-top: 8px; }

.footer { padding: 48px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-right: auto; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Sections rise into place once */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transform: none; transition: opacity 300ms linear; }
    .reveal-words .word { color: var(--ink); transition: none; }
    * { transition-duration: 0ms !important; }
}

/* Simple pages: privacy, 404 */
.page { max-width: 720px; margin: 0 auto; padding: 160px 24px 96px; }
.page h1 { margin-bottom: 16px; }
.page h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.upgrade-row .button-secondary { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.upgrade-row .button-secondary:hover { background: var(--bg); box-shadow: 0 0 0 1px var(--muted); }
@media (max-width: 760px) { .hero-title br { display: none; } }
.button-disabled, .button-disabled:hover { background: var(--line); color: var(--muted); cursor: default; transform: none; }
