:root {
  color-scheme: light;
  --navy: #2157a1;
  --blue: #1775ff;
  --green: #21a659;
  --orange: #db5c1f;
  --ink: #0f1729;
  --muted: #526b8a;
  --line: #d6e6f5;
  --ice: #edf7ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

nav a:hover,
nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: min(760px, 78svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: url("/assets/ski-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 41, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 126px 0 84px;
}

.status-label,
.section-kicker {
  margin: 0 0 14px;
  color: #d9ebff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-label {
  display: inline-block;
  text-transform: none;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(33, 166, 89, 0.9);
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: 72px;
  line-height: 1.05;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 32px;
  font-size: 24px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 117, 255, 0.3);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #0f65e4;
}

.intro-section {
  padding: 84px 20px 94px;
  background: var(--white);
}

.section-inner,
.download-inner,
footer {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.intro-section .section-kicker,
.download-section .section-kicker {
  color: var(--blue);
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: 40px;
  line-height: 1.25;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 58px;
}

.feature-grid article {
  padding-top: 22px;
  border-top: 3px solid var(--line);
}

.feature-grid article:nth-child(2) {
  border-color: var(--green);
}

.feature-grid article:nth-child(3) {
  border-color: var(--orange);
}

.feature-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.feature-grid h3 {
  margin: 14px 0 10px;
  font-size: 23px;
}

.feature-grid p,
.download-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.download-section {
  padding: 68px 20px;
  background: var(--ice);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.download-inner img {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 72, 126, 0.18);
}

.download-inner h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.store-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  color: var(--white);
  background: var(--navy);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.store-link:hover,
.store-link:focus-visible {
  background: #174784;
  border-color: #174784;
  outline: 3px solid rgba(23, 117, 255, 0.22);
  outline-offset: 2px;
}

footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 20px;
  color: #6d7d91;
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 68px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  nav a:first-child {
    display: none;
  }

  nav {
    gap: 18px;
  }

  .hero {
    min-height: 76svh;
    background-position: 64% center;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding: 112px 0 62px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 20px;
    line-height: 1.55;
  }

  .intro-section {
    padding: 58px 18px 64px;
  }

  h2 {
    font-size: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 42px;
  }

  .download-section {
    padding: 48px 18px;
  }

  .download-inner {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
  }

  .download-inner img {
    width: 78px;
    height: 78px;
  }

  .download-inner h2 {
    font-size: 27px;
  }

  .store-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 18px;
  }
}

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

.app-store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: auto;
}

.app-store-badge.hero-badge img {
  height: 54px;
}

.app-store-badge.download-badge img {
  height: 48px;
}

.app-store-badge:focus-visible {
  outline: 3px solid rgba(23, 117, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .download-inner .app-store-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .download-inner .app-store-badge img {
    width: auto;
    height: 48px;
  }
}

/* ---- SEO phase one (2026-10-15): shared additions, existing rules above unchanged ---- */

.feature-grid.has-shots article {
  padding-top: 0;
  border-top: 0;
}

.feature-shot {
  width: min(260px, 100%);
  margin: 0 auto 28px;
  padding: 0;
  border: 8px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(19, 72, 126, 0.18);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-body {
  padding-top: 22px;
  border-top: 3px solid var(--line);
}

.feature-grid.has-shots article:nth-child(2) .feature-body {
  border-color: var(--green);
}

.feature-grid.has-shots article:nth-child(3) .feature-body {
  border-color: var(--orange);
}

.content-section {
  padding: 76px 20px;
  border-top: 1px solid var(--line);
}

.content-section .section-kicker {
  color: var(--blue);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}

.faq-list {
  margin: 36px 0 0;
}

.faq-list dt {
  margin-top: 26px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero h1.hero-title {
  max-width: 960px;
  font-size: 64px;
  line-height: 1.12;
}

.footer-guides a,
footer a {
  text-decoration-color: rgba(109, 125, 145, 0.5);
}

/* Inner pages */

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image: url("/assets/ski-hero.jpg");
  background-size: cover;
  background-position: center;
}

.page-hero .hero-content {
  padding: 136px 0 60px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 48px;
  line-height: 1.2;
}

.page-hero .section-kicker {
  color: #d9ebff;
}

.article {
  padding: 64px 20px 76px;
}

.article-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.article h2 {
  margin: 52px 0 16px;
  font-size: 28px;
  line-height: 1.35;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li,
.article dd {
  font-size: 17px;
  line-height: 1.85;
}

.article p {
  margin: 0 0 16px;
  color: #26364d;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: #26364d;
}

.article li + li {
  margin-top: 8px;
}

.article ol.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.article ol.steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
}

.article ol.steps li + li {
  margin-top: 14px;
}

.article ol.steps li::before {
  content: counter(step);
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.article ul.checklist {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  list-style: none;
}

.article ul.checklist li {
  position: relative;
  padding-left: 36px;
}

.article ul.checklist li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  background: var(--white);
}

.notice {
  margin: 36px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff6f1;
}

.article .notice p {
  margin: 0;
}

.example-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article p.example-label {
  color: var(--muted);
  font-size: 14px;
}

.template-block {
  margin: 0 0 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article .faq-list dd {
  color: #26364d;
}

.related {
  padding: 32px 20px;
  border-bottom: 1px solid var(--line);
}

.related p {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.related a {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 760px) {
  .audience-list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .content-section {
    padding: 56px 18px;
  }

  .feature-shot {
    width: min(240px, 100%);
  }

  .hero h1.hero-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .page-hero .hero-content {
    padding: 108px 0 40px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .article {
    padding: 44px 18px 56px;
  }

  .article h2 {
    margin-top: 40px;
    font-size: 24px;
  }

  .article p,
  .article li,
  .article dd {
    font-size: 16px;
  }

  .related {
    padding: 28px 18px;
  }
}
