/* Aamurusko demo – layout follows the Aurael template (Hirael / 21st.dev).
   Hairline bands, numbered sticky rail, morning/night scenes. System fonts, zero third-party requests. */

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 0px;
  --max: 72rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-scene="morning"] {
  color-scheme: light;
  --bg: #F4F2EC;
  --fg: #1C1B18;
  --muted: #5E5A50;
  --border: #D6D1C3;
  --card: rgba(255, 255, 255, .55);
  --primary: #8F6A00;
  --on-primary: #FFFFFF;
}
:root[data-scene="night"] {
  color-scheme: dark;
  --bg: #0D1117;
  --fg: #EFEBDD;
  --muted: #A5A8AF;
  --border: #272C35;
  --card: rgba(20, 26, 36, .5);
  --primary: #E8B923;
  --on-primary: #161100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s, color .5s;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.muted { color: var(--muted); }
.display { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.demo-tag {
  font-style: normal; font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor; padding: .1rem .4rem; opacity: .8;
}
.links { display: none; align-items: center; gap: 1.75rem; font-size: .875rem; }
.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--fg); }
.links .cta { color: var(--on-primary); background: var(--primary); padding: .5rem 1rem; font-weight: 600; }
.links .cta:hover { color: var(--on-primary); filter: brightness(1.08); }

.burger { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; color: var(--fg); cursor: pointer; position: relative; z-index: 60; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.menu.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.menu a { font-size: 1.6rem; font-weight: 600; text-decoration: none; }

@media (min-width: 1024px) {
  .links { display: flex; }
  .burger, .menu { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 680px; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transition: opacity 1.1s ease, transform 1.6s var(--ease);
  will-change: opacity, transform;
}
.scene-night { opacity: 0; transform: scale(1.06); }
.scene-morning { opacity: 1; transform: scale(1); }
[data-scene="night"] .scene-night { opacity: 1; transform: scale(1); }
[data-scene="night"] .scene-morning { opacity: 0; transform: scale(1.06); }
.shade { position: absolute; inset: 0; transition: background .5s; }
.shade-bottom { background: linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.shade-top { height: 11rem; bottom: auto; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 62%, transparent), transparent); }
.shade-vignette { background: radial-gradient(120% 120% at 50% 50%, transparent 35%, var(--bg) 100%); opacity: .35; }

.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(8rem, 24vh, 14rem) 1.25rem 3rem; max-width: 56rem; width: 100%; margin: 0 auto;
}
h1.display { font-size: clamp(2.75rem, 8.6vw, 5.2rem); line-height: 1.02; max-width: 54rem; }

.toggle {
  margin-top: auto; display: inline-flex; gap: 4px; padding: 4px; width: 100%; max-width: 24rem;
  border: 1px solid var(--border); background: var(--card);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.toggle button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .6rem 1.5rem; border: 0; background: transparent; color: var(--fg); font: inherit; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.toggle strong { font-size: 1.125rem; font-weight: 500; line-height: 1.2; }
.toggle small { white-space: nowrap; font-size: .6875rem; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.toggle button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.toggle button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
@media (min-width: 640px) { .toggle { width: auto; } .toggle button { padding: .6rem 2.5rem; } }

.lede { margin-top: 2rem; max-width: 36rem; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; transition: color .5s; }
.fiction { margin-top: 1rem; font-size: .75rem; letter-spacing: .02em; color: var(--muted); }

/* ---------- bands ---------- */
.band { border-top: 1px solid var(--border); padding: 0 clamp(1.25rem, 4vw, 3rem); scroll-margin-top: 4rem; transition: border-color .5s; }
.wrap {
  display: grid; gap: 2.5rem 4rem; max-width: var(--max); margin: 0 auto;
  padding: 4rem 0;
}
@media (min-width: 768px) { .wrap { padding: 6rem 0; } }
@media (min-width: 1024px) { .wrap { grid-template-columns: 14rem 1fr; } .rail { position: sticky; top: 6rem; align-self: start; } }

.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.eyebrow span { font-variant-numeric: tabular-nums; }
.eyebrow i { width: 1.5rem; height: 1px; background: var(--border); }
.eyebrow b { font-weight: 400; }
.rail-note { margin-top: 1.25rem; max-width: 14rem; font-size: .875rem; color: var(--muted); }

.col { min-width: 0; }
.h2 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.12; max-width: 40rem; }
.body { margin-top: 1.5rem; max-width: 36rem; color: var(--muted); font-size: 1.0625rem; }
.note { margin-top: 1.25rem; max-width: 36rem; font-size: .8125rem; color: var(--muted); }

.textlink { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: .875rem; font-weight: 500; text-decoration: none; }
.textlink svg { color: var(--muted); transition: color .2s, transform .2s; }
.textlink:hover svg { color: var(--fg); transform: translate(2px, -2px); }

/* steps */
.steps { margin-top: 3rem; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; border-top: 1px solid var(--border); padding: 1.75rem 0; }
@media (min-width: 640px) { .steps li { grid-template-columns: 4rem 1fr; } }
.steps span { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.125rem; font-weight: 500; }
.steps p { margin-top: .5rem; max-width: 28rem; font-size: .875rem; color: var(--muted); }

/* figures */
.figures { margin-top: 3rem; display: flex; flex-direction: column; gap: 2.5rem; }
.frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
figure:hover .frame img { transform: scale(1.03); }
figcaption { margin-top: .75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline; }
figcaption span { font-weight: 500; }
figcaption small { font-size: .875rem; color: var(--muted); }
.cap { margin-top: .4rem; font-size: .875rem; color: var(--muted); max-width: 36rem; }
.pull { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); font-size: clamp(1.5rem, 3.4vw, 1.95rem); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; max-width: 34rem; }

/* stats */
.stats {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  border: 1px solid var(--border); background: var(--border); overflow: hidden;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--bg); padding: 1.25rem; transition: background-color .5s; }
.stats dt { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: .25rem; font-size: .75rem; color: var(--muted); }

/* rows (services, packages) */
.rows { margin-top: 3rem; }
.band .body + .rows { margin-top: 2rem; }
.rows li { border-top: 1px solid var(--border); }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; text-decoration: none; }
.rows h3 { font-size: 1.0625rem; font-weight: 500; }
@media (min-width: 640px) { .rows h3 { font-size: 1.125rem; } }
.rows p { margin-top: .25rem; font-size: .8125rem; color: var(--muted); max-width: 30rem; }
@media (min-width: 640px) { .rows p { font-size: .875rem; } }
.rows svg { flex: none; color: var(--muted); transition: color .2s, transform .2s; }
.rows a:hover svg { color: var(--fg); transform: translate(2px, -2px); }
.rows a:hover h3 { color: var(--primary); }
.price { flex: none; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows:last-of-type { border-bottom: 0; }

/* faq */
.faq { margin-top: 3rem; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 34rem; color: var(--muted); font-size: .9375rem; }

.button {
  display: inline-block; margin-top: 2rem; padding: .85rem 1.6rem; background: var(--primary); color: var(--on-primary);
  font-weight: 600; text-decoration: none; transition: filter .2s, transform .2s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem; font-size: .8125rem; transition: border-color .5s; }
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* reveal on scroll (only when JS has flagged support) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- products, stories, form ---------- */
.hero-cta { margin-top: 1.25rem; }
.products { margin-top: 3rem; display: grid; gap: 1px; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { background: var(--bg); padding: 1.75rem 1.5rem; transition: background-color .5s; }
.product h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.product > p { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.specs { margin-top: 1.5rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--border); font-size: .8125rem; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; font-weight: 500; }

.stories { margin-top: 3rem; }
.story { border-top: 1px solid var(--border); padding: 2rem 0; }
.story blockquote { margin: 0; }
.story p { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.32; font-weight: 500; letter-spacing: -.015em; max-width: 36rem; text-wrap: balance; }
.story figcaption { margin-top: 1rem; justify-content: flex-start; gap: .25rem 1rem; font-size: .875rem; }
.story figcaption span { color: var(--fg); }

.quote { margin-top: 2.5rem; display: grid; gap: 1.25rem 1.5rem; max-width: 40rem; }
@media (min-width: 640px) { .quote { grid-template-columns: 1fr 1fr; } .quote .wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .8125rem; font-weight: 500; padding: 0; }
.field label span { color: var(--muted); font-weight: 400; }
.field input:not([type=checkbox]), .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--card); border: 1px solid var(--border);
  padding: .75rem .85rem; border-radius: var(--radius); width: 100%; transition: border-color .2s, background-color .5s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #c2410c; }
.check { display: inline-flex; align-items: center; gap: .6rem; margin: .35rem 1.5rem .35rem 0; font-weight: 400 !important; font-size: .9375rem !important; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.quote .button { margin-top: .5rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form-status { margin-top: 1rem; font-size: .9375rem; min-height: 1.4em; }
.foot a { text-underline-offset: 3px; }
