:root {
  color-scheme: light dark;
  --color-page: #fbfaf6;
  --color-background: #f7f5ee;
  --color-surface: #fffefa;
  --color-text: #292b26;
  --color-text-secondary: #6d7066;
  --color-separator: #e5e0d4;
  --color-footer-separator: #eceae2;
  --color-shadow: #292b2614;
  --font-display: ui-serif, Georgia, serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-text);
  color: var(--color-text);
  background: var(--color-page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-page: #1d201d;
  --color-background: #232722;
  --color-surface: #282c27;
  --color-text: #f5f2e9;
  --color-text-secondary: #b7baaf;
  --color-separator: #444b40;
  --color-footer-separator: #383e35;
  --color-shadow: #00000040;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-page: #1d201d;
    --color-background: #232722;
    --color-surface: #282c27;
    --color-text: #f5f2e9;
    --color-text-secondary: #b7baaf;
    --color-separator: #444b40;
    --color-footer-separator: #383e35;
    --color-shadow: #00000040;
  }
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-text); outline-offset: 5px; }
p { line-height: 1.65; }
h1, h2, h3, .brand { font-family: var(--font-display); }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { max-width: 1280px; margin: 40px auto 0; min-height: 40px; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.header-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.brand { font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 34px; text-decoration: none; }
.platform, .site-footer { color: var(--color-text-secondary); font-size: 13px; line-height: 20px; }
.theme-toggle { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.theme-toggle:hover { background: var(--color-background); }
.theme-toggle [data-theme-icon] { font-size: 18px; line-height: 1; }
.site-shell { padding: 0 80px 32px; }
.hero { display: flex; align-items: center; justify-content: center; gap: 100px; min-height: 724px; }
.hero-copy { display: flex; flex-direction: column; gap: 34px; width: 650px; position: relative; top: -64px; }
.hero h1 { font-size: 71px; font-weight: 600; letter-spacing: -.035em; line-height: 74px; margin: 0; }
.hero-description { font-size: 22px; line-height: 32px; margin: 0; }
.development-note { font-size: 15px; line-height: 23px; margin: -12px 0 0; color: var(--color-text-secondary); }
.phone { position: relative; flex-shrink: 0; width: 329px; height: 688px; left: -24px; border: 2px solid #454740; border-radius: 50px; background: #292b26; box-shadow: 0 24px 40px var(--color-shadow); }
.phone-screen { position: absolute; top: 8px; left: 8px; width: 308px; height: 667px; border-radius: 40px; background: var(--color-background); object-fit: contain; }
.phone-island { position: absolute; top: 17px; left: 114px; width: 96px; height: 24px; border-radius: 20px; background: #171815; }
.site-footer { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--color-footer-separator); min-height: 64px; padding: 24px 0 8px; }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.skip-link { position: absolute; left: 24px; top: -100px; background: var(--color-surface); padding: 12px; z-index: 3; }
.skip-link:focus { top: 16px; }
body:not(.site-shell) { padding-inline: 24px; }
body:not(.site-shell) .site-header, body:not(.site-shell) .site-footer { max-width: 1080px; }
.document { max-width: 720px; padding: 64px 0 80px; margin: auto; }
.document h1 { font-size: clamp(44px, 7vw, 64px); line-height: 1.1; letter-spacing: -.035em; }
.document h2 { font-size: 28px; margin-top: 48px; }
.document h3 { font-size: 22px; margin-top: 32px; }
.document .intro { font-size: 18px; color: var(--color-text-secondary); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-secondary); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 25px; border-radius: 30px; background: var(--color-text); color: var(--color-surface); text-decoration: none; min-height: 48px; }
@media (min-width: 1001px) {
  .landing { min-height: 100svh; display: flex; flex-direction: column; }
  .landing .site-header, .landing .site-footer { width: 100%; flex-shrink: 0; }
  .hero { flex: 1; min-height: 0; padding-block: 18px; }
  .hero-copy { top: clamp(-64px, calc((800px - 100svh) * .64), 0px); }
  .phone { height: clamp(360px, calc(100svh - 212px), 688px); width: auto; aspect-ratio: 329 / 688; border-radius: 15.2% / 7.27%; }
  .phone-screen { left: 2.462%; top: 1.17%; width: 94.769%; height: 97.515%; border-radius: 12.987% / 5.997%; }
  .phone-island { left: 35.077%; top: 2.485%; width: 29.538%; height: 3.509%; }
}
@media (min-width: 1001px) and (max-width: 1279px) {
  .site-shell { padding-inline: 48px; }
  .hero { gap: 48px; }
  .hero-copy { width: auto; flex: 1; }
  .hero h1 { font-size: clamp(48px, 5vw, 64px); line-height: 1.05; }
  .phone { left: 0; }
}
@media (max-width: 1000px) {
  .site-shell { padding: 0 24px 32px; }
  .site-header { margin-top: 28px; }
  .brand { font-size: 24px; line-height: 30px; }
  .site-shell .header-actions { display: contents; }
  .site-shell .platform { order: 3; flex-basis: 100%; }
  .hero { flex-direction: column; gap: 36px; min-height: 0; padding: 56px 0 48px; }
  .hero-copy { align-items: center; text-align: center; width: 100%; top: 0; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 41px); line-height: 44px; }
  .hero-description { font-size: 18px; line-height: 28px; }
  .development-note { margin-top: -8px; }
  .phone { width: min(340px, 100%); height: auto; aspect-ratio: 329 / 688; border-radius: 15.2% / 7.27%; left: 0; box-shadow: 0 18px 30px var(--color-shadow); }
  .phone-screen { left: 2.462%; top: 1.17%; width: 94.769%; height: 97.515%; border-radius: 12.987% / 5.997%; }
  .phone-island { left: 35.077%; top: 2.485%; width: 29.538%; height: 3.509%; }
  .site-shell .site-footer { align-items: stretch; position: relative; padding-bottom: 8px; }
  .site-shell .site-footer > span { position: absolute; top: 24px; left: 0; }
  .site-shell .site-footer nav { width: 100%; flex-direction: column; gap: 16px; }
  .site-shell .site-footer nav a:first-child { align-self: flex-end; }
  .site-shell .site-footer nav a:last-child { align-self: flex-start; }
}
@media (max-width: 359px) {
  .platform { font-size: 12px; }
}
