html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--site-header-offset) + env(safe-area-inset-top, 0));
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #ecf1f8;
  --text: #1e2a3a;
  --text-light: #5a687c;
  --primary: #1f4f8f;
  --primary-dark: #14355f;
  --border: #d4deea;
  --shadow: 0 10px 26px rgba(17, 44, 79, 0.12);
  --space-page: 1.25rem;
  --space-section: 1.5rem;
  --site-header-offset: 3.5rem;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

main {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-page);
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-logo {
  display: block;
  height: 1.5em;
  width: auto;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.hero {
  background: linear-gradient(145deg, #f7faff 0%, #dce8f7 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  padding-block: var(--space-section) 1rem;
}

.hero-slideshow {
  display: grid;
  width: 100%;
  border: 1px solid #8ea9cc;
  border-radius: 12px;
  overflow: hidden;
  background: #dce8f7;
  box-shadow: var(--shadow);
  line-height: 0;
}

.hero-slideshow img.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slideshow img.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-eyebrow {
  margin: 0;
}

.hero-title {
  margin: 0;
}

.hero-intro {
  margin: 0;
}

.hero-actions {
  margin-top: 0.25rem;
}

.app-store-link {
  display: inline-block;
  line-height: 0;
}

.app-store-link img {
  display: block;
  height: 40px;
  width: auto;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Quicksand", Helvetica, Arial, sans-serif;
  color: #444;
  font-weight: 400;
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 0;
}

.hero-intro a {
  color: var(--primary);
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(31, 79, 143, 0.08);
}


.section-heading--accent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-heading-bar {
  flex-shrink: 0;
  width: 5px;
  height: 0.92em;
  border-radius: 1px;
}

.section-heading--accent-red .section-heading-bar {
  background-color: #e8232a;
}

.section-heading--accent-blue .section-heading-bar {
  background-color: #1a7fd4;
}

.section {
  padding: var(--space-section) 0;
}

.section[id] {
  scroll-margin-top: calc(var(--site-header-offset) + env(safe-area-inset-top, 0));
}

.hero + .section,
.section + .section {
  padding-top: 0.75rem;
}

.section-intro {
  color: var(--text-light);
  margin-bottom: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.media-placeholder {
  height: 140px;
  border-radius: 10px;
  border: 2px dashed #8ea9cc;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  color: #4f6687;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.feature-media-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 2752 / 1536;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

.feature-media-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-media-frame {
  min-width: 0;
}

.feature-media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.indicator-accordion {
  display: grid;
  gap: 0.6rem;
}

.indicator-accordion details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.65rem 0.85rem;
}

.indicator-accordion summary {
  cursor: pointer;
  font-family: "Quicksand", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--primary-dark);
}

.indicator-accordion details p {
  margin: 0.7rem 0 0;
}

.indicator-accordion details ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}

.reading-table-wrap {
  margin-top: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.reading-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
}

.reading-table th,
.reading-table td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.reading-table th {
  background: #f3f7fd;
  font-family: "Quicksand", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.section-muted {
  background: #f0f5fc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.news-date {
  margin: 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.site-footer {
  background: #15253a;
  color: #d3dfef;
  font-size: 0.5rem;
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cde4ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin-bottom: 0.4rem;
}

.legal-meta {
  color: var(--text-light);
  margin: 0 0 2rem;
}

.legal-section {
  margin-bottom: 1.8rem;
}

.legal-section h2 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 0.6rem;
}

.legal-section p,
.legal-section ul {
  max-width: 70ch;
}

.legal-section ul {
  padding-left: 1.2rem;
}

.legal-section a {
  color: var(--primary);
}

.download-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
}

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

@media (min-width: 768px) {
  :root {
    --space-page: 1.5rem;
    --space-section: 2rem;
  }

  .brand {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 32px;
    line-height: 38px;
  }

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

@media (min-width: 961px) {
  :root {
    --space-page: 1.5rem;
  }

  h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.85fr;
    grid-template-areas:
      "eyebrow slideshow"
      "title slideshow"
      "intro slideshow"
      "actions slideshow";
    gap: 1rem 2rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-eyebrow {
    grid-area: eyebrow;
  }

  .hero-title {
    grid-area: title;
  }

  .hero-slideshow {
    grid-area: slideshow;
    align-self: center;
  }

  .hero-intro {
    grid-area: intro;
  }

  .hero-actions {
    grid-area: actions;
  }

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

  .feature-media-group {
    grid-template-columns: 1179fr 2038fr;
    align-items: stretch;
    gap: 0.75rem;
  }

  .feature-media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }

  .feature-media-frame .feature-media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    padding: 1rem;
  }
}
