@import url("./theme.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
svg, img { display: block; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
.page-shell { width: min(1440px, 100%); margin: auto; padding: 0 clamp(1.25rem, 5.3vw, 5rem); }
.skip-link { position: fixed; top: 1rem; left: 1rem; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: var(--accent); color: #111; z-index: 10; }
.skip-link:focus { width: auto; height: auto; padding: .7rem 1rem; clip-path: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-symbol { width: 36px; height: 36px; }
.brand-name { font-size: 1.65rem; line-height: 1; font-weight: 600; letter-spacing: -.065em; }
.brand-name > span { font-weight: 350; }
nav { display: flex; gap: 2rem; font-size: .875rem; color: #c9ccc2; }
nav a, .parent-link, .text-link, .footer-controls a { transition: color .2s; }
nav a:hover, .parent-link:hover, .text-link:hover, .footer-controls a:hover { color: var(--accent); }
.parent-link { font-size: .875rem; }
.parent-link span { color: var(--accent); margin-left: .9rem; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 0 3rem; padding-top: 3.8rem; }
.hero-copy { padding-top: 3rem; }
.hero h1 { font-size: clamp(1.85rem, 4.2vw, 4.15rem); }
.eyebrow { color: var(--muted); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; line-height: 1.6; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 .6rem .1rem 0; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(3.7rem, 5.5vw, 5.3rem); font-weight: 450; letter-spacing: -.063em; line-height: 1.08; margin-top: 1.8rem; }
.serif-word { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.055em; }
.hero-description { max-width: 440px; margin-top: 1.8rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; padding: .9rem 1.2rem; border-radius: 3px; background: var(--accent); color: #20251c; font-size: .875rem; transition: background .2s; }
.button:hover { background: #e7edda; }
.button span { font-size: 1.2rem; }
.text-link { display: inline-flex; align-items: center; gap: 1.4rem; font-size: .875rem; line-height: 1.5; padding: .6rem 0; border-bottom: 1px solid #69755a; }
.text-link span { color: var(--accent); }
.hero-note { margin-top: 1.5rem; color: var(--subtle); font-size: .75rem; }
.hero-note a { border-bottom: 1px solid var(--line); }
.product-category { color: #c6f432; }
.product-category > span { display: inline-block; margin-left: 1rem; color: var(--subtle); border-left: 1px solid var(--line); padding-left: 1rem; font-size: .625rem; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hero-pillars > span { border: 1px solid var(--line); padding: .3rem .6rem; border-radius: 4px; color: #c9ccc2; font-size: .6875rem; }
.hero .button { background: #c6f432; }
.hero .button:hover { background: #d5ff64; }
.product-preview { align-self: center; min-width: 0; padding-top: .3rem; }
.preview-topline, figcaption { display: flex; justify-content: space-between; gap: 1rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--subtle); font-size: .625rem; line-height: 1.6; }
.preview-topline { letter-spacing: .04em; }
.preview-stage { position: relative; min-height: 640px; padding: 24px 0; display: grid; align-items: center; background: linear-gradient(#30362d55 1px, transparent 1px), linear-gradient(90deg, #30362d55 1px, transparent 1px); background-size: 48px 48px; border-radius: 8px; margin: 12px 0; }
.hero-baseline { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--subtle); }
.hero-baseline > span:first-child { font-family: ui-monospace, monospace; font-size: .625rem; letter-spacing: .06em; }
.section-grid { display: grid; grid-template-columns: 1fr 2.25fr; gap: 3rem; padding: 5rem 0; }
.section-label { padding-top: .6rem; }
h2 { font-size: clamp(2.1rem, 3.2vw, 2.9rem); font-weight: 450; letter-spacing: -.043em; line-height: 1.25; }
.muted { color: var(--muted); }
.section-description { max-width: 625px; margin-top: 1.5rem; color: var(--muted); }
.principle { margin-top: 1.7rem; color: #cdd2c3; font-size: .875rem; border-left: 1px solid #758561; padding-left: 1rem; line-height: 1.8; }
.section-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.small-note { font-size: .75rem; color: var(--subtle); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 5px; margin-top: 2.4rem; overflow: hidden; }
.feature-card { padding: 2.2rem 1.8rem 1.5rem; min-width: 0; background: var(--surface); display: flex; flex-direction: column; }
.feature-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; }
.feature-number { color: var(--subtle); font-size: .625rem; font-family: ui-monospace, monospace; letter-spacing: .04em; }
.feature-icon { width: 36px; height: 36px; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.45rem; font-weight: 450; letter-spacing: -.035em; line-height: 1.3; }
.feature-card > p { color: var(--muted); font-size: .875rem; margin-top: 1rem; margin-bottom: 1.8rem; }
.feature-detail { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--subtle); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; font-size: .625rem; }
.feature-detail b { color: var(--accent); font-weight: 400; margin-left: .5rem; }
.context-section { margin-top: 1rem; }
.context-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.context-list > div { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.list-index { color: var(--subtle); font-size: .625rem; font-family: ui-monospace, monospace; }
.context-list strong { display: block; font-weight: 450; font-size: 1rem; }
.context-list p > span { display: block; color: var(--muted); font-size: .875rem; margin-top: .15rem; }
.launch-section { display: grid; grid-template-columns: 1.9fr 1fr; gap: 3rem; padding: 3rem 3.2rem; border-radius: 5px; background: #e7eade; color: #20251c; }
.launch-section .eyebrow { color: #555f4a; }
.label-cross { font-size: 1.4rem; vertical-align: middle; margin-right: .7rem; font-weight: 300; color: #697957; }
.launch-copy h2 { margin-top: 1.5rem; font-size: clamp(2.5rem, 3.5vw, 3.5rem); }
.launch-copy > p:not(.eyebrow) { color: #555f4a; max-width: 510px; margin-top: 1.4rem; font-size: .9375rem; }
.download-button { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: .8rem; max-width: 100%; margin-top: 1.8rem; padding: .85rem 1rem; border: 1px solid #afb99f; border-radius: 4px; background: #dde3d1; color: #46513c; font-size: .875rem; cursor: not-allowed; }
.download-button svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.download-status { border-left: 1px solid #b6c0a8; padding-left: .8rem; font-size: .75rem; color: #5b6551; }
.launch-copy > .download-note { font-size: .75rem !important; margin-top: .7rem !important; }
.launch-aside { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; }
.launch-app-tile { display: grid; place-items: center; width: 190px; padding: 12px; margin-bottom: 1.5rem; }
.launch-app-tile img { width: 100%; height: auto; }
.launch-signature { font-family: ui-monospace, monospace; color: #555f4a; font-size: .625rem; letter-spacing: .06em; margin-bottom: 1.3rem; }
.launch-aside .text-link { border-color: #a0ad8d; }
.launch-aside .text-link span { color: #697957; }
.launch-aside .text-link:hover { color: #60734a; }
.launch-aside .text-link:focus-visible { outline-color: #445732; }
.origin-section { padding: 4rem 0; }
.origin-section > div { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.2rem; }
.origin-section > p:last-child { color: var(--muted); margin-top: 1rem; font-size: .9375rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.footer-brand .brand-name { font-size: 1.4rem; }
.footer-brand .brand-symbol { width: 30px; height: 30px; }
.copyright { font-size: .75rem; color: var(--subtle); }
.footer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.5rem; font-size: .875rem; color: var(--muted); }
.footer-controls a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }

.info-page { width: min(100%, 72ch); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); overflow-wrap: anywhere; }
.info-page h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.info-page h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); letter-spacing: -.025em; }
.info-intro { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.info-page section { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.info-page section p, .info-page ul, .info-page ol { margin: .75rem 0 0; }
.info-page ul, .info-page ol { padding-inline-start: 1.4rem; }
.info-page li + li { margin-top: .45rem; }
.info-page a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.info-page .button { margin-top: 1.25rem; }
.not-found { min-height: 75vh; display: grid; place-content: center; gap: 1.5rem; padding: 3rem 0; }
.not-found h1 { margin: 0; }
.not-found p { color: var(--muted); }


@media (max-width: 1100px) {
  .hero { gap: 0 1.5rem; }
  .feature-card { padding: 1.7rem 1.3rem 1.2rem; }
  .feature-card h3 { font-size: 1.25rem; }
  .launch-section { padding: 2.5rem; gap: 2rem; }
}
@media (max-width: 850px) {
  .site-header { min-height: 92px; flex-wrap: wrap; gap: .8rem 1rem; padding: 1.25rem 0; }
  .brand-name { font-size: 1.45rem; }
  .brand-symbol { width: 30px; height: 30px; }
  .parent-link { margin-left: auto; font-size: .8125rem; }
  nav { order: 3; width: 100%; gap: 1.7rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.8rem; }
  .hero-copy { padding-top: 0; }
  .hero-description { max-width: 470px; font-size: 1rem; }
  .product-preview { width: min(550px, 100%); margin: 2rem auto 0; }
  .hero-baseline { margin-top: 2.3rem; }
  .section-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 0; }
  .section-label { padding-top: 0; }
  h2 { font-size: clamp(2rem, 5vw, 2.6rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.8rem; }
  .feature-heading { margin-bottom: 1.5rem; }
  .feature-card h3 { font-size: 1.5rem; }
  .feature-card > p { max-width: 500px; }
  .feature-detail { font-size: .75rem; }
  .launch-section { grid-template-columns: 1fr; }
  .launch-aside { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #bdc5af; padding-top: 1rem; }
  .launch-app-tile { width: 112px; padding: 0; margin-bottom: 0; }

  .launch-signature { display: none; }
  .origin-section > div { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-footer { flex-wrap: wrap; }
  .footer-controls { width: 100%; justify-content: space-between; }
}
@media (max-width: 500px) {
  .parent-link { font-size: .75rem; }
  .parent-link span { margin-left: .35rem; }
  .hero .eyebrow { font-size: .6875rem; }
  .hero-actions { gap: 1.2rem; }
  .hero { padding-top: 1.8rem; }
  .hero h1 { margin-top: 1rem; }
  .hero-description { margin-top: 1rem; font-size: .9375rem; }
  .hero-pillars { margin-top: 1rem; gap: .35rem; }
  .hero-pillars > span { font-size: .625rem; padding: .25rem .45rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-note { margin-top: 1rem; }
  .preview-stage { min-height: 0; padding: 16px 0; }
  figcaption { font-size: .5625rem; flex-wrap: wrap; gap: .3rem; }
  .hero-baseline { flex-wrap: wrap; gap: .5rem; font-size: .6875rem; }
  .small-note { max-width: 130px; text-align: right; font-size: .6875rem; }
  .feature-card { padding: 1.5rem; }
  .launch-section { padding: 1.8rem; }
  .launch-copy h2 { font-size: clamp(2rem, 7.5vw, 2.7rem); }
  .download-button { font-size: .8125rem; }
  .download-status { border-left: none; padding-left: 0; }
  .launch-aside { justify-content: center; }
  .origin-section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Outlined Emergence lockups preserve the approved typography. */
.brand-lockup { width: 100px; height: auto; }
.footer-brand .brand-lockup { width: 88px; }
@media (max-width: 850px) { .brand-lockup { width: 88px; } }

/* Product imagery comes from the original Stitch screens. */
.preview-stage { min-height: 0; padding: 24px 12px 16px; }
.screen-frame { display: block; width: min(300px, 100%); margin: auto; overflow: hidden; border: 1px solid #363b32; border-radius: 22px; background: #0b0b0f; }
.screen-frame img { width: 100%; height: auto; }
.hero-screen { width: min(300px, 100%); box-shadow: 0 18px 48px #0003; }
.preview-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; width: min(300px, 100%); margin: 12px auto 0; color: var(--subtle); font: .5625rem/1.7 ui-monospace, monospace; }
.preview-source a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.feature-screen { margin: 0 0 1.8rem; }
.feature-screen figcaption { width: min(300px, 100%); margin: .8rem auto 0; flex-wrap: wrap; font-size: .875rem; }
.feature-screen figcaption a { color: var(--accent); border-bottom: 1px solid var(--line); }
@media (max-width: 500px) { .feature-card { padding: 1.25rem; } .preview-stage { padding: 16px 12px; } }
