:root {
  --paper: #fffdf8;
  --surface: #ffffff;
  --ink: #232323;
  --muted: #66645f;
  --line: #ddd9d0;
  --blue: #236fc4;
  --blue-dark: #15599f;
  --yellow: #f7be34;
  --yellow-soft: #fff3bf;
  --lavender: #9a70e8;
  --sage: #65b95a;
  --orange: #ed8b2d;
  --teal: #35aaa6;
  --shadow: 0 20px 60px rgba(37, 39, 42, 0.14);
  --shell: min(1180px, calc(100% - 48px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 0.2em; }
a:hover { color: #0c477f; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  translate: 0 -160%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { translate: 0; }
:focus-visible { outline: 3px solid rgba(35, 111, 196, 0.36); outline-offset: 3px; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 217, 208, 0.86);
  background: rgba(255, 253, 248, 0.96);
}
.header-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 760; letter-spacing: -0.02em; justify-self: start; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px rgba(93, 70, 10, 0.16); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 660; }
.site-nav a:hover { color: var(--blue-dark); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.button svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 9px 24px rgba(35, 111, 196, 0.22); }
.button-primary:hover { color: white; background: var(--blue-dark); box-shadow: 0 12px 28px rgba(35, 111, 196, 0.28); }
.button-compact { min-height: 44px; padding: 10px 16px; font-size: 14px; justify-self: end; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 720; text-decoration: none; }
.text-link span { font-size: 1.3em; transition: translate 150ms ease; }
.text-link:hover span { translate: 3px 0; }

.hero { overflow: hidden; background: var(--paper); border-bottom: 1px solid #ede9e0; }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: minmax(310px, 0.74fr) minmax(560px, 1.36fr); align-items: center; gap: 52px; padding-block: 60px 68px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 540px; margin: 0 0 26px; font-size: clamp(42px, 5vw, 67px); line-height: 1.08; letter-spacing: -0.046em; font-weight: 790; }
.hero-lede { max-width: 510px; margin: 0; color: #474642; font-size: 19px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; flex-wrap: wrap; }
.release-status { max-width: 515px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.release-status[data-state="ready"] { color: #2e6b2b; }
.product-stage { position: relative; padding: 12px 0 36px; }
.product-window { position: relative; overflow: hidden; border: 9px solid #25272b; border-radius: 13px; background: #fbfaf7; box-shadow: var(--shadow); }
.window-bar { height: 25px; display: flex; align-items: center; gap: 6px; padding-inline: 9px; background: #292b2f; color: #e8e8e8; font-size: 9px; }
.window-bar i { width: 7px; height: 7px; border-radius: 999px; background: #75787e; }
.window-bar span { margin-left: 5px; font-style: normal; }
.product-window > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
.sample-workspace { min-height: 370px; display: grid; grid-template-columns: 142px 172px minmax(250px, 1fr); background: #fbfaf7; color: #2d2d2d; font-size: 11px; line-height: 1.4; }
.sample-sidebar { display: flex; flex-direction: column; gap: 5px; padding: 14px 10px; border-right: 1px solid #ddd8ce; background: #f2efe8; }
.sample-brand { display: flex; align-items: center; gap: 7px; margin: 0 3px 10px; font-size: 12px; }
.sample-brand img { width: 22px; height: 22px; border-radius: 5px; }
.sample-sidebar > span { display: flex; justify-content: space-between; gap: 5px; padding: 6px 8px; border-radius: 5px; }
.sample-sidebar b { color: #73706a; font-size: 9px; }
.sample-sidebar small { margin: 8px 8px 0; color: #817d76; font-size: 8px; font-weight: 750; letter-spacing: 0.08em; }
.sample-sidebar .sample-nav-active { background: #dcecff; color: #145594; font-weight: 720; }
.sample-list { display: flex; flex-direction: column; border-right: 1px solid #ddd8ce; background: #fff; }
.sample-list > strong { padding: 15px 12px 10px; font-size: 13px; }
.sample-list > span { display: grid; gap: 3px; padding: 10px 12px; border-top: 1px solid #eeeae3; }
.sample-list small { color: #76716a; font-size: 9px; }
.sample-list .sample-note-active { border-left: 3px solid #286fc4; background: #eef6ff; }
.sample-editor { padding: 25px 24px 20px; background: #fffdf8; }
.sample-editor h2 { margin: 14px 0 8px; font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; }
.sample-editor p { margin: 0 0 16px; color: #5b5751; }
.sample-editor ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sample-editor li::before { content: ""; display: inline-grid; width: 12px; height: 12px; margin-right: 8px; border: 1px solid #a5a099; border-radius: 3px; vertical-align: -2px; }
.sample-editor li.done { color: #77726b; text-decoration: line-through; }
.sample-editor li.done::before { content: "✓"; place-items: center; border-color: #4d9a48; background: #e4f5df; color: #34772f; font-size: 9px; text-decoration: none; }
.sample-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #fff0b5; color: #765b08; font-size: 9px; font-weight: 760; letter-spacing: 0.03em; text-transform: uppercase; }
.sample-tags { display: flex; gap: 5px; margin-top: 18px; flex-wrap: wrap; }
.sample-tags span { padding: 3px 7px; border-radius: 999px; background: #eee7fa; color: #6543a1; font-size: 8px; font-weight: 700; }
.stage-shadow { width: 74%; height: 28px; margin: 5px auto 0; border-radius: 999px; background: rgba(44, 45, 46, 0.15); filter: blur(18px); }

.section { padding-block: 92px; }
.section-heading { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.section-heading h2, .privacy-band h2, .support-cta h2, .document-hero h1, .download-panel h1 { margin: 0; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.16; letter-spacing: -0.035em; }
.section-heading h2::after { content: ""; display: block; width: 52px; height: 3px; margin: 22px auto; background: var(--yellow); }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.features { background: var(--surface); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 58px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 8px 30px; border-bottom: 1px solid #e5e1d8; }
.feature-mark { width: 52px; height: 52px; display: grid; place-items: center; color: var(--yellow); }
.feature-mark svg { width: 42px; height: 42px; stroke-width: 1.7; }
.feature-lavender .feature-mark { color: var(--lavender); }
.feature-sage .feature-mark { color: var(--sage); }
.feature-orange .feature-mark { color: var(--orange); }
.feature-teal .feature-mark { color: var(--teal); }
.feature-blue .feature-mark { color: #397bca; }
.feature h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; }
.feature p { margin: 0; color: #55534f; font-size: 15px; line-height: 1.68; }

.privacy-band { padding-block: 62px; background: var(--yellow-soft); border-block: 1px solid #f0dda0; }
.privacy-grid { display: grid; grid-template-columns: 90px minmax(0, 1.4fr) minmax(280px, 0.9fr); align-items: center; gap: 34px; }
.privacy-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: white; color: #d99e08; }
.privacy-icon svg { width: 44px; height: 44px; stroke-width: 1.6; }
.privacy-band h2 { font-size: clamp(28px, 3vw, 40px); }
.privacy-band p { max-width: 640px; margin: 16px 0 0; color: #4d4a42; }
.privacy-points { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.privacy-points li { display: flex; gap: 11px; align-items: center; font-weight: 620; }
.privacy-points span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); color: #3b310d; font-size: 13px; }

.support-cta { background: #fff; text-align: center; }
.support-inner { max-width: 760px; }
.support-inner > p { margin: 21px auto; color: var(--muted); }
.support-inner .button { margin-top: 8px; }
.support-inner .platform-note { margin-top: 14px; color: #4c4b47; font-size: 14px; }

.site-footer { padding-block: 32px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 7px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: 16px; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: #4c4a45; font-size: 12px; text-decoration: none; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }

/* Document, support, and download pages */
.subpage { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.subpage main { flex: 1; }
.document-hero { padding: 66px 0 42px; background: var(--paper); border-bottom: 1px solid var(--line); }
.document-hero .shell { max-width: 880px; }
.document-hero p { margin: 14px 0 0; color: var(--muted); }
.draft-notice { margin: 0; padding: 12px 20px; background: #fff3cd; border-bottom: 1px solid #ead08a; color: #59470f; text-align: center; font-size: 14px; font-weight: 650; }
.document { max-width: 880px; padding-block: 54px 84px; }
.document h2 { margin: 40px 0 10px; font-size: 23px; line-height: 1.3; }
.document h2:first-child { margin-top: 0; }
.document p, .document li { color: #474642; }
.document li + li { margin-top: 8px; }
.document .contact-box { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; text-decoration: none; }
.download-page { padding-block: 74px 92px; }
.download-panel { max-width: 780px; margin-inline: auto; padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(38, 40, 44, 0.09); text-align: center; }
.download-panel .app-icon { width: 76px; height: 76px; margin: 0 auto 25px; border-radius: 14px; box-shadow: 0 8px 22px rgba(93, 70, 10, 0.18); }
.download-panel > p { max-width: 610px; margin: 18px auto; color: var(--muted); }
.download-panel .button { margin-top: 12px; }
.pre-release-box { margin: 28px auto 0; padding: 20px; border: 1px solid #ead08a; border-radius: 10px; background: #fff8df; text-align: left; }
.pre-release-box strong, .pre-release-box p { display: block; margin: 0; }
.pre-release-box p { margin-top: 6px; color: #5e5540; }
.privacy-preview-note { display: grid; gap: 4px; margin: 20px auto 0; padding: 16px 18px; border: 1px solid #cfe3ca; border-radius: 10px; background: #f1faee; color: #365b31; text-align: left; }
.privacy-preview-note span { color: #4d6449; font-size: 13px; }
.download-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 36px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.download-details div { padding: 16px; background: var(--paper); }
.download-details strong, .download-details span { display: block; }
.download-details span { color: var(--muted); font-size: 13px; }
.studio-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.studio-link:hover, .studio-link:focus-visible { color: var(--blue); }

@media (max-width: 1020px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; padding-bottom: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 60px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 720px; }
  .product-stage { max-width: 850px; width: 100%; margin-inline: auto; }
  .privacy-grid { grid-template-columns: 80px 1fr; }
  .privacy-points { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .header-inner { min-height: 72px; gap: 14px; }
  .brand { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .button-compact { width: 44px; min-height: 44px; padding: 0; overflow: hidden; color: transparent; gap: 0; }
  .button-compact svg { color: white; flex: 0 0 21px; }
  .site-nav { gap: 26px; }
  .hero-grid { min-height: auto; padding-block: 52px 48px; }
  .hero h1 { font-size: clamp(38px, 12vw, 55px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .product-window { border-width: 5px; border-radius: 9px; }
  .window-bar { display: none; }
  .sample-workspace { min-height: 330px; grid-template-columns: 112px minmax(220px, 1fr); }
  .sample-list { display: none; }
  .sample-editor { padding: 22px 16px; }
  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 36px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 48px 1fr; gap: 16px; padding-inline: 0; }
  .feature-mark { width: 44px; height: 44px; }
  .feature-mark svg { width: 36px; height: 36px; }
  .privacy-grid { grid-template-columns: 1fr; text-align: left; }
  .privacy-icon { width: 68px; height: 68px; }
  .privacy-points { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .site-footer p { text-align: center; }
  .download-panel { padding: 34px 20px; }
  .download-details { grid-template-columns: 1fr; }
}

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

@media (forced-colors: active) {
  .button { border-color: ButtonText; }
  .product-window { border-color: CanvasText; }
  .privacy-points span { border: 1px solid CanvasText; }
}
