/* =================================================================
   useinkwell.app — landing page styles
   Design: editorial, warm cream palette, Source Serif 4 / Inter
   ================================================================= */

/* ---------- tokens ---------- */
:root {
  --cream: #FAF7F2;
  --cream-deep: #F4EFE6;
  --ink: #1A1A1A;
  --ink-soft: #2A2825;
  --sepia: #8B7355;
  --brown: #5C5751;
  --rule: rgba(26,26,26,0.12);
  --rule-strong: rgba(26,26,26,0.22);
  --surface: var(--cream);
  --surface-alt: var(--cream-deep);
  --fg: var(--ink);
  --fg-soft: var(--brown);
  --label: var(--sepia);
  --btn-fg: var(--cream);
  --btn-bg: var(--ink);

  --serif: "Source Serif 4", "Charter", "Iowan Old Style", Cambria, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
  --cream: #13110F;
  --cream-deep: #1B1814;
  --ink: #F2EBDD;
  --ink-soft: #E8E0CF;
  --sepia: #B89A75;
  --brown: #B5AC9E;
  --rule: rgba(242,235,221,0.14);
  --rule-strong: rgba(242,235,221,0.28);
  --surface: var(--cream);
  --surface-alt: var(--cream-deep);
  --fg: var(--ink);
  --fg-soft: var(--brown);
  --label: var(--sepia);
  --btn-fg: #13110F;
  --btn-bg: #F2EBDD;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--surface);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  transition: background-color 200ms ease, color 200ms ease;
}
::selection { background: var(--ink); color: var(--cream); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; color: var(--fg-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- logomark ---------- */
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg);
}
.mark__square {
  width: 26px; height: 26px;
  background: var(--ink); color: var(--cream);
  display: inline-grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 1px;
  flex-shrink: 0;
}
[data-theme="dark"] .mark__square { background: var(--ink); color: #13110F; }
.mark__word {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.012em;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--fg-soft);
}
.nav__links a { color: var(--fg-soft); }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  background: transparent; border: 1px solid var(--rule); color: var(--fg-soft);
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--rule-strong); }
/* hamburger button — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--rule); border-radius: 4px;
  color: var(--fg); width: 36px; height: 36px; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 69px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 16px var(--gutter) 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 10px 0; font-size: 15px; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav { position: sticky; }
  /* hide the primary CTA button on small screens — space is tight */
  .nav-deploy-btn { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn--primary:hover { background: color-mix(in oklab, var(--btn-bg) 86%, var(--sepia)); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--fg); text-decoration: none; }
.btn .star-count {
  font-variant-numeric: tabular-nums;
  color: var(--fg-soft);
  font-weight: 400;
  padding-left: 8px; margin-left: 4px;
  border-left: 1px solid var(--rule);
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(72px, 9vw, 128px) 0; border-bottom: 1px solid var(--rule); }
.section--alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 + p { margin-top: 18px; font-size: 18px; max-width: 56ch; color: var(--fg-soft); }

/* ---------- hero ---------- */
.hero { padding: clamp(96px, 12vw, 168px) 0 clamp(56px, 6vw, 88px); border-bottom: 0; text-align: center; }
.hero .eyebrow { display: inline-block; margin-bottom: 28px; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--sepia); font-weight: 400; }
.hero__sub { margin: 28px auto 0; max-width: 50ch; font-size: 19px; color: var(--fg-soft); }
.hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 36px;
  font-size: 13px;
  color: var(--label);
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.hero__trust .dot { width: 3px; height: 3px; background: var(--rule-strong); border-radius: 50%; display: inline-block; }

/* ---------- product showcase ---------- */
.showcase { padding-top: 0; border-bottom: 1px solid var(--rule); }
.browser {
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: 0 1px 0 var(--rule);
  max-width: 1080px; margin: 0 auto;
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); display: block; }
.browser__url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-soft);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 4px;
  flex: 1;
  max-width: 360px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__body {
  background: var(--surface);
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.ed-side {
  background: var(--surface-alt);
  border-right: 1px solid var(--rule);
  padding: 22px 18px;
  font-size: 13px;
}
.ed-side__label { color: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }
.ed-side ul { list-style: none; padding: 0; margin: 0 0 22px; }
.ed-side li { padding: 7px 10px; border-radius: 4px; color: var(--fg-soft); display: flex; align-items: center; gap: 10px; }
.ed-side li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rule-strong); display: block; }
.ed-side li.is-active { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--fg); }
.ed-side li.is-active::before { background: var(--sepia); }

.ed-main { padding: 28px 36px; }
.ed-main__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.ed-main__title { font-family: var(--serif); font-size: 13px; color: var(--label); }
.ed-main__title em { font-style: italic; }
.ed-main__pubbtn { font-size: 11px; padding: 5px 10px; background: var(--ink); color: var(--cream); border-radius: 3px; font-weight: 500; }
[data-theme="dark"] .ed-main__pubbtn { background: var(--ink); color: #13110F; }
.ed-main h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.ed-main h4 em { font-style: italic; color: var(--sepia); }
.ed-main .meta { font-size: 11px; color: var(--label); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.ed-main p.lede {
  font-family: var(--serif); font-size: 16px; line-height: 1.55;
  color: var(--fg); margin-bottom: 14px;
}
.ed-main p.lede em { font-style: italic; }
.ed-main p.body { font-family: var(--serif); font-size: 14px; line-height: 1.65; color: var(--fg-soft); margin-bottom: 10px; }
.ed-main hr.editor-rule { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.ed-main .caret { display: inline-block; width: 1px; height: 14px; background: var(--ink); vertical-align: -2px; animation: blink 1.05s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 720px) {
  .browser__body { grid-template-columns: 1fr; }
  .ed-side { display: none; }
  .ed-main { padding: 22px; }
}

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feature {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feature__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--label);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.feature h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 22px; }
.feature h3 em { font-style: italic; color: var(--sepia); }
.feature p { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- themes ---------- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .themes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .themes-grid { grid-template-columns: 1fr; } }

.theme-card { display: flex; flex-direction: column; gap: 14px; }
.theme-card__frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 22px 18px;
  overflow: hidden;
  position: relative;
  font-family: var(--serif);
}
.theme-card__frame .tcrum {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sepia); margin-bottom: 14px;
}
.theme-card__frame .tctitle {
  font-size: 22px; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 10px;
}
.theme-card__frame .tctitle em { font-style: italic; }
.theme-card__frame .tcline { height: 1px; background: currentColor; opacity: 0.18; margin: 12px 0; }
.theme-card__frame .tcbody { font-size: 10px; line-height: 1.55; opacity: 0.78; }
.theme-card__frame .tcfoot {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55;
}
/* preset surfaces */
.preset-cream { background: #FAF7F2; color: #1A1A1A; }
.preset-ink   { background: #13110F; color: #F2EBDD; }
.preset-linen { background: #ECE4D3; color: #2A241B; }
.preset-paper { background: #FFFFFF; color: #1A1A1A; }

/* layout flavors inside the frame */
.layout-magazine .tctitle { font-size: 26px; }
.layout-magazine .tctitle em { color: #8B7355; }
.layout-magazine .twocol { columns: 2; column-gap: 12px; font-size: 9px; line-height: 1.5; opacity: 0.78; }
.layout-journal .tctitle { font-family: var(--serif); font-style: italic; font-size: 24px; }
.layout-journal .tcbody { font-style: italic; }
.layout-notebook .tcgrid {
  background-image: linear-gradient(currentColor 1px, transparent 1px);
  background-size: 100% 13px;
  opacity: 0.25; height: 110px; margin-top: 8px;
}
.layout-studio .tcblock { width: 60%; height: 70px; background: currentColor; opacity: 0.16; margin: 10px 0; }
.layout-studio .tcblock.alt { width: 38%; opacity: 0.1; margin-left: auto; }

.theme-card__meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.theme-card__name { font-family: var(--serif); font-size: 17px; }
.theme-card__preset { font-size: 11px; color: var(--label); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- open source ---------- */
.os-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 860px) { .os-grid { grid-template-columns: 1fr; gap: 40px; } }
.os-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.repo-line {
  font-family: var(--mono); font-size: 13px; color: var(--fg-soft);
  border: 1px solid var(--rule); padding: 12px 14px; border-radius: 4px;
  background: var(--surface);
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  max-width: 480px;
}
.repo-line code { color: var(--fg); font-family: inherit; }
.repo-line .copy { margin-left: auto; font-family: var(--sans); font-size: 11px; color: var(--label); cursor: pointer; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.stat { padding: 28px 0 0; border-right: 1px solid var(--rule); padding-right: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin-top: 10px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.step { padding: 36px 32px 36px 0; border-right: 1px solid var(--rule); }
.step:last-child { border-right: 0; padding-right: 0; }
.step__num {
  font-family: var(--serif); font-style: italic; font-size: 40px;
  color: var(--sepia); line-height: 1; margin-bottom: 18px;
}
.step h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }
.step pre {
  margin: 18px 0 0; padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-soft);
  overflow-x: auto;
}
.step pre span.tok { color: var(--sepia); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .step:last-child { border-bottom: 0; }
}

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--rule); }
details.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
details.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px;
  color: var(--sepia);
  line-height: 1;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
details.faq-item[open] > summary::after { content: "–"; }
details.faq-item .answer {
  margin-top: 14px; max-width: 70ch;
  font-size: 15.5px; color: var(--fg-soft);
  font-family: var(--serif);
  line-height: 1.65;
}

/* ---------- newsletter ---------- */
.news {
  text-align: center;
  background: var(--surface-alt);
}
.news h2 { max-width: 14ch; margin: 0 auto; }
.news h2 em { font-style: italic; color: var(--sepia); }
.news p { margin: 18px auto 0; max-width: 48ch; }
.news form {
  margin: 36px auto 0; max-width: 460px;
  display: flex; gap: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--surface);
  padding: 6px;
}
.news input[type="email"] {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--fg);
  font-family: var(--sans); font-size: 14px;
  padding: 10px 12px;
}
.news input[type="email"]::placeholder { color: var(--label); }
.news .btn { white-space: nowrap; }
.news small {
  display: block; margin-top: 16px;
  font-size: 12px; color: var(--label);
}

/* ---------- footer ---------- */
footer.site {
  padding: 64px 0 48px;
  background: var(--surface);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr repeat(2, 1fr); } }
@media (max-width: 640px)  { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px)  { .foot-grid { grid-template-columns: 1fr; } }
.foot-blurb { font-size: 14px; max-width: 36ch; margin-top: 14px; color: var(--fg-soft); }
.foot-col h5 {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--label); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--fg-soft); font-size: 14px; }
.foot-col a:hover { color: var(--fg); text-decoration: none; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; color: var(--label);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom .right { display: flex; gap: 20px; }

/* ---------- ornamental rule ---------- */
.orn-rule {
  display: inline-block; width: 32px; height: 1px; background: var(--sepia);
  vertical-align: middle; margin-right: 14px; opacity: 0.7;
}

/* ---------- services / pricing ---------- */
.services-intro {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .services-intro { grid-template-columns: 1fr; gap: 24px; } }
.services-intro .note {
  font-size: 14px; max-width: 38ch; padding-left: 24px;
  border-left: 1px solid var(--rule-strong);
  color: var(--fg-soft);
}
.services-intro .note strong { color: var(--fg); font-weight: 500; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services-grid { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  background: var(--surface);
}
.service--featured { background: var(--surface-alt); }
.service--featured::before {
  content: "Most requested";
  position: absolute; top: -1px; left: -1px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px;
}
[data-theme="dark"] .service--featured::before { color: #13110F; }

.service__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--label);
  margin-bottom: 18px;
}
.service__name {
  font-family: var(--serif); font-size: 26px; line-height: 1.1;
  letter-spacing: -0.012em; margin-bottom: 6px;
}
.service__name em { font-style: italic; color: var(--sepia); }
.service__tag { font-size: 13.5px; color: var(--fg-soft); margin-bottom: 22px; line-height: 1.5; }
.service__price {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.service__price .from {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--label);
}
.service__price .num {
  font-family: var(--serif); font-size: 32px; line-height: 1;
  letter-spacing: -0.018em; color: var(--fg);
}
.service__price .unit { font-family: var(--sans); font-size: 12px; color: var(--fg-soft); }
.service__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.service__list li {
  font-size: 13.5px; color: var(--fg-soft); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--sepia);
}
.service__cta { margin-top: auto; }
.service__cta .btn { width: 100%; justify-content: center; }

.services-foot {
  margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--fg-soft);
}
.services-foot a { color: var(--fg); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.services-foot a:hover { text-decoration: none; border-color: var(--fg); }

/* ---------- inquiry modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, #1A1A1A 64%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 180ms ease;
}
.modal-backdrop[aria-hidden="false"] { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal {
  background: var(--surface);
  color: var(--fg);
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 36px 36px 32px;
  position: relative;
  animation: slideUp 220ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 18px 60px -20px rgba(26,26,26,0.35);
}
[data-theme="dark"] .modal { box-shadow: 0 18px 60px -20px rgba(0,0,0,0.6); }
@media (max-width: 600px) {
  .modal { padding: 24px 16px; border-radius: 0; max-height: 100vh; height: 100%; }
  .modal-backdrop { padding: 0; }
}

.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--fg-soft); display: grid; place-items: center;
  border-radius: 50%;
}
.modal__close:hover { background: var(--surface-alt); color: var(--fg); }

.modal .eyebrow { display: block; margin-bottom: 12px; }
.modal h3 {
  font-family: var(--serif); font-size: 30px; line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 10px;
}
.modal h3 em { font-style: italic; color: var(--sepia); }
.modal__lede { font-size: 14.5px; line-height: 1.55; color: var(--fg-soft); margin: 0 0 24px; max-width: 44ch; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--label);
}
.field label .req { color: var(--sepia); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: 14px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 120ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 96px; font-family: var(--sans); line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238B7355' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 8px; flex-wrap: wrap;
}
.modal__foot small { color: var(--label); font-size: 12px; max-width: 28ch; line-height: 1.4; }
.modal__foot .btn { white-space: nowrap; }
.modal__success { text-align: center; padding: 12px 0 4px; }
.modal__success .badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--sepia); color: var(--sepia);
  margin-bottom: 18px;
  font-family: var(--serif); font-style: italic; font-size: 22px;
}
.modal__success h3 { margin-bottom: 10px; }
.modal__success p { font-size: 14.5px; color: var(--fg-soft); max-width: 36ch; margin: 0 auto; line-height: 1.55; }
.modal__success .btn { margin-top: 22px; }

body.modal-open { overflow: hidden; }

/* respect motion prefs */
@media (prefers-reduced-motion: reduce) {
  .ed-main .caret { animation: none; }
}

/* focus rings */
:focus-visible {
  outline: 2px solid var(--sepia);
  outline-offset: 3px;
  border-radius: 2px;
}
