:root {
  color-scheme: light;
  --paper: #fafbf9;
  --surface: #ffffff;
  --ink: #172d2b;
  --muted: #64716e;
  --accent: #245e54;
  --line: #dfe6e1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid #658e75; outline-offset: 6px; border-radius: 4px; }
::selection { background: #d9e8dd; color: var(--ink); }
.shell { width: min(100% - 3rem, 920px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--ink); color: white; font-size: 0.875rem; font-weight: 600; }
.header-link { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.header-link:hover { color: var(--accent); text-decoration: underline; }
.home-main { padding-block: 6.75rem 7.5rem; max-width: 650px; }
.eyebrow { margin: 0 0 1.1rem; color: var(--accent); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 5.5vw, 3.65rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.055em; }
.intro { max-width: 37rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.app-list { margin: 3rem 0 0; padding: 0; list-style: none; }
.app-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.app-card:hover { border-color: #a2b8ac; box-shadow: 0 8px 30px #183c2d07; }
.app-icon { display: block; flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; }
.app-details { display: grid; gap: 0.375rem; }
.app-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.app-type { color: var(--muted); font-size: 0.875rem; }
.app-card-label { margin-left: auto; color: var(--accent); font-size: 0.875rem; white-space: nowrap; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.app-main { padding-block: 5.5rem 6rem; }
.app-hero { max-width: 600px; }
.app-icon-large { width: 92px; height: 92px; margin-bottom: 2rem; border-radius: 24px; box-shadow: 0 8px 20px #1d493011; }
.app-hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.app-hero .eyebrow { margin-bottom: 0.875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.875rem 1.25rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: white; font-size: 0.9375rem; font-weight: 550; line-height: 1.4; text-decoration: none; }
.button:hover { background: #1b4c44; }
.app-action { margin-top: 2rem; }
.app-information { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 4rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); }
.app-information div { display: grid; align-content: start; gap: 0.625rem; }
.app-information dt { font-size: 0.875rem; color: var(--muted); }
.app-information dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.document-main { max-width: 690px; padding-block: 4.5rem 5rem; }
.document-main h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.18; }
.document-body { margin-top: 2.75rem; }
.document-body section + section { margin-top: 2rem; }
.document-body h2 { margin: 0 0 0.75rem; font-size: 1.125rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; }
.document-body p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }

@media (max-width: 640px) {
  .shell { width: min(100% - 2.5rem, 920px); }
  .site-header { min-height: 82px; gap: 1rem; }
  .brand { font-size: 0.875rem; }
  .header-link { font-size: 0.875rem; }
  .home-main { padding-block: 4.5rem 5rem; }
  .intro { font-size: 1rem; }
  .app-list { margin-top: 2.25rem; }
  .app-card { gap: 1rem; padding: 1.125rem; border-radius: 16px; }
  .app-icon { width: 54px; height: 54px; border-radius: 14px; }
  .app-card-label { display: none; }
  .app-main { padding-block: 3.75rem 4.5rem; }
  .app-information { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .app-information div { gap: 0.375rem; }
  .document-main { padding-block: 3.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
