:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #5d6675;
  --paper: #f5f0e6;
  --paper-deep: #e8dfcf;
  --line: #d7cdbd;
  --night: #1c2940;
  --night-soft: #2b3b55;
  --accent: #8b3f4d;
  --accent-bright: #b25b67;
  --brass: #c39755;
  --sage: #dce4de;
  --sage-deep: #73867a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: #fffdf9; color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--night); color: #fff; padding: .75rem 1rem; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  min-height: 4.75rem; padding: .75rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.08rem; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50% 50% 50% .35rem; background: var(--accent); color: #fffaf2; font-family: Georgia, serif; font-size: 1.2rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.site-header nav { display: flex; gap: 1.7rem; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.site-header nav a:hover { color: var(--ink); }
.header-action { justify-self: end; border: 1px solid #cfd5df; border-radius: .5rem; padding: .62rem .9rem; text-decoration: none; font-size: .85rem; font-weight: 700; }
.header-action:hover { background: #f4f6f8; }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .92fr) minmax(30rem, 1.08fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; min-height: 46rem; padding: clamp(2.5rem, 4.5vw, 4.25rem) clamp(1.5rem, 6vw, 7rem) clamp(5rem, 9vw, 8.5rem); background: linear-gradient(135deg, #faf7f0 0%, var(--paper) 62%, #ece4d5 100%); }
.hero::before { content: ""; position: absolute; width: 32rem; height: 32rem; left: -16rem; bottom: -18rem; border: 1px solid rgba(139, 63, 77, .18); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(139, 63, 77, .025), 0 0 0 10rem rgba(195, 151, 85, .025); }
.hero-copy { position: relative; max-width: 42rem; }
.eyebrow { margin: 0 0 1.1rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(3.3rem, 6.6vw, 6.6rem); line-height: .98; }
.hero-intro { max-width: 38rem; margin: 2rem 0 0; color: #3e4a5f; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; border: 0; border-radius: .55rem; padding: .75rem 1.1rem; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--night); color: #fff; }
.button-primary:hover { background: var(--night-soft); }
.button-secondary { border: 1px solid #c9c1b4; background: rgba(255,255,255,.45); color: var(--ink); }
.button-secondary:hover { background: #fff; }
.hero-assurance { margin: 1.1rem 0 0; color: #6b7280; font-size: .79rem; }

.screenshot-frame { position: relative; min-width: 0; border: 1px solid rgba(28, 41, 64, .13); border-radius: 1.25rem; padding: .7rem; background: rgba(255,255,255,.72); box-shadow: 0 2.7rem 5.5rem rgba(28, 41, 64, .15); }
.screenshot-frame-hero { transform: rotate(.6deg); }
.screenshot-frame-hero::after { content: ""; position: absolute; inset: 2rem -3rem -3rem 3rem; z-index: -1; border-radius: 50%; background: rgba(139, 63, 77, .14); filter: blur(42px); }
.product-screenshot { display: block; width: 100%; height: auto; border-radius: .8rem; }

.promise-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2rem clamp(1.5rem, 6vw, 7rem); background: var(--night); color: #dce2ed; }
.promise-strip p { margin: 0; font-size: .9rem; line-height: 1.6; }
.promise-strip strong { color: #fff; }
.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); }
.section-heading { max-width: 48rem; }
.section-heading h2, .ownership h2, .community-section h2, .final-cta h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.05; }
.section-heading > p:last-child { max-width: 42rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 4rem; }
.feature-card { grid-column: span 4; min-height: 18rem; padding: 1.7rem; border-radius: .9rem; background: #f5f6f8; }
.feature-card-large { grid-column: span 8; background: var(--paper); }
.feature-card-wide { grid-column: span 8; min-height: 14rem; background: var(--sage); }
.feature-number { color: #8b95a5; font-family: Georgia, serif; font-style: italic; }
.feature-card h3 { max-width: 18ch; margin: 4.2rem 0 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.feature-card-large h3 { max-width: 24ch; font-size: 2.1rem; }
.feature-card p { max-width: 38rem; margin: .9rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.product-showcase { display: grid; grid-template-columns: minmax(17rem, .55fr) minmax(30rem, 1.45fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); background: #f0e8dc; }
.showcase-copy { position: sticky; top: 8rem; }
.showcase-copy h2 { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.04; }
.showcase-copy > p:last-child { color: var(--muted); line-height: 1.75; }

.publication-showcase { display: grid; grid-template-columns: minmax(26rem, 1.1fr) minmax(18rem, .7fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); background: #fffdf9; }
.screenshot-frame-square { width: min(100%, 42rem); }
.publication-copy h2 { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.04; }
.publication-copy > p:last-child { color: var(--muted); line-height: 1.75; }

.workflow-section { padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 7vw, 8rem); background: var(--night); color: #fff; }
.section-heading-light .eyebrow { color: #d6b18b; }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 4rem 0 0; padding: 0; list-style: none; }
.workflow li { border-top: 1px solid #445068; padding-top: 1.2rem; }
.workflow li > span { color: #aeb8c9; font-family: Georgia, serif; font-style: italic; }
.workflow strong { display: block; margin-top: 3.5rem; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.workflow p { color: #b9c1cf; font-size: .9rem; line-height: 1.7; }

.ownership { display: grid; grid-template-columns: minmax(0, .9fr) minmax(22rem, .7fr); gap: clamp(4rem, 10vw, 10rem); align-items: start; background: var(--paper); }
.ownership-statement > p:last-child { max-width: 40rem; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.ownership-points { display: grid; gap: 1.8rem; }
.ownership-points article { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.ownership-points h3 { margin: 0; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.ownership-points p { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.subscription-section { background: #fff; }
.subscription-layout { display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(22rem, 1.2fr); gap: 1rem; max-width: 64rem; margin-top: 4rem; }
.price-panel, .benefits-panel { border-radius: 1rem; padding: 1.6rem; }
.price-panel { display: grid; gap: .8rem; background: #f2f3f5; }
.price-choice { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 1.3rem; border-radius: .75rem; background: #fff; }
.price-choice span { font-weight: 700; }
.price-choice strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.price-choice small { grid-column: 2; color: var(--muted); }
.price-choice em { margin-left: .4rem; border-radius: 1rem; background: var(--night); color: #fff; padding: .25rem .45rem; font-size: .55rem; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.price-choice.recommended { box-shadow: 0 0 0 2px var(--night); }
.benefits-panel { background: var(--paper); }
.benefits-panel h3 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.benefits-panel ul { display: grid; gap: .75rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.benefits-panel li::before { content: "✓"; margin-right: .65rem; color: var(--sage-deep); font-weight: 800; }
.subscription-note { color: var(--muted); font-size: .82rem; }
.subscription-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.text-button { border: 0; background: none; color: #354057; padding: .5rem 0; text-decoration: underline; text-decoration-color: #adb5c1; text-underline-offset: .25rem; cursor: pointer; }

.back-to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 18; display: inline-flex; min-height: 2.7rem; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.18); border-radius: 2rem; padding: .65rem .9rem; background: var(--night); color: #fff; box-shadow: 0 .7rem 2rem rgba(28,41,64,.2); font-size: .78rem; font-weight: 750; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(.75rem); transition: opacity .18s ease, transform .18s ease, background .18s ease; }
.back-to-top span { color: #f0d9b4; font-size: 1rem; line-height: 1; }
.back-to-top:hover { background: var(--night-soft); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
html.modal-open .back-to-top { opacity: 0; pointer-events: none; }

.community-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(22rem, .7fr); gap: clamp(4rem, 10vw, 10rem); padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); background: var(--sage); }
.community-copy p { margin: 0 0 1.2rem; color: #405248; line-height: 1.8; }
.final-cta { padding: clamp(6rem, 12vw, 11rem) 1.5rem; background: var(--night); color: #fff; text-align: center; }
.final-cta .eyebrow { color: #d6b18b; }
.final-cta h2 { max-width: 14ch; margin-inline: auto; }
.final-cta > p:not(.eyebrow) { color: #b9c1cf; }
.button-paper { margin-top: 1.2rem; background: var(--paper); color: var(--night); }

body > footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2rem; padding: 2.5rem clamp(1.5rem, 6vw, 7rem); background: #0b1220; color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand div { display: grid; }
.footer-brand span:last-child { color: #8f9aab; font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.footer-links a, .footer-links button { border: 0; background: none; color: #b9c1cf; font-size: .8rem; text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.copyright { justify-self: end; margin: 0; color: #7f8999; font-size: .75rem; }

dialog { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1rem; color: var(--ink); box-shadow: 0 2rem 6rem rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(11,18,32,.48); }
.dialog-shell { display: flex; max-height: calc(100dvh - 2rem); flex-direction: column; }
.dialog-shell > header { display: flex; flex: none; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1rem; }
.dialog-shell h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.dialog-shell header p { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.dialog-shell header button { width: 2rem; height: 2rem; border: 0; border-radius: .35rem; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-shell header button:hover { background: #f1f3f5; }
.dialog-content { overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.5rem; }
.dialog-content section { margin-bottom: 1.25rem; }
.dialog-content h3 { margin: 0; font-size: .92rem; }
.dialog-content p { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.dialog-shell > footer { display: flex; flex: none; justify-content: end; padding: 1rem 1.5rem 1.5rem; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .screenshot-frame-hero { max-width: 44rem; }
  .feature-card, .feature-card-large, .feature-card-wide { grid-column: span 6; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .ownership, .community-section { grid-template-columns: 1fr; }
  .product-showcase, .publication-showcase { grid-template-columns: 1fr; }
  .showcase-copy { position: static; }
  body > footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: start; }
  .copyright { justify-self: start; }
}

@media (max-width: 640px) {
  .site-header { min-height: 4rem; padding-inline: 1rem; }
  .header-action { padding: .55rem .65rem; }
  .hero { padding-top: 2.25rem; padding-bottom: 4.5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .back-to-top { bottom: max(1rem, env(safe-area-inset-bottom)); }
  .promise-strip { grid-template-columns: 1fr; gap: .65rem; }
  .feature-grid { display: block; }
  .feature-card { min-height: auto; margin-bottom: .8rem; }
  .feature-card h3, .feature-card-large h3 { margin-top: 2.5rem; font-size: 1.55rem; }
  .workflow { grid-template-columns: 1fr; }
  .workflow strong { margin-top: 1.8rem; }
  .subscription-layout { grid-template-columns: 1fr; }
  .price-choice { grid-template-columns: 1fr; }
  .price-choice small { grid-column: 1; }
}

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