@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(/fonts/Fredoka-500.ttf) format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/Fredoka-600.ttf) format('truetype'); }

:root {
  --paper: #F5E9D3;
  --cream: #FFF8EC;
  --card: #FBF1E1;
  --ink: #4A2A1C;
  --soft: #8A5A3C;
  --orange: #E8834A;
  --orange-deep: #C9642E;
  --green: #8FB07A;
  --line: rgba(74, 42, 28, 0.12);
  --shadow: 0 30px 60px rgba(74, 42, 28, 0.18), 0 8px 20px rgba(74, 42, 28, 0.12);
  --body: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, .brand, .btn, .stat b { font-family: Fredoka, var(--body); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.2; }
p { color: var(--soft); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(74, 42, 28, 0.18); }
.top nav { display: flex; gap: 6px; }
.top nav a { font-family: Fredoka, var(--body); font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { background: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  padding: 14px 26px 14px 20px; border-radius: 16px;
  text-decoration: none; font-size: 20px;
  box-shadow: 0 10px 24px rgba(74, 42, 28, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--cream); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(74, 42, 28, 0.3); }
.btn svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; line-height: 1; }
.btn span { line-height: 1.1; }

/* Hero */
.hero { padding: 24px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.hero .logo { width: min(340px, 72%); margin: 0 0 18px -10px; filter: drop-shadow(0 12px 20px rgba(74, 42, 28, 0.18)); }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 21px; max-width: 32ch; margin-bottom: 30px; }
.hero .note { margin-top: 14px; font-size: 15px; }
.scene { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 0.82; }
.arch {
  position: absolute; inset: 0 0 0 18%;
  border-radius: 999px 999px 36px 36px; overflow: hidden;
  box-shadow: var(--shadow); border: 10px solid var(--cream);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.phone {
  border-radius: 44px; background: #2E211A; padding: 10px;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 35px; width: 100%; }
.scene .phone { position: absolute; left: 0; bottom: -8%; width: 52%; transform: rotate(-4deg); }

/* Stats */
.stats { padding: 0 0 80px; }
.stats ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--cream); border-radius: 22px; padding: 20px 18px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; color: var(--orange-deep); line-height: 1.1; }
.stat span { font-size: 16px; color: var(--soft); }

/* Feature rows */
.feature { padding: 56px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature.flip .copy { order: 2; }
.feature .copy { max-width: 460px; justify-self: center; }
.feature h2 { margin-bottom: 14px; }
.feature p { font-size: 19px; }
.feature .phone { width: min(300px, 70%); justify-self: center; }
.feature:nth-of-type(odd) .phone { transform: rotate(2deg); }
.feature:nth-of-type(even) .phone { transform: rotate(-2deg); }
.kicker { font-family: Fredoka, var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 10px; }

/* Foxes */
.foxes { padding: 72px 0 40px; text-align: center; }
.foxes h2 { margin-bottom: 10px; }
.foxes > .wrap > p { margin: 0 auto 36px; max-width: 44ch; }
.parade { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.parade li { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 14px 8px 12px; }
.parade img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; transition: transform 0.25s ease; }
.parade li:hover img { transform: rotate(-5deg) scale(1.06); }
.parade b { font-family: Fredoka, var(--body); font-weight: 600; font-size: 17px; display: block; }
.parade span { font-size: 13px; color: var(--soft); line-height: 1.3; display: block; }

/* Closing */
.closing { padding: 80px 0 96px; }
.closing .card {
  background: var(--cream); border-radius: 36px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 48px 56px; box-shadow: 0 20px 50px rgba(74, 42, 28, 0.1);
}
.closing h2 { margin-bottom: 10px; }
.closing p { margin-bottom: 26px; }
.closing img { width: 220px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--soft); }

/* Document pages */
.doc { padding: 24px 0 96px; }
.doc article { background: var(--cream); border: 1px solid var(--line); border-radius: 32px; padding: 56px clamp(22px, 6vw, 72px); max-width: 780px; margin-inline: auto; box-shadow: 0 20px 50px rgba(74, 42, 28, 0.08); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc .updated { font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc p, .doc li { color: #5E3B29; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .mailbox {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--paper); border-radius: 20px; padding: 20px 24px; margin: 18px 0 28px;
}
.doc .mailbox a { font-family: Fredoka, var(--body); font-weight: 600; font-size: 22px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: Fredoka, var(--body); font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--orange-deep); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; padding-bottom: 96px; }
  .hero .logo { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .feature { padding: 40px 0; text-align: center; }
  .feature.flip .copy { order: 0; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .parade { grid-template-columns: repeat(3, 1fr); }
  .closing .card { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .closing img { margin-inline: auto; width: 180px; order: -1; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav a { padding: 8px 10px; }
  .brand span { display: none; }
  .scene { width: 100%; }
  .parade { gap: 10px; }
  .parade li { padding: 10px 4px; border-radius: 18px; }
  .parade span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
