/* PureSteps website: the app's night-blue look for every page (landing, privacy, terms, support, in EN and NL). */

:root {
  --night-top: #16235e;
  --night-mid: #0a1030;
  --night-deep: #04060f;
  --accent: #3fa2ff;
  --accent-soft: #8fe3ff;
  --accent-deep: #1466f0;
  --glow: #2f6bff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(10, 16, 48, 0.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: 1rem;
  --max: 72rem;
  --measure: 42.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night-deep); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--night-deep) linear-gradient(180deg, var(--night-top) 0, var(--night-mid) 640px, var(--night-deep) 1600px) no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--accent-deep); color: #fff; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(63, 162, 255, 0.4); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand__icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-strong); }
.brand__name { font-size: 1.125rem; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; align-items: center; min-width: 0; }
.nav a { white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.45rem 0.7rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--surface); }
.lang { display: flex; flex: none; gap: 0.15rem; padding: 0.15rem; border: 1px solid var(--line); border-radius: 999px; }
.lang a { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--surface-2); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; }
.header-inner--landing .lang { margin-left: 0.25rem; }
.header-inner--landing .btn { margin-left: 0.5rem; }
@media (max-width: 640px) {
  /* Document pages: keep the three links and the language switch on one line next to the icon. */
  .header-inner:not(.header-inner--landing) .brand__name { display: none; }
  .header-inner:not(.header-inner--landing) .nav a { padding: 0.4rem 0.5rem; font-size: 0.9rem; }
  .header-inner { gap: 0.5rem; }
}
@media (max-width: 899px) {
  .header-inner--landing .nav--primary { display: none; }
  .header-inner--landing .nav--primary.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 0.5rem);
    padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-md);
    background: #0d1540; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .header-inner--landing .nav--primary a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .header-inner--landing .nav-toggle { display: inline-block; }
  .header-inner--landing .lang { margin-left: 0; }
  .header-inner--landing .btn--header { display: none; }
}

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary { color: #fff; background: linear-gradient(180deg, #1f75e8, var(--accent-deep)); box-shadow: 0 12px 30px -12px rgba(47, 107, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(47, 107, 255, 1); color: #fff; }
.btn--ghost { color: #fff; background: var(--surface); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: #fff; }
.btn--header { padding: 0.55rem 1rem; font-size: 0.9rem; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.store__badge { height: 56px; width: auto; border-radius: 10px; transition: transform 0.25s var(--ease); }
.store__badge:hover { transform: translateY(-1px); }
.store__note { margin: 0; font-size: 0.9rem; color: var(--faint); }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tight { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 60%, rgba(47, 107, 255, 0.28), transparent 70%);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; position: relative; }
.hero__text { max-width: 36rem; }
.hero__text h1 span { color: var(--accent-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 1.75rem 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.chips svg { width: 14px; height: 14px; color: var(--accent-soft); flex: none; }
.hero__visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero { padding-top: clamp(3rem, 7vw, 6rem); }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero__visual { justify-content: flex-end; }
}

/* Phone frame around raw screenshots (1320 x 2868) */
.device {
  position: relative; width: min(100%, 300px); aspect-ratio: 1320 / 2868; margin: 0;
  padding: 10px; border-radius: 54px; background: #0b0f1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 3px #1a2040, 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 120px -20px rgba(47, 107, 255, 0.55);
}
.device img { width: 100%; height: 100%; border-radius: 44px; object-fit: cover; }
.device::after { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.device--lg { width: min(100%, 340px); }
.device--sm { width: min(100%, 260px); border-radius: 46px; padding: 8px; }
.device--sm img { border-radius: 38px; }
.device--sm::after { top: 16px; height: 22px; }
.hero .device { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Cards */
.card {
  position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card h3 { margin-top: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(180deg, rgba(63, 162, 255, 0.3), rgba(20, 102, 240, 0.3)); color: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(143, 227, 255, 0.25); }
.icon svg { width: 22px; height: 22px; }

/* Feature rows */
.feature { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__visual { display: flex; justify-content: center; }
.feature__text { max-width: 32rem; }
.feature__text ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.feature__text li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--muted); }
.feature__text li svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--accent-soft); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature:nth-child(even) .feature__visual { order: 2; }
  .feature:nth-child(even) .feature__text { order: 1; }
}

/* Friends */
.friends { border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, rgba(63, 162, 255, 0.16), rgba(20, 102, 240, 0.06)); border: 1px solid rgba(143, 227, 255, 0.25); display: grid; gap: 2rem; align-items: center; }
.friends ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.friends li { display: flex; gap: 0.6rem; color: var(--muted); }
.friends li svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--accent-soft); }
.friends__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--faint); }
@media (min-width: 820px) { .friends { grid-template-columns: 1.1fr 0.9fr; } }

/* Pricing */
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan--pro { background: linear-gradient(180deg, rgba(63, 162, 255, 0.18), rgba(20, 102, 240, 0.08)); border-color: rgba(143, 227, 255, 0.4); box-shadow: 0 30px 80px -40px rgba(47, 107, 255, 0.9); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.25rem; }
.plan__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--accent-deep); color: #fff; }
.plan__price { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0.5rem 0 0.25rem; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__alt { color: var(--muted); margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--accent-soft); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.pricing__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--faint); }

/* FAQ */
.faq { max-width: 48rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-soft); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.25rem; max-width: 42rem; }
.faq .path { white-space: nowrap; }

/* Final call to action */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 8vw, 5rem) 1.5rem; border-radius: var(--r-xl); border: 1px solid rgba(143, 227, 255, 0.3); background: radial-gradient(80% 120% at 50% 120%, rgba(47, 107, 255, 0.45), rgba(10, 16, 48, 0.2)); }
.cta .store { align-items: center; margin-top: 1.5rem; }
.cta h2 { max-width: 20ch; margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin: 0.75rem 0 0; }
.footer-title { margin: 0 0 0.5rem; font-weight: 700; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-links a, .footer-contact a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.site-footer .legal p { margin: 0; }

/* Document pages (privacy, terms, support) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.page-head .meta { color: var(--faint); margin: 0; }
.page-head .meta time { color: var(--muted); }
.doc { padding-bottom: 4rem; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--muted); }
.prose strong, .prose b { color: #fff; }
.prose a { color: var(--accent-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; }
.callout { padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin: 1.5rem 0; }
.callout h2, .callout h3 { margin-top: 0; }
.callout ul { margin-bottom: 0; }
.toc { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 0.75rem 0 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; color: #fff; }
.path > * { padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--surface-2); font-size: 0.92em; }
.prose details { border-top: 1px solid var(--line); }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; color: #fff; }
.prose details > :not(summary) { margin-left: 0; }
.prose kbd { font-family: inherit; padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--surface-2); color: #fff; }

/* Netlify's free plan injects a script after </html> that puts a "Powered by Netlify" badge in an iframe bottom-right.
   The iframe always has this id (Netlify's hud script, variant "public"), so one rule hides it. The script itself
   still loads from app.netlify.com; the privacy policy names that request. */
#nl-badge-frame { display: none !important; }

/* Reveal on scroll: without JavaScript everything is simply visible. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .device { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .store__badge { transition: none; }
}
