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

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

:root {
  --navy: #08192f;
  --muted: #5c6370;
  --gold: #f2a623;
  --gold-shadow: #ba7517;
  --cream: #fef3d9;
  --cream-footer: #faf0d4;
  --white: #ffffff;
  --teal: #1d9e75;
  --teal-shadow: #0f6e56;
  --gem: #6b3fa0;
  --border-soft: #f0e2c1;
  --card-border: #eedeb9;
  --card-slab: #e5d4ac;
  --radius-card: 16px;
  --radius-pill: 999px;
  --max-width: 1080px;
  --max-home: 1312px;
  --side-padding: 16px;
  --font: Fredoka, system-ui, sans-serif;
  --bp-desktop: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: clip;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: var(--side-padding);
  top: -100px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 3px var(--teal);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.site-header {
  background: rgba(254, 243, 217, 0.96);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-home);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  min-height: 64px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 60px);
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(100%, calc(100vw - 32px - 72px));
  object-fit: contain;
  object-position: left center;
}

.btn-header {
  display: none !important;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.875rem;
  box-shadow: 0 3px 0 var(--gold-shadow);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #e9dcbf;
  border-radius: var(--radius-card);
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(8, 25, 47, 0.04);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--navy);
}

.header-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 60px);
  gap: 12px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex-basis: 100%;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.site-nav .btn-nav-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  box-shadow: 0 4px 0 var(--gold-shadow);
  text-decoration: none;
}

.site-nav .btn-nav-cta:hover {
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 4px 0 var(--gold-shadow);
}

.site-nav .btn-nav-cta:active {
  transform: translateY(4px);
  box-shadow: none;
}

@media (min-width: 600px) and (max-width: 899px) {
  .brand-logo {
    height: 48px;
    max-width: min(100%, calc(100vw - 32px - 72px));
  }
}

@media (max-width: 899px) {
  .header-start {
    display: contents;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }

  .site-nav {
    order: 10;
  }

  .btn-header {
    order: 3;
  }
}

@media (min-width: 900px) {
  .site-header {
    border-bottom: none;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 1280px;
    min-height: 88px;
    height: 88px;
    padding: 0 32px;
  }

  .nav-toggle {
    display: none;
  }

  .header-start {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    gap: 48px;
  }

  .brand {
    max-width: none;
    flex-shrink: 0;
  }

  .brand-logo {
    height: 60px;
    max-width: min(420px, 36vw);
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    gap: 32px;
    flex-basis: auto;
  }

  .site-nav a:not(.btn-nav-cta) {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
  }

  .site-nav a:not(.btn-nav-cta):hover {
    color: var(--navy);
    box-shadow: none;
  }

  .site-nav a[aria-current="page"]:not(.btn-nav-cta) {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    box-shadow: none;
  }

  .site-nav .btn-nav-cta {
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .btn-header {
    display: inline-flex !important;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    margin-bottom: 0;
  }
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--side-padding) 48px;
}


main.home-main {
  max-width: none;
  padding: 0;
  width: 100%;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2rem);
}

h2 {
  font-size: 1.5rem;
  margin-top: 40px;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 16px;
}

.text-muted {
  color: var(--muted);
}

.gem {
  color: var(--gem);
  font-weight: 600;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(29, 158, 117, 0.12);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-card);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn:active {
  transform: translateY(4px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 0 var(--gold-shadow);
}

.btn-primary:active {
  box-shadow: none;
}

.btn-wide {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .btn-wide-desktop-auto {
    width: auto;
  }
}

/* —— Home (Stitch) —— */
.home-section {
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.home-section__inner {
  max-width: var(--max-home);
  margin: 0 auto;
}

.hero-section {
  padding: 28px var(--side-padding) 24px;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.875rem, 7vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 22rem;
}

.hero-meta {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-copy .btn-primary {
  width: 100%;
}

.hero-carousel {
  margin-top: 32px;
  width: 100%;
  max-width: 100%;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.phone--solo {
  position: relative;
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 14px 11px 16px;
  background: var(--navy);
  border: 3px solid var(--navy);
  border-radius: clamp(28px, 4vw, 40px);
  box-shadow: 0 20px 48px rgba(8, 25, 47, 0.18);
}

.phone--solo::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(48px, 12vw, 64px);
  height: clamp(12px, 2.5vw, 16px);
  background: var(--navy);
  border-radius: var(--radius-pill);
  z-index: 2;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  --carousel-h: clamp(420px, 75vh, 680px);
  --carousel-max-w: calc(100vw - 54px);
  width: min(calc(var(--carousel-h) * 1080 / 2340), var(--carousel-max-w));
  height: min(var(--carousel-h), calc(min(calc(var(--carousel-h) * 1080 / 2340), var(--carousel-max-w)) * 2340 / 1080));
  margin: 0 auto;
  aspect-ratio: 1080 / 2340;
  border-radius: clamp(16px, 2.5vw, 22px);
  overflow: hidden;
  background: var(--white);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  height: 8px;
  width: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: #e5d7b7;
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 20px;
  background: var(--navy);
}

.carousel-dot:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.hero-grid {
  max-width: var(--max-home);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero-section {
    padding: 72px clamp(16px, 4vw, 64px) 48px;
    text-align: left;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.12;
    max-width: 14ch;
  }

  .hero-sub {
    font-size: 1.125rem;
    max-width: 32rem;
    margin-left: 0;
    margin-bottom: 32px;
  }

  .hero-copy .btn-primary {
    width: auto;
    padding: 16px 32px;
  }

  .hero-meta {
    text-align: left;
    font-size: 0.75rem;
  }

  .hero-carousel {
    margin-top: 0;
    align-self: center;
    width: 100%;
  }

  .carousel-dots {
    position: relative;
    margin-top: 16px;
  }

  .carousel-dot.is-active {
    width: 28px;
  }
}

.features-section {
  padding: 32px var(--side-padding) 40px;
}

.features-intro {
  text-align: center;
  margin-bottom: 20px;
}

.features-intro h2 {
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.features-intro p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--max-home);
  margin: 0 auto;
}

.feature-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 2px 0 var(--card-slab);
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon--gold {
  background: rgba(242, 166, 35, 0.2);
  color: var(--gold-shadow);
}

.feature-icon--teal {
  background: rgba(29, 158, 117, 0.2);
  color: var(--teal);
}

.feature-icon--gem {
  background: rgba(107, 63, 160, 0.2);
  color: var(--gem);
}

.feature-icon--navy {
  background: rgba(8, 25, 47, 0.12);
  color: var(--navy);
}

@media (min-width: 900px) {
  .features-section {
    padding: 48px clamp(16px, 4vw, 64px) 56px;
  }

  .features-intro {
    margin-bottom: 40px;
  }

  .features-intro h2 {
    font-size: 1.875rem;
  }

  .features-intro p {
    font-size: 1rem;
  }

  .feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .feature-card {
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 3px 0 var(--card-slab);
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }
}

.fair-band {
  margin: 12px var(--side-padding) 0;
  max-width: calc(var(--max-home) - 32px);
  margin-inline: auto;
  padding: 20px;
  background: var(--navy);
  border: 2px solid #152b4b;
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 0 4px 0 rgba(8, 25, 47, 0.15);
}

.fair-band p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.55;
}

.fair-band .fair-highlight {
  color: var(--gold);
  font-weight: 600;
}

.fair-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fair-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.2);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fair-icon svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 900px) {
  .fair-band {
    margin-top: 24px;
    padding: 20px 32px;
    max-width: var(--max-home);
    width: calc(100% - clamp(32px, 8vw, 128px));
  }

  .fair-band-inner {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    text-align: left;
  }

  .fair-band p {
    font-size: 1rem;
  }
}

.cta-section {
  padding: 36px var(--side-padding) 48px;
  text-align: center;
}

.cta-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-section .btn-primary {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .cta-section {
    padding: 64px var(--side-padding) 80px;
  }

  .cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 24px;
  }

  .cta-section .btn-primary {
    width: auto;
    padding: 16px 40px;
  }
}

.site-footer {
  border-top: 1px solid #eddfbd;
  background: var(--cream-footer);
  padding: 32px var(--side-padding);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-home);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

@media (min-width: 900px) {
  .site-footer {
    padding: 32px clamp(16px, 4vw, 64px);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .footer-copy {
    font-size: 0.875rem;
  }
}

.page-title-block {
  margin-bottom: 24px;
}

.toc {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--navy);
  font-weight: 500;
}

.rule-section {
  scroll-margin-top: 80px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 16px 0 24px;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(8, 25, 47, 0.1);
}

table.data-table th {
  font-weight: 600;
  background: var(--white);
}

table.data-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.6);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.utc-hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}

.faq dt {
  font-weight: 600;
  margin-top: 20px;
}

.faq dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.coming-soon {
  text-align: center;
  padding: 48px 24px;
}

.coming-soon .card {
  display: inline-block;
  max-width: 28rem;
}

.layout-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* Decorative line-art backgrounds (Stitch-style, margin placement) */
.page-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-doodles::before,
.page-doodles::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

/* Home — mobile: single margin sheet */
.page-doodles--home::before {
  top: 0;
  height: 100%;
  min-height: 100%;
  background-image: url("../img/bg-hero-mobile.svg");
  background-position: top center;
}

.page-doodles--home::after {
  display: none;
}

@media (min-width: 900px) {
  .page-doodles--home::before {
    top: 0;
    height: 58%;
    min-height: 520px;
    max-height: 880px;
    background-image: url("../img/bg-hero.svg");
    background-position: top center;
  }

  .page-doodles--home::after {
    display: block;
    top: 42%;
    bottom: 0;
    background-image: url("../img/bg-sections.svg");
    background-position: top center;
  }
}

/* Inner pages — corners only */
.page-doodles--inner::before {
  top: 0;
  height: 100%;
  min-height: 100%;
  background-image: url("../img/bg-page.svg");
  background-position: top center;
}

.page-doodles--inner::after {
  display: none;
}

.layout-page > :not(.page-doodles) {
  position: relative;
  z-index: 1;
}

ul.check-list {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

ul.check-list li {
  margin-bottom: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
