/* LamportAI site v1. One stylesheet. All colors are tokens. */
:root {
  --bg: #FAFAF9;
  --bg-2: #F1F1EE;
  --text: #1A1A1A;
  --text-2: #55554F;
  --border: #E2E2DD;
  --accent: #1B44C8;
  --accent-hover: #163AAD;
  --on-accent: #FFFFFF;
  --radius: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 var(--s4); }
h1 { font-size: clamp(36px, 4vw + 20px, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 1.6vw + 20px, 40px); }
h3 { font-size: 20px; }
p, ul, ol { margin: 0 0 var(--s4); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow > * { max-width: 680px; }
.narrow-p { max-width: 680px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: var(--s2) var(--s3); z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: var(--s4); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 650; color: var(--text); text-decoration: none; min-height: 44px; font-size: 18px; letter-spacing: -0.01em; }
.nav-desk { display: none; margin-left: auto; }
.nav-desk ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-desk a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--text); text-decoration: none; border-radius: var(--radius); }
.nav-desk a:hover { background: var(--bg-2); }
.nav-desk a[aria-current="page"] { text-decoration: underline; }
.nav-cta { margin-left: auto; }
.nav-phone { position: relative; }
.nav-phone summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 var(--s4); display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 550; }
.nav-phone summary::-webkit-details-marker { display: none; }
.nav-phone[open] summary { background: var(--bg-2); }
.nav-phone nav { position: absolute; right: 0; top: 52px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); min-width: 260px; padding: var(--s2); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.nav-phone ul { list-style: none; margin: 0; padding: 0; }
.nav-phone a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); color: var(--text); text-decoration: none; border-radius: var(--radius); }
.nav-phone a:hover { background: var(--bg-2); }
@media (min-width: 900px) {
  .nav-desk { display: block; }
  .nav-cta { margin-left: 0; }
  .nav-phone { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s2); font-weight: 550; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s5) 0; }
.end .btn, .form .btn { width: 100%; }
@media (min-width: 600px) { .end .btn, .form .btn { width: auto; } }

/* Sections */
main { padding-bottom: var(--s8); }
.hero { padding: var(--s8) 0 var(--s7); }
.hero h1 { max-width: 14ch; }
.lede { font-size: clamp(19px, 0.6vw + 16px, 22px); color: var(--text); max-width: 34ch; line-height: 1.45; }
.page-head { padding-top: var(--s7); }
.page-head + .wrap .lede { max-width: 40ch; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--text-2); }
.band { padding: var(--s8) 0 0; }
.band + .band { border-top: 0; }
.end { padding-top: var(--s8); }
.end .wrap { border-top: 1px solid var(--border); padding-top: var(--s7); }
@media (min-width: 900px) {
  .hero { padding: var(--s9) 0 var(--s8); }
  .band { padding-top: var(--s9); }
  body { font-size: 18px; }
}
.note { font-size: 15px; color: var(--text-2); }
ul.plain { padding-left: 1.2em; }
ul.plain li { margin-bottom: var(--s2); }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: var(--s3); padding-left: var(--s1); }

/* Tables */
.table-box { overflow-x: auto; margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: var(--s4); border-bottom: 1px solid var(--border); font-size: 16px; }
.prices thead th { font-size: 14px; color: var(--text-2); font-weight: 550; background: var(--bg-2); }
.prices tbody tr:last-child th, .prices tbody tr:last-child td { border-bottom: 0; }
.prices tbody th { font-weight: 650; min-width: 150px; }
.prices td { min-width: 220px; }
.prices .num { white-space: nowrap; font-weight: 650; min-width: 0; }
.facts { margin: var(--s4) 0 var(--s5); border-top: 1px solid var(--border); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.facts th { width: 32%; padding-right: var(--s4); font-weight: 650; }

@media (max-width: 599px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); padding: var(--s4); border-bottom: 1px solid var(--border); }
  .prices tbody tr:last-child { border-bottom: 0; }
  .prices th, .prices td, .prices tbody tr:last-child th, .prices tbody tr:last-child td { padding: 0; border: 0; min-width: 0; }
  .prices tbody th { grid-column: 1; grid-row: 1; }
  .prices .num { grid-column: 2; grid-row: 1; text-align: right; }
  .prices td:not(.num) { grid-column: 1 / -1; grid-row: 2; color: var(--text); }
}

/* Work */
.mini-work { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: var(--s5); }
.mini-work a { display: block; color: var(--text); text-decoration: none; font-weight: 600; }
.mini-work img { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--s2); }
.mini-work span { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .mini-work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mini-work { grid-template-columns: repeat(4, 1fr); } }
.case-in { display: grid; gap: var(--s5); }
.case-shot img { border: 1px solid var(--border); border-radius: var(--radius); }
.case-text { max-width: 640px; }
.case-text h3 { margin-top: var(--s5); }
@media (min-width: 900px) { .case-in { grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: start; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s4) 32px var(--s4) 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: var(--s4); font-size: 22px; line-height: 1; color: var(--text-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.faq details p { color: var(--text); padding-bottom: var(--s3); }

/* Form */
.form { display: grid; gap: var(--s2); margin: var(--s5) 0 var(--s6); max-width: 520px; }
.form label { font-weight: 600; font-size: 16px; margin-top: var(--s3); }
.form input { font: inherit; font-size: 17px; min-height: 48px; padding: 0 var(--s3); border: 1px solid #8A8A84; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { margin-top: var(--s4); }

/* Legal */
.legal h2 { font-size: 24px; margin-top: var(--s6); }

/* Footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-2); padding: var(--s7) 0; font-size: 15px; color: var(--text-2); }
.foot a { color: var(--text); }
.foot-in { display: grid; gap: var(--s5); }
.foot-brand { font-weight: 650; color: var(--text); font-size: 17px; margin-bottom: var(--s2); }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot p a { display: inline-block; padding: 10px 0; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr 1.2fr; } }

/* Motion: only when the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-desk a, .nav-phone a, a { transition: background-color 160ms var(--ease), color 160ms var(--ease); }
}
