/* Inkwell site styles. Colour and type values come from inkwell-tokens.css (brand kit v1.0). */
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/InstrumentSans-Variable.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink-bg); color: var(--ink-text);
  font-family: var(--ink-type-body-family); font-size: var(--ink-type-body-size); line-height: var(--ink-type-body-lh);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink-brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink-color-bottle); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--ink-color-ivory); }

h1, h2, h3, h4 { font-family: var(--ink-font-display); font-weight: 400; color: var(--ink-heading); margin: 0 0 .5em; }
h1 { font-size: var(--ink-type-h1-size); line-height: var(--ink-type-h1-lh); letter-spacing: var(--ink-type-h1-tracking); }
h2 { font-size: var(--ink-type-h2-size); line-height: var(--ink-type-h2-lh); letter-spacing: var(--ink-type-h2-tracking); }
h3 { font-size: var(--ink-type-h3-size); line-height: var(--ink-type-h3-lh); }
h4 { font-size: var(--ink-type-h4-size); line-height: var(--ink-type-h4-lh); }
h5, h6 { font-family: var(--ink-font-text); font-weight: 600; color: var(--ink-heading); margin: 0 0 .4em; }
h5 { font-size: var(--ink-type-h5-size); line-height: var(--ink-type-h5-lh); }
h6 { font-size: var(--ink-type-h6-size); line-height: var(--ink-type-h6-lh); }
p { margin: 0 0 1em; }
.lead { font-size: var(--ink-type-lead-size); line-height: var(--ink-type-lead-lh); }
.small { font-size: var(--ink-type-small-size); line-height: var(--ink-type-small-lh); }
.muted { color: var(--ink-text-muted); }
.label {
  font-family: var(--ink-font-label); font-size: var(--ink-type-label-size); line-height: var(--ink-type-label-lh);
  font-weight: 500; letter-spacing: var(--ink-type-label-tracking); text-transform: uppercase; color: var(--ink-text-muted);
  margin: 0 0 1rem;
}
.measure { max-width: 40rem; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.section { padding: 4rem 0; }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section--surface { background: var(--ink-surface); }
.section--brand { background: var(--ink-brand); color: var(--ink-on-brand); }
.section--brand h2, .section--brand h3 { color: var(--ink-on-brand); }
.section--brand .label { color: var(--ink-color-stone); }
.section--tight { padding-top: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink-brand); color: var(--ink-on-brand); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink-border); background: var(--ink-bg); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { height: 38px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink-brand); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink-brand); }
.nav a.btn { border-bottom: 0; }
@media (min-width: 1024px) { .nav { display: block; } .menu { display: none; } }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink-brand); padding: .5rem .875rem; border: 1px solid var(--ink-border); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink-surface); }
.menu-panel { position: absolute; left: 0; right: 0; top: 4.5rem; background: var(--ink-bg); border-bottom: 1px solid var(--ink-border); z-index: 5; }
.menu-panel ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.menu-panel li a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--ink-border); text-decoration: none; font-weight: 500; }
.menu-panel li:last-child a { border: 0; margin-top: .75rem; }
.site-header { position: relative; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--ink-font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .875rem 1.25rem; border-radius: 6px; text-decoration: none; cursor: pointer; border: 1px solid var(--ink-button-bg);
  background: var(--ink-button-bg); color: var(--ink-button-text); text-align: center;
}
.btn:hover { background: #17302a; }
.btn--secondary { background: transparent; color: var(--ink-brand); }
.btn--secondary:hover { background: var(--ink-surface); }
.on-dark .btn, .section--brand .btn { background: var(--ink-color-ivory); color: var(--ink-brand); border-color: var(--ink-color-ivory); }
.btn--block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding: 4rem 0; }
@media (min-width: 1024px) { .hero { padding: 6rem 0 5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.page-head { padding: 3.5rem 0 2.5rem; }
@media (min-width: 1024px) { .page-head { padding: 5rem 0 3rem; } }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: 8px; padding: 1.5rem; }
.section--surface .card { background: var(--ink-bg); }
.card h3, .card h4 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.feature h5 { margin-bottom: .25rem; }
.feature p { color: var(--ink-text-muted); margin: 0; }

/* Package cards */
.packages { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .packages { grid-template-columns: repeat(4, 1fr); } }
.pkg { display: flex; flex-direction: column; background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: 8px; padding: 1.5rem; }
.section--surface .pkg { background: var(--ink-bg); }
.pkg .label { margin-bottom: .75rem; }
.pkg h3 { margin-bottom: .25rem; }
.pkg .price { font-family: var(--ink-font-display); font-size: 2.25rem; line-height: 1.1; color: var(--ink-heading); margin: 0; }
.pkg .price-note { font-size: var(--ink-type-small-size); color: var(--ink-text-muted); margin: 0 0 1rem; }
.pkg .summary { margin-bottom: 1rem; }
.pkg ul { margin: 0 0 1.5rem; padding-left: 1.1rem; font-size: .95rem; }
.pkg li { margin-bottom: .45rem; }
.pkg li::marker { color: var(--ink-color-moss); }
.pkg .support { margin-top: auto; border-top: 1px solid var(--ink-border); padding-top: 1rem; margin-bottom: 1.25rem; font-size: var(--ink-type-small-size); }
.pkg .support strong { display: block; color: var(--ink-heading); font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-border); border-radius: 8px; background: var(--ink-bg); }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--ink-border); vertical-align: top; }
thead th { background: var(--ink-surface); font-weight: 600; color: var(--ink-heading); }
tbody th { font-weight: 500; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink-brand); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font-family: var(--ink-font-label); font-size: var(--ink-type-label-size); letter-spacing: var(--ink-type-label-tracking); text-transform: uppercase; color: var(--ink-text-muted); margin-bottom: .5rem; }
.steps h5 { margin-bottom: .35rem; }
.steps p { color: var(--ink-text-muted); margin: 0; }

/* Mockups: flat frames, 1px Stone borders, Ivory and Vellum fills (guidelines section 08) */
.mock { border: 1px solid var(--ink-border); border-radius: 6px; background: var(--ink-bg); max-width: 26rem; }
.mock-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border-bottom: 1px solid var(--ink-border); background: var(--ink-surface); font-size: .85rem; color: var(--ink-text-muted); }
.mock-body { padding: 1rem .9rem 1.1rem; }
.mock-logo { width: 4rem; height: .9rem; background: var(--ink-border); margin-bottom: 1rem; }
.mock-h { font-family: var(--ink-font-display); font-size: 1.35rem; color: var(--ink-heading); margin-bottom: .35rem; }
.mock-p { font-size: .9rem; color: var(--ink-text-muted); margin-bottom: 1rem; }
.mock-btn { display: inline-block; background: var(--ink-brand); color: var(--ink-on-brand); font-weight: 600; font-size: .85rem; padding: .45rem .8rem; border-radius: 4px; margin-bottom: 1rem; }
.mock-img { border: 1px solid var(--ink-border); background: var(--ink-surface); height: 6rem; display: grid; place-items: center; font-size: .85rem; color: var(--ink-text-muted); }

.journey { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.journey li { border: 1px solid var(--ink-border); background: var(--ink-bg); border-radius: 4px; padding: .55rem .8rem; font-size: .9rem; font-weight: 500; color: var(--ink-heading); }
.journey li.arrow { border: 0; background: none; padding: 0 .1rem; color: var(--ink-text-muted); }
.journey-note { font-size: var(--ink-type-small-size); color: var(--ink-text-muted); margin-top: .75rem; }

.flow { border: 1px solid var(--ink-border); border-radius: 8px; background: var(--ink-bg); overflow: hidden; }
.flow-head { padding: 1rem 1.25rem; background: var(--ink-surface); border-bottom: 1px solid var(--ink-border); }
.flow-head h3 { margin: 0; }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ink-border); }
.flow li:last-child { border-bottom: 0; }
.flow .when { font-family: var(--ink-font-label); font-size: var(--ink-type-label-size); letter-spacing: var(--ink-type-label-tracking); text-transform: uppercase; color: var(--ink-text-muted); padding-top: .2rem; }
.flow h6 { margin-bottom: .2rem; }
.flow p { margin: 0; color: var(--ink-text-muted); font-size: .95rem; }

/* Placeholders and review notes: visible on purpose so owners can see what is still open */
.placeholder {
  border-left: 3px solid var(--ink-color-moss); background: var(--ink-surface); padding: .9rem 1.1rem; border-radius: 0 6px 6px 0;
  font-size: var(--ink-type-small-size); color: var(--ink-text-muted); margin: 1.25rem 0;
}
.placeholder strong { color: var(--ink-heading); }
.section--surface .placeholder { background: var(--ink-bg); }
.banner { background: var(--ink-brand); color: var(--ink-on-brand); padding: .9rem 0; font-weight: 600; text-align: center; }
.tag { display: inline-block; font-family: var(--ink-font-label); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink-border); border-radius: 3px; padding: .15rem .4rem; color: var(--ink-text-muted); background: var(--ink-bg); }

/* Founders */
.founder { display: grid; gap: 1.25rem; grid-template-columns: 4.5rem 1fr; align-items: start; }
.monogram { width: 4.5rem; height: 4.5rem; border-radius: 8px; background: var(--ink-brand); color: var(--ink-on-brand); display: grid; place-items: center; font-family: var(--ink-font-display); font-size: 2rem; }

/* FAQ */
.faq { border-top: 1px solid var(--ink-border); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--ink-border); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; color: var(--ink-heading); list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.4rem; font-weight: 400; color: var(--ink-brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.25rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Get started */
.checkout { max-width: 40rem; }
.stepper { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.stepper li { font-family: var(--ink-font-label); font-size: var(--ink-type-label-size); letter-spacing: var(--ink-type-label-tracking); text-transform: uppercase; color: var(--ink-text-muted); padding-bottom: .35rem; border-bottom: 2px solid transparent; }
.stepper li.is-active { color: var(--ink-heading); border-bottom-color: var(--ink-brand); }
fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; }
legend { font-family: var(--ink-font-display); font-size: var(--ink-type-h3-size); line-height: var(--ink-type-h3-lh); color: var(--ink-heading); margin-bottom: 1rem; padding: 0; }
.question { font-weight: 600; font-size: 1.15rem; color: var(--ink-heading); margin-bottom: .75rem; }
.choice { display: flex; gap: .85rem; align-items: center; border: 1px solid var(--ink-border); border-radius: 6px; padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; background: var(--ink-bg); }
.choice:hover { background: var(--ink-surface); }
.choice:has(input:checked) { border: 2px solid var(--ink-brand); background: var(--ink-surface); padding: calc(.9rem - 1px) calc(1rem - 1px); }
.choice input { accent-color: var(--ink-color-bottle); width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
.choice strong { display: block; color: var(--ink-heading); }
.choice span.small { color: var(--ink-text-muted); }
.hint { font-size: var(--ink-type-small-size); color: var(--ink-text-muted); }
.summary-box { border: 1px solid var(--ink-border); border-radius: 8px; background: var(--ink-surface); padding: 1.25rem 1.5rem; }
.summary-box dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 0; margin: 0 0 1rem; }
.summary-box dt { color: var(--ink-text-muted); }
.summary-box dd { margin: 0; text-align: right; font-weight: 500; }
.summary-box .total dt, .summary-box .total dd { color: var(--ink-heading); font-weight: 600; border-top: 1px solid var(--ink-border); padding-top: .6rem; }
.pay-note { margin-top: 1rem; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--ink-brand); color: var(--ink-on-brand); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--ink-on-brand); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .brand img { height: 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .label { color: var(--ink-color-stone); }
.site-footer .legal { border-top: 1px solid rgba(207,198,182,.4); margin-top: 2.5rem; padding-top: 1.25rem; font-size: var(--ink-type-small-size); color: var(--ink-color-stone); }

/* Prose (legal pages) */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--ink-type-h4-size); margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.nav a.btn, .nav a.btn:hover { color: var(--ink-button-text); border-bottom: 1px solid var(--ink-button-bg); }
.menu-panel a.btn { color: var(--ink-button-text); }
.pkg li.lead-in { list-style: none; margin-left: -1.1rem; font-weight: 600; color: var(--ink-heading); }
.nav a.btn { padding: .7rem 1.1rem; }
.summary-box dt.total, .summary-box dd.total { color: var(--ink-heading); font-weight: 600; border-top: 1px solid var(--ink-border); padding-top: .6rem; }
.site-footer { border-top: 1px solid rgba(207,198,182,.35); }
