:root {
  --paper: #faf8f4;
  --paper-2: #f2eee7;
  --ink: #16181d;
  --ink-2: #4a4f5c;
  --line: #e2ddd3;
  --accent: #e0492f;
  --accent-ink: #b8361f;
  --dark: #16181d;
  --on-dark: #f4f1ea;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 18ch; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-lead { max-width: 60ch; color: var(--ink-2); font-size: 1.08rem; margin-top: 1.1rem; }
.fine { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.9rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(244, 241, 234, .5); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.wordmark { font-family: var(--serif); font-size: 1.55rem; text-decoration: none; letter-spacing: -0.01em; }
.wordmark em { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; font: 600 0.9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-top: 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: var(--ink-2); }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }

.browser { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(22, 24, 29, .35), 0 8px 18px -10px rgba(22, 24, 29, .15); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c7; }
.browser-bar p { margin-left: 10px; font-size: 0.75rem; color: var(--ink-2); background: #fff; padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-shot { transform: rotate(1.2deg); }

/* Work */
.work { background: var(--paper-2); }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: 3rem; }
.case-notes h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.case-notes .btn { margin-top: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transform-origin: left top; translate: 3px 6px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-grid article { background: var(--paper); padding: 2rem 1.8rem; }
.feature-grid h3 { margin-bottom: 0.6rem; }
.feature-grid p { color: var(--ink-2); font-size: 0.95rem; }

/* Pricing */
.pricing { background: var(--paper-2); }
.billing-toggle { display: inline-flex; margin-top: 2.2rem; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.billing-toggle button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font: 600 0.9rem var(--sans); color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.plan-for { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.3rem; min-height: 2.9em; }
.price { margin-top: 1.2rem; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-family: var(--serif); font-size: 2.9rem; line-height: 1; }
.price .per { color: var(--ink-2); font-size: 0.9rem; }
.setup { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.35rem; }
.plan .checks { margin: 1.5rem 0 1.8rem; gap: 0.6rem; font-size: 0.92rem; }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.plan-featured .plan-for, .plan-featured .price .per, .plan-featured .setup, .plan-featured .checks li { color: rgba(244, 241, 234, .75); }
.badge { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.founding { margin-top: 1.5rem; padding: 1.1rem 1.4rem; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--paper); font-size: 0.95rem; }
.care { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; margin-top: 1.5rem; padding: 1.6rem 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.care h3 { margin-bottom: 0.4rem; }
.care p { color: var(--ink-2); font-size: 0.93rem; }
.care-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.care-list div { border-left: 2px solid var(--accent); padding-left: 12px; }
.care-list dt { font-weight: 600; }
.care-list dd { margin: 0; font-size: 0.88rem; color: var(--ink-2); }

/* Process */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }

/* FAQ */
.faq { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 62ch; }

/* Contact */
.contact { background: var(--dark); color: var(--on-dark); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 16ch; }
.contact p { max-width: 52ch; margin-top: 1.2rem; color: rgba(244, 241, 234, .75); font-size: 1.08rem; }
.contact .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(244, 241, 234, .6); border-top: 1px solid rgba(244, 241, 234, .12); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 1.8rem 0; }
.site-footer .wordmark { color: var(--on-dark); font-size: 1.3rem; }

/* Tablet */
@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .care { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .nav-cta { border-bottom: 0; color: var(--accent-ink); }
  .hero-grid, .case, .faq-grid { grid-template-columns: 1fr; }
  .hero-shot { transform: none; }
  .actions .btn { flex: 1 1 100%; }
  .plans, .feature-grid, .steps, .care-list { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
  .faq-grid { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
