/* =========================================================
   Sheep Slide Away — Pasture Pen Board landing
   Differentiated layout: meadow atmosphere + zigzag slide lanes
   + checkerboard screenshot pen (not a standard app-store grid)
   ========================================================= */

:root {
  --sky: #4aa9ff;
  --sky-deep: #2b8fe8;
  --sky-soft: #a8d8ff;
  --meadow: #55d400;
  --meadow-deep: #3dba00;
  --grass: #7cbb00;
  --grass-deep: #5a9a00;
  --sun: #ffd700;
  --sun-deep: #e8a800;
  --wood: #e89a5c;
  --wood-deep: #c9783a;
  --cream: #fff8ee;
  --sand: #f3e4c8;
  --ink: #3d2914;
  --ink-soft: #5c4030;
  --muted: #7a5c45;
  --white: #ffffff;
  --tile-a: #e8a050;
  --tile-b: #8bc34a;
  --shadow: 0 12px 28px rgba(61, 41, 20, 0.18);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --rail-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --cream: #1a2430;
  --sand: #243040;
  --ink: #f5efe6;
  --ink-soft: #d8cfc2;
  --muted: #a89888;
  --sky: #3a8fd4;
  --sky-soft: #1e3a55;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--meadow);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Pasture atmosphere ---------- */
.pasture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.pasture__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--sky) 0%,
    var(--sky-soft) 42%,
    var(--sand) 72%,
    var(--cream) 100%
  );
}

[data-theme="dark"] .pasture__sky {
  background: linear-gradient(180deg, #0f1c2e 0%, #1a2a3c 50%, #1a2430 100%);
}

.pasture__sun {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7b0, var(--sun) 55%, var(--sun-deep));
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.45);
  animation: sun-float 8s ease-in-out infinite;
}

.pasture__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50px;
  filter: blur(0.5px);
}

.pasture__cloud::before,
.pasture__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.pasture__cloud--1 {
  top: 12%;
  left: 6%;
  width: 120px;
  height: 36px;
  animation: cloud-drift 28s linear infinite;
}

.pasture__cloud--1::before {
  width: 52px;
  height: 52px;
  top: -28px;
  left: 18px;
}

.pasture__cloud--1::after {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 55px;
}

.pasture__cloud--2 {
  top: 18%;
  right: 22%;
  width: 90px;
  height: 28px;
  opacity: 0.75;
  animation: cloud-drift 36s linear infinite reverse;
}

.pasture__cloud--2::before {
  width: 40px;
  height: 40px;
  top: -22px;
  left: 12px;
}

.pasture__cloud--2::after {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 42px;
}

.pasture__cloud--3 {
  top: 8%;
  left: 42%;
  width: 70px;
  height: 22px;
  opacity: 0.65;
  animation: cloud-drift 42s linear infinite;
}

.pasture__cloud--3::before {
  width: 34px;
  height: 34px;
  top: -18px;
  left: 10px;
}

.pasture__hill {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 28vh;
  border-radius: 50% 50% 0 0;
}

.pasture__hill--back {
  bottom: 18%;
  background: linear-gradient(180deg, #9fd45a, var(--grass));
  opacity: 0.55;
}

.pasture__hill--mid {
  bottom: 0;
  height: 22vh;
  background: linear-gradient(180deg, var(--grass), var(--grass-deep));
  opacity: 0.35;
}

[data-theme="dark"] .pasture__hill--back,
[data-theme="dark"] .pasture__hill--mid {
  opacity: 0.15;
}

@keyframes sun-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(40px);
  }
}

/* ---------- Fence-rail navbar ---------- */
.rail {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 12px clamp(0.75rem, 3vw, 1.5rem) 0;
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  min-height: calc(var(--rail-h) - 16px);
  background: rgba(255, 248, 238, 0.88);
  backdrop-filter: blur(14px);
  border: 3px solid var(--wood);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), background 0.25s;
}

[data-theme="dark"] .rail {
  background: rgba(26, 36, 48, 0.9);
  border-color: var(--wood-deep);
}

.rail.is-scrolled {
  box-shadow: 0 8px 24px rgba(61, 41, 20, 0.22);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

.rail__brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--wood);
}

.rail__nav {
  display: none;
  gap: 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.rail__nav a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.rail__nav a:hover,
.rail__nav a:focus-visible {
  color: var(--meadow-deep);
}

.rail__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--sun);
  border-radius: 2px;
  transition: width 0.2s var(--ease);
}

.rail__nav a:hover::after,
.rail__nav a:focus-visible::after {
  width: 100%;
}

.rail__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  border: 2px solid rgba(61, 41, 20, 0.12);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.theme-btn:hover {
  transform: scale(1.06);
  background: var(--sky-soft);
}

.theme-btn .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-btn .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-btn .icon-moon {
  display: block;
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.burger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  background: var(--sand);
  border: 2px solid rgba(61, 41, 20, 0.12);
}

.burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.drawer {
  position: fixed;
  top: calc(var(--rail-h) + 8px);
  left: 12px;
  right: 12px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--cream);
  border: 3px solid var(--wood);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.drawer[hidden] {
  display: none;
}

.drawer a {
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.drawer a:hover,
.drawer a:focus-visible {
  background: var(--sand);
}

/* ---------- Buttons (glossy casual-game style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  border-radius: var(--radius-pill);
  border: 3px solid transparent;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s var(--ease), box-shadow 0.15s, filter 0.15s;
  cursor: pointer;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.btn--meadow {
  background: linear-gradient(180deg, #6eef22 0%, var(--meadow) 45%, var(--meadow-deep) 100%);
  border-color: #2f9a00;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.btn--wood {
  background: linear-gradient(180deg, #f0b478 0%, var(--wood) 50%, var(--wood-deep) 100%);
  border-color: #a85f28;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.15rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100svh - var(--rail-h) - 24px);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero__brand {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.word {
  display: inline-block;
  padding: 0.1em 0.35em;
  border-radius: 10px;
  border: 3px solid #4a2c0a;
  line-height: 1.15;
  box-shadow: 3px 4px 0 #4a2c0a;
}

.word--white {
  background: var(--white);
  color: #4a2c0a;
}

.word--yellow {
  background: var(--sun);
  color: #4a2c0a;
}

.word--sky {
  background: var(--sky);
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.line-white {
  display: block;
  color: var(--white);
  text-shadow:
    3px 3px 0 #4a2c0a,
    -1px -1px 0 #4a2c0a,
    1px -1px 0 #4a2c0a,
    -1px 1px 0 #4a2c0a,
    4px 6px 0 rgba(74, 44, 10, 0.25);
}

.line-yellow {
  display: block;
  color: var(--sun);
  text-shadow:
    3px 3px 0 #4a2c0a,
    -1px -1px 0 #4a2c0a,
    1px -1px 0 #4a2c0a,
    -1px 1px 0 #4a2c0a,
    4px 6px 0 rgba(74, 44, 10, 0.25);
}

.hero__tag {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 5px solid var(--wood);
  box-shadow: var(--shadow), 0 0 0 8px rgba(232, 154, 92, 0.25);
  background: var(--sand);
}

.hero__art img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.section-head--light h2,
.section-head--light .lede,
.section-head--light .eyebrow {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meadow-deep);
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Features: zigzag sliding lanes ---------- */
.features {
  position: relative;
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.lane-track {
  position: absolute;
  inset: 12% 8% 8%;
  pointer-events: none;
  opacity: 0.35;
}

.lane-path {
  width: 100%;
  height: 100%;
}

.lane-path path {
  stroke: var(--wood);
  stroke-width: 1.2;
  stroke-dasharray: 3 2.5;
  stroke-linecap: round;
}

.lane {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid var(--wood);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 520px;
}

[data-theme="dark"] .lane {
  background: rgba(36, 48, 64, 0.95);
}

.lane--left {
  margin-right: auto;
  transform: rotate(-1.2deg);
}

.lane--right {
  margin-left: auto;
  transform: rotate(1.2deg);
}

.lane__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--sky), var(--sky-deep));
  color: var(--white);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.lane__icon svg {
  width: 28px;
  height: 28px;
}

.lane__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.lane__body p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
}

.lane__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sun-deep);
  opacity: 0.85;
}

/* ---------- Screens: checkerboard pen ---------- */
.pen {
  position: relative;
  padding: 4.5rem clamp(1rem, 3vw, 2rem) 5rem;
  background:
    linear-gradient(180deg, rgba(74, 169, 255, 0.55) 0%, rgba(124, 187, 0, 0.45) 100%),
    repeating-conic-gradient(
      from 0deg,
      var(--tile-a) 0deg 90deg,
      var(--tile-b) 90deg 180deg
    );
  background-size: auto, 64px 64px;
  border-block: 6px solid var(--wood-deep);
}

.pen__board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.5rem;
  align-items: end;
}

.shot {
  margin: 0;
  grid-column: span 2;
  background: var(--cream);
  border: 4px solid #4a2c0a;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease);
}

.shot:hover {
  transform: translateY(-8px) rotate(0deg) !important;
}

.shot img {
  width: 100%;
  aspect-ratio: 576 / 1024;
  object-fit: cover;
  object-position: top center;
}

.shot figcaption {
  padding: 0.65rem 0.75rem 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--sand);
}

.shot--tilt-l {
  transform: rotate(-3deg);
}

.shot--tilt-r {
  transform: rotate(3deg);
}

.shot--up {
  transform: translateY(-18px);
}

.shot:nth-child(1) {
  grid-column: 1 / 3;
}

.shot:nth-child(2) {
  grid-column: 3 / 5;
}

.shot:nth-child(3) {
  grid-column: 5 / 7;
}

.shot:nth-child(4) {
  grid-column: 2 / 4;
}

.shot:nth-child(5) {
  grid-column: 4 / 6;
}

/* ---------- Download barn ---------- */
.download {
  padding: 5rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
}

.barn {
  width: min(100%, 560px);
  padding: 0 1.75rem 2rem;
  background: linear-gradient(180deg, #fff4e4 0%, var(--cream) 100%);
  border: 5px solid var(--wood);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

[data-theme="dark"] .barn {
  background: linear-gradient(180deg, #2a3a4c 0%, #1a2430 100%);
}

.barn__tab {
  margin: -1.35rem auto 1.25rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-deep) 100%);
  border: 4px solid #8a4e1e;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.barn__tab h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.barn > p {
  margin: 0 0 1.5rem;
  font-weight: 700;
  color: var(--muted);
  font-size: 1.05rem;
}

.barn__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  margin-top: 2rem;
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 2rem;
}

.foot__grass {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 36px;
  background:
    radial-gradient(ellipse 18px 22px at 10% 100%, var(--grass) 70%, transparent 72%),
    radial-gradient(ellipse 16px 20px at 22% 100%, var(--grass-deep) 70%, transparent 72%),
    radial-gradient(ellipse 20px 24px at 35% 100%, var(--grass) 70%, transparent 72%),
    radial-gradient(ellipse 15px 18px at 48% 100%, var(--grass-deep) 70%, transparent 72%),
    radial-gradient(ellipse 18px 22px at 62% 100%, var(--grass) 70%, transparent 72%),
    radial-gradient(ellipse 16px 20px at 75% 100%, var(--grass-deep) 70%, transparent 72%),
    radial-gradient(ellipse 20px 24px at 88% 100%, var(--grass) 70%, transparent 72%),
    radial-gradient(ellipse 14px 18px at 97% 100%, var(--grass-deep) 70%, transparent 72%);
}

.foot__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.foot__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.35rem;
  font-weight: 700;
}

.foot__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.foot__links a:hover {
  opacity: 0.85;
}

.foot__copy {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 50, 40, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(100%, 380px);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--cream);
  border: 5px solid var(--wood);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
  animation: pop-in 0.28s var(--ease);
}

[data-theme="dark"] .modal__panel {
  background: #243040;
}

.modal__x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e53935;
  color: var(--white);
  border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.modal__x svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--sky), var(--sky-deep));
  color: var(--white);
}

.modal__icon svg {
  width: 30px;
  height: 30px;
}

.modal__panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .rail__nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }

  .hero__copy {
    order: 1;
  }

  .hero__art {
    order: 2;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero {
    gap: 3rem;
  }

  .lane--left {
    margin-right: 12%;
  }

  .lane--right {
    margin-left: 12%;
  }
}

@media (max-width: 767px) {
  .pen__board {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .shot:nth-child(n) {
    grid-column: span 1;
  }

  .shot:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: center;
  }

  .shot--tilt-l,
  .shot--tilt-r,
  .shot--up {
    transform: none;
  }

  .lane {
    grid-template-columns: auto 1fr;
  }

  .lane__num {
    display: none;
  }

  .lane--left,
  .lane--right {
    transform: none;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .lane-track {
    display: none;
  }

  .rail__actions .btn--sm {
    display: none;
  }
}

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

  .pasture__sun,
  .pasture__cloud,
  .modal__panel {
    animation: none !important;
  }

  .btn,
  .shot,
  .theme-btn {
    transition: none !important;
  }
}
