/* Inner Edge site layout. Colors, fonts and radii come from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3 { margin: 0 0 var(--space-4); color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; min-width: 0; }
.hero-grid > *, .split > *, .grid > * { min-width: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 760px; }
.section { padding: var(--space-24) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface); padding: var(--space-2) var(--space-4); z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand span { font-family: var(--font-wordmark); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.mark-arm { fill: currentColor; }
.mark-stem { fill: var(--edge); }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--edge-text); }
.nav .btn { padding: 10px 16px; color: var(--on-edge); }
.nav .btn:hover { color: var(--on-edge); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: 600 14px var(--font-sans); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-6) var(--space-6); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: var(--space-4); text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { font-size: 16px; line-height: 1.2; transition: transform .15s ease, background .15s ease; }
.btn-primary:hover { background: color-mix(in srgb, var(--edge-strong) 85%, black); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

/* Hero */
.hero { padding: var(--space-24) 0 var(--space-12); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.18em 0 var(--edge-tint); }
.page-hero { padding: var(--space-24) 0 var(--space-12); }
.page-hero h1 { max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-6); }
.eyebrow::before { content: ""; width: 4px; height: 16px; background: var(--edge); }

/* Grids and cards */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.card h3 { font-size: 24px; margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--font-display); font-size: 15px; color: var(--edge-text); font-weight: 600; margin-bottom: var(--space-4); display: block; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--edge-tint); color: var(--ink); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.split .big { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: var(--space-6); grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: var(--space-4); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 600; font-size: 32px; color: var(--edge-text); margin-bottom: var(--space-2); }
.steps strong { display: block; font-size: 18px; margin-bottom: var(--space-1); }
.steps p { color: var(--ink-muted); margin: 0; font-size: 16px; }

/* Check lists */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: rotate(-45deg); }
.nevers li::before { width: 12px; height: 2px; border: 0; background: var(--ink-muted); transform: none; top: 13px; }

/* Dark band */
.band { background: var(--night); color: var(--on-night); }
.band h2, .band h3 { color: var(--on-night); }
.band .muted, .band .lead { color: var(--on-night-muted); }
.band .btn-secondary { border-color: var(--on-night); color: var(--on-night); }
.band .btn-secondary:hover { background: var(--on-night); color: var(--night); }
.band .eyebrow { color: var(--on-night-muted); }

/* Command Center mock */
.cc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(31,42,36,.30); color: var(--ink); font-size: 14px; }
.cc-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.cc-top b { font-weight: 600; }
.cc-tabs { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); overflow: hidden; white-space: nowrap; }
.cc-tabs span { padding: 10px 0; }
.cc-tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--edge); }
.cc-list { padding: 8px 16px 16px; display: grid; gap: 10px; }
.cc-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cc-item .t { font-weight: 600; }
.cc-item .m { grid-column: 1; color: var(--ink-muted); font-size: 13px; }
.cc-item .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; }
.cc-btn { font: 600 12px var(--font-sans); padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.cc-btn.yes { background: var(--edge-strong); border-color: var(--edge-strong); color: var(--on-edge); }
.cc-ok { font-size: 12px; font-weight: 600; color: var(--approve); }
.cc-caption { margin-top: var(--space-2); text-align: center; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* Packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6); }
.plan.featured { border: 2px solid var(--ink); position: relative; }
.plan.featured .pill { position: absolute; top: -13px; left: var(--space-6); background: var(--edge-strong); color: var(--on-edge); }
.plan h2 { font-size: 32px; margin-bottom: var(--space-2); }
.plan .price { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: var(--space-4) 0; }
.plan .price small { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.plan .checks { margin: var(--space-4) 0 var(--space-6); font-size: 16px; }
.plan .approve { font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: auto; }
.plan .btn { text-align: center; margin-top: var(--space-4); }

/* Forms */
.form { display: grid; gap: var(--space-4); }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea { width: 100%; font: 16px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--edge); outline-offset: 1px; border-color: transparent; }
.form .btn { border: 0; cursor: pointer; font-family: var(--font-sans); justify-self: start; }
.form-note { font-size: 14px; color: var(--ink-muted); margin: 0; }
.form-success { display: none; background: var(--edge-tint); border-radius: var(--radius-md); padding: var(--space-6); }
.form.sent { display: none; }
.form.sent + .form-success { display: block; }

/* About */
.portrait { aspect-ratio: 4 / 5; background: var(--edge-tint); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink-muted); font-size: 14px; text-align: center; padding: var(--space-6); }
.fill { background: var(--edge-tint); border-left: 3px solid var(--edge); padding: var(--space-4) var(--space-6); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; }

/* Booking */
.booking-embed { min-height: 520px; border: 1px dashed var(--line); border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface); color: var(--ink-muted); text-align: center; padding: var(--space-6); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: var(--space-12) 0 var(--space-8); font-size: 15px; }
.site-footer .brand { color: var(--on-night); }
.site-footer .top { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; padding-bottom: var(--space-8); border-bottom: 1px solid var(--night-line); }
.site-footer p { max-width: 380px; margin-top: var(--space-4); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); align-content: flex-start; }
.site-footer nav a { color: var(--on-night); text-decoration: none; }
.site-footer nav a:hover { color: var(--edge-tint); }
.site-footer .bottom { padding-top: var(--space-6); font-size: 13px; }

@media (max-width: 960px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .hero, .page-hero { padding: var(--space-12) 0 var(--space-8); }
  .grid-5, .steps { grid-template-columns: 1fr; }
  .cc-item { grid-template-columns: 1fr; }
  .cc-item .acts { grid-row: auto; grid-column: 1; }
  .actions .btn { width: 100%; text-align: center; }
  th, td { padding: 12px 14px; }
}
.grid-5 .card h3 { font-size: 20px; }
.band .btn-primary { background: var(--night-accent); color: var(--night-accent-text); }
.band .btn-primary:hover { background: color-mix(in srgb, var(--night-accent) 85%, white); }

/* Values from settings.js */
[hidden] { display: none !important; }
.plan .price.price-empty { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--ink-muted); }
.portrait.has-photo { padding: 0; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .portrait-mark { width: 38%; height: auto; }
.portrait .portrait-mark .mark-stem { fill: var(--edge); }
.portrait .portrait-mark .mark-arm { fill: var(--ink); }
.booking-embed { gap: var(--space-4); align-content: center; }
.booking-embed h3 { color: var(--ink); font-size: 26px; }
.booking-embed.has-calendar { display: block; padding: 0; border-style: solid; overflow: hidden; }
.booking-embed iframe { width: 100%; height: 640px; border: 0; display: block; }
.booking-alt { padding: var(--space-2) var(--space-4); text-align: center; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
