:root {
  color-scheme: light;
  --navy: #18304b;
  --navy-soft: #284761;
  --cream: #f8f4eb;
  --cream-deep: #efe7d8;
  --paper: #fffdf9;
  --white: #ffffff;
  --text: #172a3d;
  --muted: #62707b;
  --line: #e3dccf;
  --aqua: #2fc7d3;
  --aqua-soft: #e4f8f8;
  --purple: #7256b5;
  --shadow: 0 18px 50px rgba(24, 48, 75, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:focus-visible,
.store-status:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 48, 75, 0.08);
  background: rgba(248, 244, 235, 0.94);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 12px;
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a,
.footer-links a {
  color: var(--navy-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover,
.support-links a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding-block: clamp(72px, 9vw, 116px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #177c87;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.store-status,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border-radius: 14px;
  font-weight: 750;
}

.store-status {
  cursor: not-allowed;
  border: 1px solid #c8c2b8;
  background: #e8e3da;
  color: #77736d;
  user-select: none;
}

.store-status svg {
  width: 20px;
  fill: currentColor;
}

.text-link {
  color: var(--navy);
  font-weight: 750;
}

.availability-note {
  max-width: 560px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 450px;
  place-items: center;
  isolation: isolate;
}

.logo-card {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 75, 0.08);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: var(--aqua-soft);
}

.orbit-one {
  width: 300px;
  height: 300px;
  top: 0;
  right: -28px;
}

.orbit-two {
  width: 180px;
  height: 180px;
  bottom: 6px;
  left: -24px;
  background: var(--cream-deep);
}

.study-pill {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(24, 48, 75, 0.1);
  color: var(--navy-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.pill-top {
  top: 42px;
  left: -22px;
}

.pill-bottom {
  right: -18px;
  bottom: 36px;
}

.section {
  padding-block: clamp(62px, 8vw, 96px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading > p:last-child,
.premium-copy > p,
.support-callout p,
.contact-card p,
.not-found > p {
  color: var(--muted);
}

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

.feature-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(24, 48, 75, 0.045);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 13px;
  background: var(--aqua-soft);
  color: #13737c;
  font-size: 0.76rem;
  font-weight: 850;
}

.premium-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 30px 56px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.premium-chip {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(114, 86, 181, 0.28);
  border-radius: 999px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
}

.premium-copy p,
.premium-note {
  margin-bottom: 0;
}

.benefit-list {
  display: grid;
  align-content: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 720;
}

.benefit-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: #117780;
}

.premium-note {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.support-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.support-callout h2,
.support-callout p {
  margin-bottom: 0;
}

.primary-button,
.secondary-button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  text-align: center;
  text-decoration: none;
}

.secondary-button {
  flex: 0 0 auto;
  border-color: var(--line);
  background: var(--paper);
  color: var(--navy);
}

.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: #f1eadf;
}

.footer-inner {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 28px;
}

.footer-inner > p {
  grid-column: 1 / -1;
  margin: -24px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.support-main {
  min-height: calc(100vh - 230px);
}

.support-hero {
  max-width: 860px;
  padding-block: clamp(70px, 10vw, 120px);
}

.support-hero > .lead {
  max-width: 700px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.55rem;
}

.contact-card .primary-button {
  margin-top: 12px;
}

.mail-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--aqua-soft);
  color: #147780;
  font-size: 1.25rem;
  font-weight: 850;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

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

.compact-footer .footer-inner {
  min-height: 112px;
}

.compact-footer .footer-inner > p {
  grid-column: auto;
  margin: 0;
}

.not-found {
  display: flex;
  min-height: 100vh;
  max-width: 680px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 60px;
}

.not-found img {
  margin-bottom: 28px;
  border-radius: 18px;
}

.not-found h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 7vw, 4rem);
}

.not-found .primary-button {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    width: min(100%, 560px);
    margin-inline: auto;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 14px;
  }

  nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    padding-block: 58px 72px;
  }

  .hero-actions,
  .store-status,
  .secondary-button {
    width: 100%;
  }

  .text-link {
    margin-inline: auto;
  }

  .hero-art {
    min-height: 350px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .logo-card {
    width: min(88%, 350px);
  }

  .pill-top {
    top: 20px;
    left: 0;
  }

  .pill-bottom {
    right: 0;
    bottom: 18px;
  }

  .feature-grid,
  .premium-card {
    grid-template-columns: 1fr;
  }

  .premium-note {
    grid-column: auto;
  }

  .support-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 28px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner > p,
  .compact-footer .footer-inner > p {
    grid-column: auto;
    margin: 0;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card .primary-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

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

  .study-pill {
    max-width: 178px;
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
