:root {
  --wash: #e6dcc8;
  --cream: #efe8dc;
  --badge: #d8cdb8;
  --sage: #c5d0c3;
  --card-front: #f4efe6;
  --ink: #1d3328;
  --ink-soft: rgba(29, 51, 40, 0.72);
  --pine: #244033;
  --foam: #f3ebe0;
  --shadow: 0 8px 28px rgba(29, 51, 40, 0.12);
  --shadow-soft: 0 4px 14px rgba(29, 51, 40, 0.08);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--wash) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(29, 51, 40, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(29, 51, 40, 0.06);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(29, 51, 40, 0.05);
  border-radius: 999px;
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover {
  background: rgba(29, 51, 40, 0.08);
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--foam);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.lang-switch button:focus-visible,
.app-links a:focus-visible,
.logo:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--foam);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--pine);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ── Hero ── */

.hero {
  padding: 72px 0 96px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  background: var(--sage);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.15rem);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 44ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Sections ── */

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-weight: 500;
}

.section-centered .section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-centered .section-head p {
  margin-inline: auto;
}

.apps {
  padding: 0 0 72px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow);
}

.app-card:nth-child(1) {
  --tilt: -1.2deg;
}
.app-card:nth-child(2) {
  --tilt: 1deg;
}
.app-card:nth-child(3) {
  --tilt: 0.8deg;
}
.app-card:nth-child(4) {
  --tilt: -0.9deg;
}
.app-card:nth-child(5) {
  --tilt: -1.1deg;
}
.app-card:nth-child(6) {
  --tilt: 1.3deg;
}
.app-card:nth-child(7) {
  --tilt: -0.7deg;
}
.app-card:nth-child(8) {
  --tilt: 1.1deg;
}

.app-icon-soon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--sage);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--pine);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-card-top > div {
  min-width: 0;
}

.app-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  flex: none;
}

.app-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-card .tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--badge);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.app-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card-front);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(29, 51, 40, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}

.app-links a:hover {
  background: #fff;
  transform: translateY(-1px);
}

.app-links svg {
  width: 14px;
  height: 14px;
}

.craft {
  padding: 24px 0 88px;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}

.section-centered .craft-card {
  text-align: left;
}

.craft-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.craft-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow);
}

.craft-card:nth-child(1) {
  --tilt: -1.8deg;
}
.craft-card:nth-child(2) {
  --tilt: 1.2deg;
}
.craft-card:nth-child(3) {
  --tilt: -0.8deg;
}

.craft-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.craft-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.faq {
  padding: 0 0 88px;
}

.faq-intro {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--badge);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--sage);
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
}

.faq-answer a {
  font-weight: 700;
  color: var(--ink);
}

.cta-band {
  padding: 0 0 96px;
}

.section-centered .cta-inner {
  max-width: 720px;
  margin-inline: auto;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  background: var(--ink);
  color: var(--foam);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 80%, rgba(197, 208, 195, 0.14), transparent 50%),
    radial-gradient(circle at 82% 18%, rgba(244, 239, 230, 0.08), transparent 45%);
  pointer-events: none;
}

.cta-inner h2 {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--foam);
}

.cta-inner p {
  position: relative;
  margin: 0 auto 28px;
  max-width: 48ch;
  color: rgba(243, 235, 224, 0.78);
  font-weight: 500;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-inner .btn-primary {
  background: var(--foam);
  color: var(--ink);
}

.cta-inner .btn-primary:hover {
  background: #fff;
}

.cta-inner .btn-secondary {
  background: transparent;
  color: var(--foam);
  box-shadow: inset 0 0 0 2px rgba(243, 235, 224, 0.35);
}

.cta-inner .btn-secondary:hover {
  background: rgba(243, 235, 224, 0.1);
}

/* ── Footer ── */

.site-footer {
  padding: 32px 0 40px;
  border-top: 2px solid rgba(29, 51, 40, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ── Legal pages ── */

.legal-page {
  padding: 40px 0 88px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.legal-back:hover {
  opacity: 1;
}

.legal-card {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 36px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.legal-card[hidden] {
  display: none;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 32px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 520px) {
  .legal-card {
    padding: 28px 22px;
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .app-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .nav-download {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .cta-inner {
    padding: 36px 24px;
  }
}

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