/* rewind — styles from the Figma file "Rewind — Landingpage" (node 170:31). */
:root {
  --bg-page: #ffffff;
  --bg-subtle: #f7f7f5;
  --border: #e6e6e3;
  --text-primary: #0d0d0d;
  --text-secondary: #5f5e5b;
  --text-muted: #9b9a97;
  --accent-blue: #2e6fdb;
  --accent-pink: #e03fbf;
  --on-dark: #ffffff;
  --error: #c62828;
  --success: #1f9d55;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  --container: 1040px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 16px/24px Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }

/* Type scale (Figma text styles) */
.title { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.2px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }
.muted { color: var(--text-secondary); }

/* Logo */
.logo { display: inline-flex; gap: 1px; font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.8px; text-decoration: none; color: var(--text-primary); }
.logo span { color: var(--accent-pink); }
.logo-small { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }

/* Buttons ("Rewind / Knop") */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border: 0; border-radius: 8px;
  font: 500 16px/20px Inter, system-ui, sans-serif; color: var(--on-dark);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-blue { background: var(--accent-blue); }
.btn-black { background: var(--text-primary); }
.btn-small { padding: 9px 14px; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn:focus-visible, input:focus-visible, select:focus-visible, .preview:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-weight: 500; line-height: 20px; color: var(--text-secondary); text-decoration: none; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 88px var(--gutter) 56px; }
.hero-illustration { width: 660px; max-width: 100%; height: auto; margin-bottom: 44px; }
.hero h1 { font-size: 68px; line-height: 76px; font-weight: 700; letter-spacing: -2.2px; margin-bottom: 18px; }
.lead { font-size: 20px; line-height: 30px; letter-spacing: -0.1px; color: var(--text-secondary); margin-bottom: 32px; }
.note { font-size: 14px; line-height: 20px; color: var(--text-muted); margin-top: 12px; }

/* "Test your website" browser window */
.test { display: flex; justify-content: center; padding: 8px var(--gutter) 0; scroll-margin-top: 24px; }
.window { width: 100%; max-width: var(--container); background: var(--bg-page); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; gap: 8px; padding: 16px 20px; }
.window-body { display: flex; flex-direction: column; gap: 28px; padding: 40px 72px 64px; }

.scan-form { display: flex; gap: 12px; }
.scan-form input {
  width: 560px; max-width: 100%; height: 52px; padding: 0 18px;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg-page);
  font: 400 20px/30px Inter, system-ui, sans-serif; letter-spacing: -0.1px; color: var(--text-primary);
}
.scan-form input::placeholder { color: var(--text-muted); }
.status { min-height: 24px; margin-top: -16px; color: var(--text-secondary); }
.status:empty { display: none; }
.status.error { color: var(--error); }
.status.loading::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--border); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { display: flex; gap: 48px; align-items: center; padding-top: 12px; }
.result[hidden] { display: none; }
.preview {
  position: relative; flex: 0 0 380px; height: 240px; display: flex; flex-direction: column; gap: 12px;
  padding: 20px 24px 0; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-decoration: none;
}
.sk { display: block; border-radius: 4px; background: var(--border); }
.sk-title { width: 120px; height: 10px; background: var(--text-primary); opacity: 0.85; }
.sk-line { width: 300px; max-width: 100%; height: 22px; }
.sk-line.short { width: 220px; }
.sk-block { width: 332px; max-width: 100%; height: 96px; }
.preview {
  background: var(--bg-subtle);
  border-color: var(--border);
}
.preview-site { width: 100%; height: auto; }
.preview-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-page); color: var(--success);
  font-size: 14px; line-height: 20px; font-weight: 600; transform: rotate(6deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.preview-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--bg-page); font-size: 14px; line-height: 20px; color: var(--accent-blue); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); opacity: 0; transition: opacity 0.15s; }
.result:not(.is-example) .preview:hover .preview-label, .preview:focus-visible .preview-label { opacity: 1; }
.is-example .preview { pointer-events: none; }

.found { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.example-tag { display: none; font-size: 14px; line-height: 20px; color: var(--text-muted); margin-bottom: -16px; }
.is-example .example-tag { display: block; }
.found-domain { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-bottom: -16px; overflow-wrap: anywhere; }
.is-example .found-domain { display: none; }
.figures { display: flex; gap: 40px; flex-wrap: wrap; }
.figure { display: flex; flex-direction: column; gap: 2px; }
.figure strong { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.2px; }
.figure span { color: var(--text-secondary); }
.check { display: flex; align-items: center; gap: 8px; }
.is-example .figures, .is-example .check { opacity: 0.45; }

.options { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; width: 100%; }
.options[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); }
.field select { min-width: 220px; height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg-page); font: 400 16px/24px Inter, system-ui, sans-serif; color: var(--text-primary); }
.consent { display: flex; gap: 10px; align-items: flex-start; max-width: 420px; font-size: 14px; line-height: 20px; color: var(--text-secondary); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--text-primary); flex: none; }

.panel { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; }
.panel[hidden] { display: none; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.panel p { color: var(--text-secondary); }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--border); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--border); }
progress::-webkit-progress-value { background: var(--accent-blue); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent-blue); }
details { width: 100%; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
details[hidden] { display: none; }
summary { cursor: pointer; }
#missing-list { margin: 8px 0 0; padding-left: 18px; max-height: 200px; overflow: auto; word-break: break-all; }

/* Sections */
.section { display: flex; justify-content: center; padding: 140px var(--gutter) 0; }
.container { width: 100%; max-width: var(--container); display: flex; flex-direction: column; gap: 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step p { color: var(--text-secondary); }
.icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 32px; border: 1px solid var(--border); border-radius: 14px; }
.price p:not(.amount) { color: var(--text-secondary); }
.price .btn { margin-top: 16px; }
.price-subtle { background: var(--bg-subtle); }
.price-raised { background: var(--bg-page); box-shadow: var(--shadow); }
.amount { font-size: 68px; line-height: 76px; font-weight: 700; letter-spacing: -2.2px; }

.faq-title { margin-bottom: -16px; }
.qa { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid var(--border); }
.qa p { color: var(--text-secondary); }

.closer { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding: 160px var(--gutter) 120px; }

.footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 40px; border-top: 1px solid var(--border); }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--text-muted); }

/* Test section: make it obvious you can try it here */
.test-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #eaf1fd; color: var(--accent-blue); font-size: 14px; line-height: 20px; font-weight: 500; }
.test-sub { font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.btn-scan { min-width: 150px; }
.scan-form input:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 0 4px rgba(46, 111, 219, 0.12); }
.try { margin-top: -16px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.window { scroll-margin-top: 24px; }
.test.is-highlighted .window { box-shadow: 0 0 0 4px rgba(46, 111, 219, 0.18), var(--shadow); transition: box-shadow 0.3s; }

/* Scan progress bar */
.scan-progress { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 720px; margin-top: -12px; }
.scan-progress-track { position: relative; height: 10px; border-radius: 999px; background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; }
.scan-progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  transition: width 0.4s ease-out;
}
.scan-progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 1.4s linear infinite;
}
.scan-progress.is-done .scan-progress-fill::after { animation: none; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.scan-progress-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
#scan-progress-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .scan-progress-fill { transition: none; }
  .scan-progress-fill::after { animation: none; }
}

/* Restore pop-up */
.modal {
  width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 20px; background: var(--bg-page); color: var(--text-primary);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25); overflow: auto;
}
.modal::backdrop { background: rgba(13, 13, 13, 0.55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-subtle); color: var(--text-secondary); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--border); }
.modal-close[hidden] { display: none; }
.modal-step { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 40px 40px; text-align: center; }
.modal-step[hidden] { display: none; }
.modal-badge { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e6f4ec; margin-bottom: 4px; }
.modal-badge img { width: 32px; height: 32px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--success); }
.modal-title { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -1.2px; }
.modal-domain { font-size: 18px; line-height: 26px; color: var(--text-secondary); overflow-wrap: anywhere; }
.modal-figures { display: flex; justify-content: center; gap: 40px; margin: 12px 0 4px; flex-wrap: wrap; }
.modal-figures .figure strong { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.2px; }
.modal-figures .figure span { color: var(--text-secondary); }
.modal-form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 8px; }
.modal-form .field { align-items: center; }
.preview-link { font-size: 14px; line-height: 20px; color: var(--accent-blue); }
.modal-form .consent { text-align: left; }
.paywall { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 12px; padding: 24px; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border); }
.paywall-price { display: flex; align-items: baseline; gap: 8px; }
.paywall-amount { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.8px; }
.paywall-once { color: var(--text-secondary); }
.btn-big { width: 100%; padding: 18px 24px; font-size: 18px; line-height: 24px; border-radius: 10px; }
.perks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.perks li { display: flex; align-items: center; gap: 8px; }
.test-note { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.test-note[hidden] { display: none; }
.btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; transform: none; }
.checkout-hint { width: 100%; padding: 12px 14px; border-radius: 8px; background: #eaf1fd; color: var(--text-primary); font-size: 14px; line-height: 20px; text-align: left; }
.checkout-hint a { display: inline-block; margin-top: 4px; color: var(--accent-blue); font-weight: 500; }
.license { width: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); text-align: left; }
.license label { font-weight: 600; }
.license-row { display: flex; gap: 8px; }
.license-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg-page); font: 500 15px/20px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-primary);
}
.license-row input:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 0 4px rgba(46, 111, 219, 0.12); }
.license .status { margin-top: 0; }
.license.is-highlighted { animation: nudge 0.6s ease-out; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.modal progress { margin-top: 12px; height: 10px; }
.modal details { text-align: left; }
body.modal-open { overflow: hidden; }

.legal { gap: 16px; }
.legal p { color: var(--text-secondary); max-width: 680px; }
.legal h3 { margin-top: 16px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tablet */
@media (max-width: 960px) {
  .window-body { padding: 32px 32px 40px; }
  .result { flex-direction: column; align-items: stretch; gap: 28px; }
  .preview { flex: none; width: 100%; }
}

/* Phone */
@media (max-width: 640px) {
  .nav, .footer { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav-links { gap: 16px; }
  .hero { padding-top: 48px; }
  .hero-illustration { margin-bottom: 28px; }
  .hero h1 { font-size: 40px; line-height: 46px; letter-spacing: -1.2px; }
  .lead { font-size: 18px; line-height: 26px; margin-bottom: 24px; }
  .title { font-size: 30px; line-height: 36px; letter-spacing: -0.8px; }
  .window-body { padding: 20px 20px 28px; gap: 24px; }
  .scan-form { flex-direction: column; }
  .scan-form input { width: 100%; font-size: 18px; }
  .preview { height: 180px; }
  .figures { gap: 24px; }
  .figure strong { font-size: 30px; line-height: 36px; }
  .section { padding-top: 88px; }
  .steps, .prices { grid-template-columns: 1fr; gap: 28px; }
  .amount { font-size: 52px; line-height: 60px; }
  .closer { padding: 96px var(--gutter) 80px; }
  .footer { flex-direction: column; gap: 12px; }
  .try { margin-top: -12px; }
  .modal-step { padding: 44px 20px 24px; }
  .modal-title { font-size: 30px; line-height: 36px; letter-spacing: -0.8px; }
  .modal-figures { gap: 24px; }
  .modal-figures .figure strong { font-size: 30px; line-height: 36px; }
  .paywall { padding: 20px 16px; }
  .paywall-amount { font-size: 44px; line-height: 48px; }
  .license-row { flex-direction: column; }
  .license-row input { font-size: 13px; }
}
