/* kaamos product page.
   Layout: a polar-night band (hero + the sun-year chart, the product's whole idea in one picture) with a thin
   orange horizon line under it, then calm sections on snow-white paper; one 68rem column, text kept near 62ch. */
:root {
  --paper: #f3f5f8; --panel: #ffffff; --ink: #161c27; --muted: #576173; --rule: #d6dbe3;
  --night: #111a2b; --night-2: #1a2539; --night-ink: #eef1f6; --night-muted: #a3aec0;
  --horizon: #e0691f; --horizon-ink: #ffffff; --sun: #f3ad55; --twilight: #3c3f73; --plate: #f4f4f2;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e131c; --panel: #161d29; --ink: #e6eaf0; --muted: #98a3b4; --rule: #273041;
    --night: #0a101b; --night-2: #121a29; --horizon: #f07a32; --sun: #e9a04b; --twilight: #34376a; --plate: #dfe1e0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e131c; --panel: #161d29; --ink: #e6eaf0; --muted: #98a3b4; --rule: #273041;
  --night: #0a101b; --night-2: #121a29; --horizon: #f07a32; --sun: #e9a04b; --twilight: #34376a; --plate: #dfe1e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--horizon); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }
.kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--horizon); }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--horizon);
  color: var(--horizon-ink); font: 600 16px var(--sans); text-decoration: none; border: 1.5px solid var(--horizon); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--night-ink); border-color: color-mix(in srgb, var(--night-ink) 40%, transparent); }
.btn.ghost:hover { border-color: var(--night-ink); filter: none; }

/* sticky bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(8px); color: var(--night-ink); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.mark { display: flex; align-items: baseline; gap: 8px; font: 500 21px var(--mono); letter-spacing: .02em; }
.mark a { text-decoration: none; }
.mark .crumb { font: 500 14px var(--sans); letter-spacing: 0; color: var(--night-muted); }
.mark .crumb:hover { color: var(--night-ink); }
.crumb-sep { font-size: 14px; color: var(--night-muted); }
.bar-nav { display: flex; align-items: center; gap: 4px 18px; font-size: 15px; }
.bar-nav a { text-decoration: none; color: var(--night-muted); }
.bar-nav a:hover { color: var(--night-ink); }
.bar-nav .bar-cta { color: var(--horizon-ink); background: var(--horizon); padding: 6px 14px; border-radius: 999px; font-weight: 600; }

/* the night band */
.night { background: radial-gradient(120% 70% at 80% 100%, var(--night-2), var(--night) 70%); color: var(--night-ink);
  border-bottom: 3px solid var(--horizon); padding-bottom: 48px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
.hero-lede { font-size: 18px; color: var(--night-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-shot { margin: 0; background: var(--plate); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.18); }

.year { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.year-head { display: flex; flex-direction: column; gap: 10px; }
.year-head p { color: var(--night-muted); }
.places { display: flex; flex-wrap: wrap; gap: 8px; }
.place { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--night-ink) 28%, transparent);
  background: transparent; color: var(--night-muted); font: 500 14.5px var(--sans); cursor: pointer; }
.place:hover { color: var(--night-ink); }
.place[aria-pressed="true"] { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.chart { display: flex; flex-direction: column; gap: 8px; }
#sunyear { width: 100%; height: clamp(220px, 34vw, 340px); display: block; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 400 12.5px var(--mono); color: var(--night-muted); }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-left: 6px; }
.lg.day { background: var(--sun); margin-left: 0; } .lg.nite { background: var(--twilight); } .lg.now { width: 2px; height: 12px; background: var(--night-ink); }
.readout { font: 500 16px var(--sans); color: var(--night-ink); font-variant-numeric: tabular-nums; }
.fine { font: 400 12.5px var(--mono); color: var(--night-muted); }

/* sections on paper */
main { display: flex; flex-direction: column; gap: 88px; padding-block: 72px 88px; }
main section { display: flex; flex-direction: column; gap: 28px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: "Step " counter(step); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.steps p, .feat p { color: var(--muted); font-size: 15.5px; }

.feats { display: grid !important; grid-template-columns: 1.25fr .75fr; gap: 28px 48px !important; align-items: start; }
.feats h2 { grid-column: 1 / -1; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.feat { display: flex; flex-direction: column; gap: 6px; }
.wall-shot { margin: 0; background: var(--plate); border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; }
.wall-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }

.spec-list { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.spec-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec-list dt { font: 500 12.5px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 0; font-variant-numeric: tabular-nums; }

.order-card { background: var(--night); color: var(--night-ink); border-radius: 22px; padding: clamp(28px, 5vw, 52px);
  display: flex; flex-direction: column; gap: 14px; border-bottom: 3px solid var(--horizon); }
.order-card p:not(.kicker) { color: var(--night-muted); font-size: 17px; }
.order-card h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -.025em; }
.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 8px; }
.order-mail { font: 500 15px var(--mono); color: var(--night-ink); user-select: all; }

.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.foot a { color: var(--muted); }

@media (max-width: 52rem) {
  .hero, .feats { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .wall-shot { aspect-ratio: 4 / 3; }
}
@media (max-width: 34rem) {
  .bar-nav a:not(.bar-cta) { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  main { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
