/* Hookly landing and public pages — Rose theme (same tokens as the app) */
:root {
  --bg: #FBF4F3; --surface: #FFFFFF; --surface2: #F5EAE8;
  --border: #EEDFDC;
  --text: #2A1416; --muted: #7A5C5F;
  --accent: #D6336C; --accentHover: #BC2459; --accentSoft: #FCE4EC; --onAccent: #FFFFFF;
  --ph1: #F6ECEA; --ph2: #F0E3E0;
  --dark-muted: #C9AEB1; --dark-line: #4A2E31;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --stripes: repeating-linear-gradient(135deg, var(--ph1) 0 8px, var(--ph2) 8px 16px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
input, button { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accentHover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
section[id] { scroll-margin-top: 64px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.overline { font: 12px var(--mono); letter-spacing: .08em; color: var(--muted); }
.h2 { margin: 0; font: 700 clamp(30px, 3.6vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 0; font-size: 16px; color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 720px; }
.btn { display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background .15s; }
.btn:hover { text-decoration: none; }
.btn.accent { background: var(--accent); color: var(--onAccent); }
.btn.accent:hover { background: var(--accentHover); color: var(--onAccent); }
.btn.dark { background: var(--text); color: #FFFFFF; }
.btn.dark:hover { background: #3D2124; color: #FFFFFF; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface2); color: var(--text); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; font: 10px var(--mono); letter-spacing: .06em; color: #FFFFFF; background: rgba(42, 20, 22, .82); }
.badge.accent { background: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; border-radius: 8px; background: var(--text); color: #FFFFFF; }
.skip:focus { left: 8px; color: #FFFFFF; }

/* --- header ----------------------------------------------------------------------------------- */

.top { position: sticky; top: 0; z-index: 5; background: rgba(251, 244, 243, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); text-decoration: none; }
.logo img { display: block; flex-shrink: 0; }
.logo-word { font: 700 20px var(--display); letter-spacing: -0.03em; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { color: var(--muted); font-size: 14px; font-weight: 600; }
.top nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.top nav .nav-login { color: var(--text); }
.top nav .btn { height: 36px; padding: 0 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .top nav .nav-link { display: none; } }
@media (max-width: 380px) { .top nav { gap: 14px; } .top nav .btn { padding: 0 12px; } }

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

.hero { padding-top: 72px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font: 700 clamp(40px, 5.6vw, 68px)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.capture { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.capture input { flex: 1; min-width: 220px; height: 46px; padding: 0 14px; border: none; border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; outline: none; }
.capture input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent); }
.capture .btn { height: 46px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 480px) { .capture input, .capture .btn { flex: 1 1 100%; } }
.hint { font: 12px var(--mono); color: var(--muted); }

.example { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px rgba(42, 20, 22, .08); }
.example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.example-head .overline { font-size: 11px; }
.seg { display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface2); }
.seg button { height: 28px; padding: 0 12px; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); transition: background .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(42, 20, 22, .12); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 8px; }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shot { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--stripes); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.remix { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot.remix picture { opacity: 0; transition: opacity .35s ease; }
.shot.remix picture.on { opacity: 1; }
.compare .arrow { text-align: center; font-size: 20px; color: var(--accent); }
.caption { font-size: 12px; line-height: 1.4; color: var(--muted); }
.caption.after { color: var(--text); font-weight: 600; }
@media (max-width: 480px) {
  .example { padding: 14px; }
  .compare { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 6px; }
  .compare .arrow { font-size: 15px; }
}

/* --- strip ------------------------------------------------------------------------------------ */

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: center; align-items: center; font: 12px var(--mono); letter-spacing: .06em; color: var(--muted); }

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

.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }

/* --- video demo ------------------------------------------------------------------------------- */

.demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: center; }
.demo .head { gap: 16px; }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accentSoft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.demo .btn.ghost { align-self: flex-start; height: 38px; padding: 0 16px; margin-top: 6px; font-size: 13px; }
.reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; width: 100%; justify-self: center; }
.reel figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.clip { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--surface2); box-shadow: 0 24px 60px rgba(42, 20, 22, .14); }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip.remix { outline: 2px solid var(--accent); outline-offset: 3px; }
#demo > .fine { align-self: center; text-align: center; }
#demo + #how { padding-top: 32px; }

/* --- how it works ----------------------------------------------------------------------------- */

.step { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.step .n { font: 12px var(--mono); color: var(--accent); }
.step h3 { margin: 0 0 6px; font: 700 20px var(--display); letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.step-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface2); }
.step-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.step-media.import { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; padding: 14px; }
.step-media.import img { border-radius: 8px; object-position: 50% 25%; }
.import-meta { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.chip { align-self: flex-start; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.ok { background: var(--accentSoft); border-color: transparent; color: var(--accentHover); white-space: normal; }
.shots { display: grid; grid-template-columns: 3fr 2fr 4fr 2fr; gap: 3px; }
.shots span { height: 18px; border-radius: 3px; background: var(--accent); opacity: .3; }
.shots span:nth-child(odd) { opacity: .55; }
.step-media.swaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.swaps div { position: relative; border-radius: 8px; overflow: hidden; }
.swaps span { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 5px; background: rgba(42, 20, 22, .82); color: #FFFFFF; font: 10px var(--mono); }
.step-media.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 14px; }
.step-media.grid img { border-radius: 8px; object-position: 50% 30%; }

/* --- what you can change ---------------------------------------------------------------------- */

.dark { background: var(--text); color: var(--bg); }
.swap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
@media (max-width: 640px) { .swap { padding-top: 64px; padding-bottom: 64px; } }
.swap-copy { display: flex; flex-direction: column; gap: 14px; }
.swap .overline { color: var(--dark-muted); }
.swap-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--dark-muted); max-width: 460px; text-wrap: pretty; }
.swap-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--dark-line); }
@media (max-width: 480px) { .swap-row { grid-template-columns: 1fr; gap: 6px; } }
.swap-row strong { font: 700 20px var(--display); }
.swap-row span { font-size: 15px; line-height: 1.55; color: var(--dark-muted); text-wrap: pretty; }

/* --- pricing ---------------------------------------------------------------------------------- */

.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 16px; border: 1.5px solid var(--border); }
.plan.popular { background: var(--surface); border-color: var(--accent); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font: 700 20px var(--display); }
.plan-badge { padding: 4px 8px; border-radius: 6px; background: var(--accent); color: #FFFFFF; font: 10px var(--mono); letter-spacing: .04em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font: 700 44px var(--display); letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-credits { font: 13px var(--mono); }
.plan-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan .btn { margin-top: auto; height: 44px; font-size: 14px; }

/* --- FAQ -------------------------------------------------------------------------------------- */

.faq-wrap { padding-top: 0; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font: 400 24px/1 var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --- CTA + footer ----------------------------------------------------------------------------- */

.cta-wrap { padding-bottom: 96px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 24px; text-align: center; background: var(--accentSoft); border-radius: 24px; }
.cta img { display: block; border-radius: 14px; box-shadow: 0 12px 30px rgba(214, 51, 108, .3); }
.cta h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -0.03em; max-width: 640px; text-wrap: balance; }
.cta .btn { height: 48px; padding: 0 24px; font-size: 15px; }

footer { border-top: 1px solid var(--border); }
footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-brand .logo-word { font-size: 17px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* --- legal and error pages -------------------------------------------------------------------- */

.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { margin: 8px 0 6px; font: 700 clamp(32px, 4vw, 44px)/1.1 var(--display); letter-spacing: -0.03em; }
.legal h2 { margin: 40px 0 10px; font: 700 21px/1.3 var(--display); letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font: 12px var(--mono); }
.legal .scroll { overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.guide .intro { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.guide code { font: 13px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface2); overflow-wrap: anywhere; }
.copybox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; padding: 10px 10px 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.copybox code { flex: 1; min-width: 0; padding: 0; background: none; font-size: 14px; }
.copybox .copylabel { width: 100%; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.copybox .btn { height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.guide .steps { margin: 0 0 12px; padding-left: 22px; }
.guide .steps li { margin-bottom: 10px; padding-left: 4px; }
.guide .note { padding: 12px 14px; border-radius: 10px; background: var(--accentSoft); font-size: 14px; }
.guide .asks { list-style: none; padding: 0; display: grid; gap: 8px; }
.guide .asks li { margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-top: 64px; padding-bottom: 96px; }
.notfound h1 { margin: 0; font: 700 clamp(36px, 5vw, 56px)/1.05 var(--display); letter-spacing: -0.03em; }
.notfound p { margin: 0; color: var(--muted); }
.notfound .btn { height: 44px; padding: 0 20px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
