/* breathe-room — S8 living cover
   Palette: mist #F6F8F7 · paper #FFFFFF · slate #39454B · seafoam #8FC1B5
   Text on mist: slate #39454B ≈ 9.0:1 · deep seafoam #2E6355 ≈ 5.4:1
   The living layer: two very large soft seafoam blobs + one hairline ring,
   all breathing on a 14–19 s inhale/exhale cycle. No JS. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lora-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/public-sans-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --mist: #F6F8F7;
  --paper: #FFFFFF;
  --slate: #39454B;
  --slate-soft: #5C6B72;
  --seafoam: #8FC1B5;
  --seafoam-deep: #2E6355;
  --line: rgba(57, 69, 75, 0.16);
  --display: "Lora", Georgia, serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --shell: 60rem;
  --gutter: 1.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--slate);
  background: var(--mist);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--seafoam-deep); outline-offset: 4px; border-radius: 2px; }
svg { display: block; max-width: 100%; }

/* ---- demo banner ---- */
.demo-banner {
  display: block;
  position: relative;
  z-index: 5;
  background: var(--slate);
  color: var(--mist);
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.demo-banner b { font-weight: 700; }

/* ---- the living cover ---- */
.cover {
  position: relative;
  min-height: calc(100svh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  isolation: isolate;
}
.breath {
  position: absolute;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
}
.breath-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.breath-blob--1 {
  width: 78vmax; height: 78vmax;
  top: -6%; right: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 193, 181, 0.62) 0%, rgba(143, 193, 181, 0) 66%);
  animation: inhale 16s ease-in-out infinite;
}
.breath-blob--2 {
  width: 60vmax; height: 60vmax;
  bottom: -14%; left: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 193, 181, 0.42) 0%, rgba(143, 193, 181, 0) 68%);
  animation: inhale 19s ease-in-out infinite reverse;
}
/* the hairline ring: the only hard edge on the whole screen, breathing in sync */
.breath-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: min(62vmin, 30rem);
  aspect-ratio: 1;
  margin: calc(min(62vmin, 30rem) / -2) 0 0 calc(min(62vmin, 30rem) / -2);
  border: 1px solid rgba(46, 99, 85, 0.28);
  border-radius: 50%;
  animation: ring-breath 16s ease-in-out infinite;
}
@keyframes inhale {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  45%      { transform: scale(1.16) translate3d(-2vw, 2vh, 0); }
}
@keyframes ring-breath {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  45%      { transform: scale(1.06); opacity: 1; }
}

.cover-nav {
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}
.cover-nav a {
  text-decoration: none;
  color: var(--seafoam-deep);
  border-bottom: 1px solid rgba(46, 99, 85, 0.4);
  padding-bottom: 2px;
}
.cover-nav a:hover { border-bottom-color: var(--seafoam-deep); }

.cover-inner {
  flex: 1;
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seafoam-deep);
  margin-bottom: 1.75rem;
}
.cover h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.cover h1 em {
  font-style: italic;
  color: var(--seafoam-deep);
}
.lede {
  font-size: clamp(1.0625rem, 3.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--slate-soft);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}
.cover-foot {
  width: min(100%, var(--shell));
  margin-inline: auto;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* ---- cta ---- */
.pill {
  align-self: flex-start;
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--mist);
  background: var(--slate);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.pill:hover { transform: translateY(-2px); background: #2C363B; }
.pill--ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--line);
}
.pill--ghost:hover { background: var(--paper); }

/* ---- sections: quiet, stacked, lots of air ---- */
main section {
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7.5rem) var(--gutter);
}
main section + section { border-top: 1px solid var(--line); }
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--seafoam-deep);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.625rem, 5.2vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
  max-width: 22ch;
}
.prose { max-width: 34rem; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--slate-soft); }

/* ---- node list: title + conversational descriptor, indented rails ---- */
.nodes { list-style: none; }
.node {
  border-left: 1px solid var(--line);
  padding: 0 0 0 1.5rem;
  margin-bottom: 3rem;
  max-width: 38rem;
  position: relative;
  transition: border-color 0.4s ease;
}
.node:last-child { margin-bottom: 0; }
.node::before {
  content: "";
  position: absolute;
  left: -4px; top: 0.7rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--seafoam);
}
.node:hover { border-left-color: var(--seafoam-deep); }
.node h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.node-desc {
  color: var(--seafoam-deep);
  font-size: 0.9375rem;
  margin-bottom: 0.7rem;
}
.node > p:not(.node-desc):not(.node-meta) { color: var(--slate-soft); }
.node-meta {
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* ---- huone ---- */
.tila-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.tila-art { margin: 0; }
.room-svg {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ---- hinnasto ---- */
.hinta-lista { max-width: 38rem; }
.hinta-lista > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.hinta-lista dt { font-weight: 600; }
.hinta-lista dt span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--slate-soft);
}
.hinta-lista dd {
  font-family: var(--display);
  font-size: 1.1875rem;
  white-space: nowrap;
}
.hinta-note {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 0.875rem;
  color: var(--slate-soft);
}

/* ---- yhteys ---- */
.yhteys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
  max-width: 40rem;
}
.yhteys-grid dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 0.35rem;
}
.yhteys-grid dd { font-size: 0.9375rem; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 3rem var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--slate-soft);
  font-size: 0.875rem;
}
.footer a { color: var(--seafoam-deep); }
.footer .small { margin-top: 0.35rem; font-size: 0.8125rem; }

/* ---- entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .cover-inner > * { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .cover-inner > :nth-child(2) { animation-delay: 0.1s; }
  .cover-inner > :nth-child(3) { animation-delay: 0.2s; }
  .cover-inner > :nth-child(4) { animation-delay: 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 780px) {
  .tila-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  .breath-blob { filter: blur(45px); }
  .yhteys-grid { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .pill { align-self: stretch; text-align: center; }
  .hinta-lista dt span { max-width: 14rem; }
}

/* --- Tekoälyilmoitus (EU AI Act 50 art.) — webpages/kit/ai-disclosure/ --- */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}
.ai-note strong { font-weight: 600; }
