/* とことこシマエナガ — Landing page */

:root {
  --sky-top: #7eb8e8;
  --sky-mid: #c5dff5;
  --snow: #f0f4fa;
  --accent: #e85d75;
  --accent-dark: #d14760;
  --accent-soft: #ffb3c1;
  --leaf: #2f6b45;
  --gold: #d4a017;
  --text: #2c3e50;
  --text-light: #6b7c8d;
  --card: #ffffff;
  --line: #e4ebf2;
  --shadow: rgba(26, 39, 68, 0.12);
  --radius: 20px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Yu Gothic', sans-serif;
  color: var(--text);
  background: #fbfdff;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 40px, 560px);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8fa3 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 93, 117, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 93, 117, 0.38);
}

.btn-primary:disabled {
  opacity: 0.55;
  transform: none;
  cursor: progress;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  box-shadow: 0 4px 14px var(--shadow);
}

.btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-small {
  padding: 9px 20px;
  font-size: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.28);
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(251, 253, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 235, 242, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(26, 39, 68, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
}

.site-nav a:not(.btn):hover {
  color: var(--accent-dark);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--snow) 100%);
  padding: 64px 0 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 180px;
  background: #fff;
  border-radius: 50% 50% 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: #1f3550;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}

.hero-headline {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.06em;
}

.lead {
  margin-top: 20px;
  font-size: 17px;
  color: #3c5670;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  color: #547191;
}

/* Phone preview mockup */

.hero-preview {
  justify-self: center;
  width: min(100%, 320px);
}

.phone-frame {
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #fff 0%, #eef4fa 100%);
  box-shadow:
    0 24px 48px rgba(26, 39, 68, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #fcebeb;
  aspect-ratio: 390 / 844;
}

/*
 * The app's home and forest tabs, laid out at the app's 390×844pt design size
 * (47 status bar + 32 header + 685 body + 80 NavigationBar) and scaled to fit.
 * Sizes and colours mirror app/lib/screens/home_screen.dart, forest_screen.dart,
 * app_shell.dart and theme.dart.
 */
.app-screen {
  --app-text: #2c3e50;
  --app-text-light: #6b7c8d;
  --app-accent: #e85d75;
  --app-chrome: #fceaea;
  --app-fade: 0.8s;
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  transform: scale(var(--app-scale, 0.759));
  transform-origin: 0 0;
  font-family: -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--app-text);
  background: var(--app-chrome);
  user-select: none;
}

.app-screen .mi {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.app-screen .mi-o {
  font-family: 'Material Icons Outlined';
}

.app-status {
  flex: 0 0 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px 0 36px;
  font-size: 16px;
  font-weight: 700;
}

.app-status-icons .mi {
  font-size: 17px;
  margin-left: 4px;
}

.app-header {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 8px 8px 16px;
}

.app-tune {
  width: 32px;
  text-align: center;
  font-size: 22px !important;
  opacity: 0;
  transition: opacity var(--app-fade) ease;
}

.app-screen[data-tab='forest'] .app-tune {
  opacity: 1;
}

.app-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.app-coins .mi {
  font-size: 18px;
  color: rgba(244, 197, 66, 0.95);
}

.app-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--app-accent);
  color: #fff;
  font-size: 20px !important;
}

.app-body {
  position: relative;
  flex: 0 0 685px;
  overflow: hidden;
}

.app-home,
.app-forest {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity var(--app-fade) ease;
}

.app-screen[data-tab='home'] .app-home,
.app-screen[data-tab='forest'] .app-forest {
  opacity: 1;
}

.app-home {
  flex-direction: column;
  background: linear-gradient(180deg, #7eb8e8 0%, #c5dff5 50%, #dde8f0 100%);
}

.app-home-top {
  padding: 12px 20px 8px;
}

.app-cycle {
  color: #fff;
  font-weight: 700;
}

.app-card {
  background: rgba(255, 255, 255, 0.94);
}

.app-steps-card {
  margin-top: 18px;
  padding: 14px 12px 20px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.app-steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--app-text-light);
  font-weight: 700;
}

.app-link {
  padding: 6px 8px;
  color: var(--app-accent);
  font-size: 13px;
  font-weight: 800;
}

.app-steps {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.app-steps small {
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text-light);
}

.app-gauge {
  height: 10px;
  margin: 10px 8px 0 0;
  border-radius: 8px;
  background: #e6eef5;
  overflow: hidden;
}

.app-gauge span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--app-accent);
  transition: width 0.4s ease;
}

.app-next {
  margin-top: 10px;
  font-weight: 700;
}

.app-forest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
}

.app-forest-card > div {
  flex: 1;
}

.app-forest-title {
  font-weight: 800;
}

.app-forest-sub {
  margin-top: 4px;
  color: var(--app-text-light);
  font-size: 13px;
}

.app-button {
  padding: 10px 24px;
  border-radius: 20px;
  background: var(--app-accent);
  color: #fff;
  font-weight: 500;
}

.app-walk {
  position: relative;
  flex: 1;
}

/* HomeWalkLoop: min(94% of the space, 360) × 0.8, bottom-aligned, 4pt off the nav. */
.app-walk img {
  position: absolute;
  left: 50%;
  bottom: 4px;
  height: min(75.2%, 288px);
  transform: translate(-50%, var(--bob, 0px));
  visibility: hidden;
}

.app-walk img.is-current {
  visibility: visible;
}

/*
 * Forest tab: layoutForestBackground() for a 390×685 body gives a
 * 445.25×667.875 background at (-27.625, 17.125); birds are 132pt, centred
 * on the treeSlots of app/lib/data/characters.dart.
 */
.app-forest {
  background: #aadae7;
}

.app-forest-bg {
  position: absolute;
  left: -27.625px;
  top: 17.125px;
  width: 445.25px;
  height: 667.875px;
  max-width: none;
}

.app-forest-subtitle {
  position: relative;
  padding: 6px 16px 0;
  color: var(--app-text-light);
  font-weight: 700;
}

.app-bird {
  position: absolute;
  left: calc(-27.625px + 445.25px * var(--x) - 66px);
  top: calc(17.125px + 667.875px * var(--y) - 66px);
  width: 132px;
  height: 132px;
  max-width: none;
  object-fit: contain;
}

.app-nav {
  flex: 0 0 80px;
  display: flex;
  background: var(--app-chrome);
}

.app-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  color: #534343;
  font-size: 12px;
  font-weight: 500;
  transition: color var(--app-fade) ease;
}

.app-nav-item .mi {
  display: grid;
  place-items: center;
  width: 64px;
  height: 32px;
  border-radius: 16px;
  transition: background-color var(--app-fade) ease;
}

.app-screen[data-tab='home'] .app-nav-item[data-tab='home'],
.app-screen[data-tab='forest'] .app-nav-item[data-tab='forest'] {
  color: #231919;
  font-weight: 600;
}

.app-screen[data-tab='home'] .app-nav-item[data-tab='home'] .mi,
.app-screen[data-tab='forest'] .app-nav-item[data-tab='forest'] .mi {
  background: rgba(232, 93, 117, 0.18);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-1.5deg); }
}

/* Falling snow */

.snowfall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowfall span {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh) translateX(30px);
  }
}

/* ===== Sections ===== */

.section {
  padding: 84px 0;
  background: #fff;
}

.section.alt {
  background: linear-gradient(180deg, #f4f9fd 0%, #eef6fc 100%);
}

.section-tag {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  color: #1f3550;
}

.section-lead {
  margin: 18px auto 0;
  max-width: 40em;
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
}

/* ===== Pillars (unused — kept for possible reuse) ===== */

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.05);
}

.pillar-icon {
  font-size: 32px;
  line-height: 1;
}

.pillar h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.pillar p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== Timeline ===== */

.timeline {
  list-style: none;
  max-width: 640px;
  margin: 48px auto 0;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-left: 3px solid var(--line);
  margin-left: 36px;
  padding-left: 28px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 30px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-soft);
}

.timeline-item.highlight::before {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-item time {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-dark);
  padding-top: 2px;
}

.timeline-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-body p {
  font-size: 15px;
  color: var(--text-light);
}

.timeline-item.highlight {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: -20px;
  padding-right: 20px;
}

/* ===== Rewards ===== */

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.reward-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.05);
}

.reward-card.accent {
  background: linear-gradient(160deg, #fff9f0 0%, #fff 100%);
  border-color: #f5e6c8;
}

.reward-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1f3550;
}

.draw-table {
  list-style: none;
}

.draw-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}

.draw-table li:first-child {
  border-top: none;
}

.draw-steps {
  font-weight: 700;
  color: var(--text-light);
}

.draw-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
}

.reward-note {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
}

.rarity-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.stars {
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.stars-1 { color: #9aa8b5; }
.stars-2 { color: #7a9a7a; }
.stars-3 { color: #5a8ab0; }
.stars-4 { color: #b07a20; }
.stars-5 { color: var(--gold); font-weight: 800; }

/* ===== Characters ===== */

.chars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.char {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.char:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26, 39, 68, 0.08);
}

.char-art {
  background: linear-gradient(180deg, #eaf3fb 0%, #f7fbff 100%);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 10px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.char-art img {
  width: 100%;
  height: auto;
}

.char[data-rarity='4'] .char-art,
.char[data-rarity='5'] .char-art {
  background: linear-gradient(180deg, #fff6e0 0%, #fffdf7 100%);
}

.char.mystery .char-art {
  background: linear-gradient(180deg, #e8edf2 0%, #f4f7fa 100%);
}

.char-silhouette {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #b8c4d0 0%, #8a9aaa 100%);
  opacity: 0.55;
  position: relative;
}

.char-silhouette::after {
  content: '?';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.char-stars {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}

.char h3 {
  font-size: 15px;
  font-weight: 800;
}

.char p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.75;
}

.char.mystery h3 {
  color: var(--text-light);
}

/* ===== Seasons ===== */

.seasons {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.season-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.06);
}

.season-scene {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 10px;
}

.season-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.season-hills {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 18%;
  height: 28%;
  z-index: 1;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  opacity: 0.55;
}

.season-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  z-index: 2;
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
}

.season-card[data-season='winter'] .season-sky {
  background: linear-gradient(180deg, #7eb8e8 0%, #c5dff5 55%, #dceaf5 100%);
}

.season-card[data-season='winter'] .season-hills {
  background: #b8c8d8;
}

.season-card[data-season='winter'] .season-ground {
  background: linear-gradient(180deg, #e8f0fa 0%, #fff 100%);
}

.season-card[data-season='spring'] .season-sky {
  background: linear-gradient(180deg, #c5dff5 0%, #fce4ef 55%, #ffe8f2 100%);
}

.season-card[data-season='spring'] .season-hills {
  background: #c8e8c8;
}

.season-card[data-season='spring'] .season-ground {
  background: linear-gradient(180deg, #e8f8e8 0%, #f5fff5 100%);
}

.season-card[data-season='summer'] .season-sky {
  background: linear-gradient(180deg, #6eb0e0 0%, #98d8b0 55%, #b8e8c8 100%);
}

.season-card[data-season='summer'] .season-hills {
  background: #88c888;
}

.season-card[data-season='summer'] .season-ground {
  background: linear-gradient(180deg, #c8ebc8 0%, #e8f8e8 100%);
}

.season-card[data-season='autumn'] .season-sky {
  background: linear-gradient(180deg, #c5dff5 0%, #ffd8a8 55%, #ffe8cc 100%);
}

.season-card[data-season='autumn'] .season-hills {
  background: #d8b888;
}

.season-card[data-season='autumn'] .season-ground {
  background: linear-gradient(180deg, #f0dcc0 0%, #faf0e4 100%);
}

.season-cloud {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 32%;
  height: 11%;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 24px 0 0 -4px rgba(255, 255, 255, 0.65);
}

.season-cloud--sm {
  width: 22%;
  height: 8%;
  opacity: 0.85;
}

.season-tree-wrap {
  position: absolute;
  z-index: 3;
}

.season-tree-wrap .season-tree {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(26, 39, 68, 0.12));
}

.season-tree-wrap--main {
  left: 50%;
  bottom: -2%;
  width: 72%;
  transform: translateX(-50%);
  z-index: 5;
}

.season-tree-wrap--back-left {
  left: -4%;
  bottom: 6%;
  width: 38%;
  opacity: 0.72;
  z-index: 2;
}

.season-tree-wrap--back-right {
  right: -6%;
  bottom: 4%;
  width: 34%;
  opacity: 0.68;
  z-index: 2;
}

.season-bird {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: 34%;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(60, 50, 40, 0.18));
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}

.season-bird--sm {
  width: 42%;
}

.season-card span {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-light);
}

/* ===== Pre-registration ===== */

.prereg {
  background: linear-gradient(180deg, #fff 0%, #fdf1f4 100%);
}

.prereg-form {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(26, 39, 68, 0.07);
}

.field {
  border: none;
  margin-bottom: 22px;
}

.field label,
.field legend {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.field input[type='email'] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.field input[type='email']:focus {
  outline: none;
  border-color: var(--accent-soft);
}

.field input[type='email'][aria-invalid='true'] {
  border-color: var(--accent);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choices label {
  position: relative;
  margin: 0;
}

.choices input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choices span {
  display: inline-block;
  padding: 9px 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choices input:checked + span {
  border-color: var(--accent);
  background: #fff0f3;
  color: var(--accent-dark);
}

.choices input:focus-visible + span {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  min-height: 1.5em;
}

.form-status.is-error {
  color: var(--accent-dark);
}

.form-consent {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.form-consent a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ===== Legal pages ===== */

.legal {
  padding: 72px 0 88px;
}

.legal h1 {
  font-size: 30px;
  font-weight: 800;
}

.legal-lead {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 15px;
}

.legal h2 {
  margin-top: 40px;
  font-size: 19px;
  font-weight: 800;
}

.legal p,
.legal ul {
  margin-top: 12px;
  font-size: 15px;
}

.legal ul {
  padding-left: 1.4em;
}

.legal li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.legal-date,
.legal-back {
  margin-top: 40px;
  color: var(--text-light);
  font-size: 14px;
}

.form-status.is-success {
  color: var(--leaf);
}

.prereg-form.is-done {
  text-align: center;
}

/* ===== Footer ===== */

.site-footer {
  background: #1f3550;
  color: #cfdcea;
  padding: 44px 0;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.footer-note {
  margin: 12px auto 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.9;
}

.footer-links {
  margin-top: 16px;
  font-size: 13px;
}

.footer-links a {
  color: #fff;
  text-decoration: underline;
  margin-right: 16px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 40px;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .lead {
    margin-inline: auto;
  }

  .section {
    padding: 64px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-left: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.85;
  }

  .btn {
    padding: 14px 24px;
  }

  .brand span {
    font-size: 15px;
  }

  .prereg-form {
    padding: 24px 20px;
  }

  .chars {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .char {
    padding: 12px 14px 18px;
  }

  .char h3 {
    font-size: 14px;
  }

  .char p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .season-bird,
  .snowfall span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
