@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --kaurapaperi: #f7f1e8;
  --pellavakerma: #ebddce;
  --hiekkareuna: #d5bea5;
  --terrakotta: #c76c49;
  --musta-muste: #312925;
  --pehmea-savi: #7c6758;
  --sumusininen: #7d919b;
  --shadow: 0 22px 48px rgba(49, 41, 37, 0.08);
  --shadow-soft: 0 12px 24px rgba(49, 41, 37, 0.05);
  --radius: 26px;
  --radius-sm: 18px;
  --container: min(960px, calc(100vw - 32px));
  --reading: min(1140px, calc(100vw - 32px));
  --guide-width: 680px;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--musta-muste);
  background:
    radial-gradient(circle at top left, rgba(199, 108, 73, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 145, 155, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f1e8 0%, #f4ede3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
summary {
  font: inherit;
}

a,
button,
summary {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(199, 108, 73, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--terrakotta);
  color: var(--kaurapaperi);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--hiekkareuna);
  border-radius: var(--radius);
  background: rgba(247, 241, 232, 0.9);
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(247, 241, 232, 0.88);
  border-bottom: 1px solid rgba(213, 190, 165, 0.7);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-brand img {
  width: 64px;
  height: auto;
}

.site-brand-text {
  display: grid;
  gap: 2px;
}

.site-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-brand-text span {
  color: var(--pehmea-savi);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--pehmea-savi);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--musta-muste);
  background: rgba(235, 221, 206, 0.75);
}

.band {
  padding: 24px 0;
}

.hero-band {
  padding-top: 34px;
}

.band-cream {
  background: transparent;
}

.band-beige {
  background: linear-gradient(180deg, rgba(235, 221, 206, 0.46), rgba(235, 221, 206, 0.16));
}

.hero-container,
.text-panel,
.price-panel,
.faq-panel,
.download-card,
.simple-card,
.guide-intro,
.guide-prose,
.legal-card,
.role-card {
  padding: clamp(24px, 5vw, 44px);
}

.hero-container {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.92), rgba(247, 241, 232, 0.88)),
    radial-gradient(circle at top right, rgba(199, 108, 73, 0.1), transparent 36%);
  box-shadow: var(--shadow);
}

.brandmark {
  display: inline-grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
  margin-bottom: 22px;
}

.brandmark img {
  width: 86px;
  height: auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.microline {
  color: var(--pehmea-savi);
  font-size: 0.95rem;
}

.eyebrow,
.footer-wordmark {
  margin: 0 0 14px;
  color: var(--pehmea-savi);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  color: var(--musta-muste);
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.9rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
}

p,
li,
summary {
  font-size: 1.02rem;
  line-height: 1.75;
}

p,
li {
  color: var(--musta-muste);
}

.hero-sub,
.guide-lede,
.footer-line,
.muted {
  color: var(--pehmea-savi);
}

.hero-sub,
.guide-lede {
  max-width: 62ch;
  font-size: clamp(1.08rem, 2.5vw, 1.24rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terrakotta);
  color: var(--kaurapaperi);
  box-shadow: 0 10px 18px rgba(199, 108, 73, 0.22);
}

.btn-primary:hover {
  background: #b86242;
}

.btn-secondary {
  border-color: var(--hiekkareuna);
  background: rgba(247, 241, 232, 0.86);
  color: var(--musta-muste);
}

.btn-secondary:hover,
.text-link:hover {
  border-color: var(--terrakotta);
  color: var(--musta-muste);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pehmea-savi);
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.role-card,
.text-panel,
.price-panel,
.faq-panel,
.download-card,
.simple-card,
.legal-card,
.guide-intro,
.guide-prose {
  background: rgba(247, 241, 232, 0.86);
}

.role-card h3 {
  margin-bottom: 10px;
}

.price-line {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid rgba(213, 190, 165, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(235, 221, 206, 0.38);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--pehmea-savi);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item div {
  padding: 0 20px 18px;
}

.download-note {
  margin-top: 18px;
  color: var(--pehmea-savi);
}

.download-hash {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(49, 41, 37, 0.06);
  color: var(--musta-muste);
}

.download-steps,
.requirements-list {
  padding-left: 22px;
}

.download-callout {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(213, 190, 165, 0.9);
}

.guide-band {
  padding-bottom: 40px;
}

.guide-shell {
  width: var(--reading);
  margin: 0 auto;
}

.guide-layout {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.guide-sidebar {
  align-self: start;
}

.toc-box {
  border: 1px solid var(--hiekkareuna);
  border-radius: var(--radius-sm);
  background: rgba(235, 221, 206, 0.46);
  padding: 14px 16px;
}

.toc-box summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.toc-box summary::-webkit-details-marker {
  display: none;
}

.toc-box ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.toc-box li {
  margin-bottom: 10px;
  color: var(--musta-muste);
}

.toc-level-3 {
  margin-left: 14px;
}

.guide-prose {
  max-width: 100%;
}

.prose {
  color: var(--musta-muste);
}

.prose p,
.prose li {
  max-width: var(--guide-width);
}

.prose h2,
.prose h3,
.prose h4,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  max-width: var(--guide-width);
}

.prose a {
  color: var(--musta-muste);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--terrakotta);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--terrakotta);
  background: rgba(235, 221, 206, 0.34);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(49, 41, 37, 0.08);
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.guide-bottom-cta {
  max-width: var(--guide-width);
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(213, 190, 165, 0.9);
}

.legal-note {
  color: var(--pehmea-savi);
}

.site-footer {
  padding: 24px 0 36px;
}

.footer-container {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(213, 190, 165, 0.9);
  border-radius: var(--radius);
  background: rgba(247, 241, 232, 0.86);
  box-shadow: var(--shadow-soft);
}

.footer-wordmark {
  margin-bottom: 8px;
  color: var(--musta-muste);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--pehmea-savi);
  font-weight: 700;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }

  .guide-sidebar {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 899px) {
  .site-brand-text span {
    display: none;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-brand img {
    width: 56px;
  }

  .hero-container,
  .text-panel,
  .price-panel,
  .faq-panel,
  .download-card,
  .simple-card,
  .guide-intro,
  .guide-prose,
  .legal-card,
  .role-card,
  .footer-container {
    padding: 22px 20px;
  }

  .hero-ctas,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  button,
  summary,
  [data-reveal] {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
