/* Ceoldeck — site styles. Self-hosted fonts, no third-party requests. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0E0D14;
  --ink-2: #16141F;
  --ink-3: #1F1C2B;
  --line: #2C2839;
  --teal: #33E6C8;
  --pink: #FF4FA3;
  --cream: #F4F1EA;
  --muted: #A9A6B3;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
}
.site-header.solid { position: relative; border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand span {
  font-family: var(--wide); font-stretch: 125%; font-weight: 900;
  letter-spacing: 0.12em; font-size: 15px;
}
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px);
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--gutter) 200px;
}
.hero-media, .hero-media > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; }
.hero-media video { object-fit: cover; }
.hero-media video[hidden] { display: none; }
.hero::after {
  /* Vignette keeps the wordmark readable over any visual. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 52% at 50% 46%, rgba(14,13,20,.80) 0%, rgba(14,13,20,.55) 55%, rgba(14,13,20,.15) 100%),
    linear-gradient(to bottom, rgba(14,13,20,.6) 0%, rgba(14,13,20,0) 25%, rgba(14,13,20,0) 70%, var(--ink) 100%);
}
.hero-inner { max-width: 820px; }
.hero .mark { width: clamp(88px, 12vw, 128px); height: auto; margin: 0 auto 28px; }
.wordmark {
  margin: 0;
  font-family: var(--wide); font-stretch: 125%; font-weight: 900;
  font-size: clamp(42px, 9.4vw, 104px);
  letter-spacing: 0.06em; line-height: 1;
  /* Optical centring: the tracking adds space after the final K. */
  padding-left: 0.06em;
}
.strapline {
  margin: 18px 0 0;
  font-weight: 500; font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.08em; color: var(--teal);
}
.hero .sub {
  margin: 22px auto 0; max-width: 560px;
  font-size: clamp(16px, 1.9vw, 19px); color: var(--cream);
}
.cta-row { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--teal); color: var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.store-soon svg { width: 18px; height: 18px; }
.cta-note { font-size: 14px; color: var(--muted); }

.waves {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.waves svg { position: absolute; bottom: 8%; width: 200%; height: 75%; left: 0; }
.waves .w1 { stroke: var(--teal); opacity: .55; animation: drift 38s linear infinite; }
.waves .w2 { stroke: var(--pink); opacity: .45; animation: drift 52s linear infinite reverse; }
.waves .w3 { stroke: var(--teal); opacity: .25; animation: drift 66s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,13,20,.72); color: var(--cream);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 500 14px var(--body); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.motion-toggle:hover { border-color: var(--teal); }
.motion-toggle svg { width: 14px; height: 14px; }

body.paused .waves path { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .waves path { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow {
  font: 600 13px var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink); margin: 0 0 12px;
}
h2 {
  font-family: var(--wide); font-stretch: 112%; font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: .01em;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--wide); font-stretch: 108%; font-weight: 700;
  font-size: 21px; line-height: 1.25; margin: 0 0 8px;
}
.lede { color: var(--muted); max-width: 620px; margin: 0; }

/* Three steps */
.steps {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.step {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.step-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink-3);
}
.step-media .art { position: absolute; inset: 0; }
.step-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-media video[hidden] { display: none; }
.step-num {
  position: absolute; left: 16px; bottom: 10px;
  font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: 54px; line-height: 1;
  color: var(--cream); text-shadow: 0 2px 18px rgba(14,13,20,.6);
}
.step-body { padding: 20px 22px 24px; }
.step-body p { margin: 0; color: var(--muted); }
.step-arrow { color: var(--teal); }

/* Step art: static gradients in the brand colours, used until real clips are added. */
.art-1 { background:
  radial-gradient(circle at 70% 40%, rgba(51,230,200,.55), transparent 45%),
  radial-gradient(circle at 25% 75%, rgba(255,79,163,.35), transparent 50%), var(--ink-3); }
.art-2 { background:
  conic-gradient(from 200deg at 60% 55%, rgba(255,79,163,.6), rgba(51,230,200,.5), rgba(244,241,234,.15), rgba(255,79,163,.6)); filter: saturate(1.1); }
.art-2::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 60% 55%, transparent 0 18%, rgba(22,20,31,.85) 60%); }
.art-3 { background:
  repeating-linear-gradient(100deg, rgba(51,230,200,.0) 0 22px, rgba(51,230,200,.22) 22px 24px),
  radial-gradient(ellipse at 50% 120%, rgba(255,79,163,.55), transparent 60%), var(--ink-3); }

/* Feature tiles */
.tiles {
  display: grid; gap: 20px; margin-top: 44px;
  grid-template-columns: repeat(2, 1fr);
}
.tile {
  position: relative; padding: 28px 28px 30px; border-radius: 18px;
  background: var(--ink-2); border: 1px solid var(--line);
}
.tile::before {
  content: ""; position: absolute; left: 28px; top: 0; width: 44px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--teal);
}
.tile:nth-child(2)::before, .tile:nth-child(3)::before { background: var(--pink); }
.tile p { margin: 0; color: var(--muted); }

.privacy-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.privacy-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: baseline; }
.privacy-band li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--teal); transform: translateY(1px);
}

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--muted);
  font-size: 15px;
}
.notice strong { color: var(--cream); font-weight: 600; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--pink); margin-top: 2px; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-head h1 {
  font-family: var(--wide); font-stretch: 125%; font-weight: 900;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: .03em; margin: 0 0 14px;
}
.page-head p { color: var(--muted); margin: 0; max-width: 640px; font-size: 18px; }
.page-head .mini-waves { position: absolute; right: -40px; bottom: 0; width: 520px; opacity: .5; pointer-events: none; }

.prose { padding-bottom: clamp(64px, 8vw, 104px); }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 56px; }
.prose h3 { margin-top: 36px; font-size: 20px; }
.prose p, .prose li { color: #DCD8E2; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose code {
  font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  word-break: break-word;
}
.meta { color: var(--muted); font-size: 15px; }

.summary-card {
  margin: 28px 0 8px; padding: 24px 26px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line);
}
.summary-card h2 { margin-top: 0; font-size: 22px; }
.summary-card ul { margin-bottom: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cream); text-decoration: none; font-size: 14px;
}
.toc a:hover { border-color: var(--teal); }

.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 26px; border-radius: 18px; margin: 8px 0 24px;
  background: linear-gradient(135deg, rgba(51,230,200,.12), rgba(255,79,163,.08)), var(--ink-2);
  border: 1px solid var(--line);
}
.contact-card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal); color: var(--ink);
  display: grid; place-items: center;
}
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h2 { margin: 0 0 4px; font-size: 22px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a.email { font-weight: 600; font-size: 19px; }

.howto { counter-reset: s; list-style: none; padding: 0; }
.howto li { counter-increment: s; position: relative; padding-left: 46px; margin: 14px 0; }
.howto li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--teal);
  font: 600 14px var(--body);
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer .brand span { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .privacy-band .wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand span { display: none; }
  .hero { padding-top: 96px; padding-bottom: 170px; }
  .motion-toggle { bottom: 14px; }
  .contact-card { grid-template-columns: 1fr; }
  .page-head .mini-waves { display: none; }
}
