:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #ffffff;
  --ink: #13201f;
  --muted: #5d6b69;
  --line: #dce7e4;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e86f51;
  --gold: #f3b84f;
  --shadow: 0 24px 70px rgba(19, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 250, 249, 0.88);
  border-bottom: 1px solid rgba(220, 231, 228, 0.78);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
}

.site-header nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-header nav a:hover {
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(30px, 5vw, 62px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-text,
.workflow p,
.start p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--teal);
}

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

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: min(360px, calc(100% - 28px));
  padding: 10px 12px;
  color: white;
  background: rgba(19, 32, 31, 0.7);
  border-radius: 8px;
  font-size: 0.86rem;
}

.section,
.workflow,
.start {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

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

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--teal-dark);
  background: #d9f5ef;
  border-radius: 8px;
  font-weight: 800;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
  background: #eef6f3;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps strong {
  color: var(--teal-dark);
}

.steps span {
  color: var(--muted);
}

.start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: white;
}

.start .eyebrow,
.start p {
  color: #b7dfd7;
}

.start .button.primary {
  color: var(--ink);
  background: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--teal-dark);
  font-weight: 800;
}

.policy-page {
  background: white;
}

.policy-hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px) 32px;
}

.policy-hero h1 {
  max-width: 840px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.policy-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.policy-embed {
  padding: 0 clamp(20px, 5vw, 72px) clamp(48px, 7vw, 88px);
}

.policy-embed iframe {
  width: 100%;
  min-height: 76vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.directory-page {
  background: #f5f7f6;
}

.directory-hero {
  max-width: 980px;
}

.app-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px);
}

.app-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 130px;
  height: 130px;
  border: 24px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.app-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.app-card strong {
  max-width: 240px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.app-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-transform: uppercase;
}

.redbook-card {
  background: #a8323e;
}

.planner-card {
  background: #1f6f8b;
}

.notecraft-card {
  background: #5f7046;
}

.outpost-card {
  background: #26324b;
}

.app-policy {
  --app-bg: #f8f5f2;
  --app-ink: #151515;
  --app-muted: #66706c;
  --app-surface: #ffffff;
  --app-soft: #efe8e0;
  --app-accent: #a8323e;
  --app-accent-strong: #6f1d27;
  min-height: 100vh;
  color: var(--app-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    var(--app-bg);
}

.theme-redbook {
  --app-bg: #fbf3f0;
  --app-soft: #f4d8d3;
  --app-accent: #b63642;
  --app-accent-strong: #70212c;
}

.theme-planner {
  --app-bg: #eef8fb;
  --app-soft: #d3edf4;
  --app-accent: #14708d;
  --app-accent-strong: #0a4155;
}

.theme-notecraft {
  --app-bg: #f5f6ec;
  --app-soft: #e0e4ca;
  --app-accent: #657848;
  --app-accent-strong: #374526;
}

.theme-outpost {
  --app-bg: #f0f2f7;
  --app-soft: #d9dfef;
  --app-accent: #293753;
  --app-accent-strong: #11192b;
}

.policy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 4vw, 56px);
}

.back-link,
.policy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-weight: 800;
}

.back-link {
  color: var(--app-accent-strong);
  background: rgba(255, 255, 255, 0.7);
}

.policy-badge {
  color: white;
  background: var(--app-accent);
}

.policy-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  padding: 18px clamp(20px, 4vw, 56px) clamp(48px, 7vw, 82px);
}

.policy-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background: var(--app-accent-strong);
  border-radius: 8px;
}

.policy-sidebar h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.96;
}

.policy-sidebar p {
  color: rgba(255, 255, 255, 0.78);
}

.app-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--app-accent-strong);
  background: white;
  border-radius: 8px;
  font-weight: 800;
}

.policy-sidebar nav {
  display: grid;
  gap: 8px;
}

.policy-sidebar nav a {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-section {
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
}

.policy-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.03;
}

.policy-section h3 {
  color: var(--app-accent-strong);
}

.policy-section p,
.policy-section dd {
  color: var(--app-muted);
}

.policy-section a {
  color: var(--app-accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-panel {
  background: var(--app-soft);
}

.update-note {
  margin-bottom: 0;
  font-weight: 800;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  padding: 18px;
  background: white;
  border: 1px solid rgba(19, 32, 31, 0.1);
  border-radius: 8px;
}

.data-card h3 {
  margin-bottom: 16px;
}

.data-card dl {
  margin: 0;
}

.data-card dt {
  margin-top: 14px;
  font-weight: 800;
}

.data-card dt:first-child {
  margin-top: 0;
}

.data-card dd {
  margin: 4px 0 0;
}

.info-strip {
  display: grid;
  gap: 14px;
}

.info-strip article {
  padding: 18px 0 0;
  border-top: 1px solid rgba(19, 32, 31, 0.1);
}

.info-strip article:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-panel {
  background: var(--app-accent-strong);
  color: white;
}

.contact-panel h3,
.contact-panel p {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .app-directory,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .policy-shell {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
    min-height: auto;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .start,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-media figcaption {
    position: static;
    max-width: none;
    color: var(--ink);
    background: white;
    border-radius: 0;
  }

  .button {
    width: 100%;
  }

  .policy-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
