/* PhonesEasy shared styles: tokens, header, footer, buttons, forms, FAQ, mobile bar.
   Page-specific layout lives in each page's own <style>. Brand guide: /images/brand/BRAND.md */
:root {
  --bg: #fbfaf7; --bg-2: #f1efe9; --ink: #14181a; --ink-soft: #2f3432; --ink-mute: #5f6662;
  --line: #e1ded6; --line-soft: #ebe8e1; --paper: #f3f1eb;
  --accent: #0f5c4a; --accent-ink: #0a4236; --on-accent: #ffffff;
  --accent-wash: #e6f0ec; --accent-line: #bcd5cc;
  --glow: #dcebe4; --error: #b3261e;
  --warn-bg: #fff4d1; --warn-ink: #5c4400; --warn-line: #f0dc9c;
  --band: #0f1a16;
  --shadow: 0 1px 2px rgba(20,24,26,.05), 0 12px 32px -12px rgba(20,24,26,.14);
  --header-bg: rgba(251,250,247,.88);
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --shell: 1120px; --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a; --bg-2: #1c2124; --ink: #f2ede2; --ink-soft: #c9c2b4; --ink-mute: #9a9384;
    --line: #343b3f; --line-soft: #262b2e; --paper: #1b2022;
    --accent: #7ec4ae; --accent-ink: #a8dccb; --on-accent: #0b1a15;
    --accent-wash: #17261f; --accent-line: #2f5446;
    --glow: #4b555b; --error: #ff9a8f;
    --warn-bg: #2a2516; --warn-ink: #f4d58b; --warn-line: #4a3f1f;
    --band: #0b120f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
    --header-bg: rgba(20,24,26,.88);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; font-size: 16px; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.amt .c { font-size: .5em; vertical-align: .78em; letter-spacing: 0; margin-left: .03em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.text-link { font-weight: 600; color: var(--accent-ink); }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft); }
header.site .row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.wordmark { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.wordmark em { font-style: normal; color: var(--accent); }
.logo-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand .sub { display: block; font-size: 12px; color: var(--ink-mute); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 24px; margin-right: auto; padding-left: 12px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current="page"] { color: var(--ink); position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.head-actions { display: flex; align-items: center; gap: 18px; }
.call-link { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; min-height: 44px; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.call-link b { font-weight: 700; font-size: 16px; }
.call-link span { font-size: 12px; color: var(--ink-mute); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(20,24,26,.14), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); background: var(--bg); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero (shared base) */
.hero { padding: 56px 0 52px; background: linear-gradient(180deg, var(--paper), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; margin-top: 18px; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 52ch; margin-top: 18px; }
.hero .fine { font-size: 15px; color: var(--ink-mute); margin-top: 12px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-soft); }
.checks.mute li { color: var(--ink-mute); }
.checks.mute li::before { background: var(--ink-mute); opacity: .6; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Trust strip */
.trust { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.trust dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.trust dl > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.trust dl > div:first-child { border-left: 0; padding-left: 0; }
.trust dt { font-size: clamp(22px, 2.6vw, 30px); white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-ink); }
.trust dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Cards */
.card-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow); padding: 28px; }
.notice { padding: 16px 18px 16px 20px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--warn-bg) 60%, var(--bg)); color: var(--warn-ink); border-left: 4px solid #d9a521; font-size: 15px; }
.notice details.more summary { color: var(--warn-ink); min-height: 40px; margin-top: 6px; }
.notice details.more p { margin-top: 4px; font-size: 14px; }
.notice a { color: inherit; font-weight: 600; }
.notice strong { display: block; margin-bottom: 4px; }

/* Sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line-soft); }
section.block.tint { background: var(--paper); }
.block h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-top: 12px; }
.block .intro { color: var(--ink-soft); font-size: 17px; max-width: 60ch; margin-top: 14px; }

/* Steps + dark band */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; list-style: none; padding: 0; }
.step { border-top: 2px solid var(--ink); padding: 22px 4px 0; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); border: 1px solid var(--accent-line); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.step h3 { font-size: 20px; margin-top: 18px; }
.step p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
section.block.band { background: var(--band); color: #eef2ef; border-bottom: 0; }
.band .eyebrow { color: rgba(238,242,239,.62); }
.band .step { border-top-color: rgba(238,242,239,.24); }
.band .step p, .band .intro { color: rgba(238,242,239,.74); }
.band .step .n { background: transparent; color: #a8dccb; border-color: rgba(168,220,203,.45); }
.band .text-link { color: #a8dccb; }

/* Forms */
.form-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; margin-top: 36px; }
form.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--bg); box-shadow: var(--shadow); }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 22px; border-radius: var(--radius-sm); background: var(--accent-wash); border: 1px solid var(--accent-line); font-size: 15px; }
.summary b { display: block; }
.summary span { color: var(--ink-soft); }
.summary a { font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.field .opt-tag { font-weight: 400; color: var(--ink-mute); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.err { font-size: 13px; color: var(--error); font-weight: 500; }
.err:empty { display: none; }
.form-err { margin-top: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 15px; }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
details.form-more summary, details.calc-extra summary, details.more summary { cursor: pointer; font-size: 15px; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--accent-ink); list-style: none; }
details.form-more summary::-webkit-details-marker, details.calc-extra summary::-webkit-details-marker, details.more summary::-webkit-details-marker { display: none; }
details.form-more summary::before, details.calc-extra summary::before, details.more summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
details.form-more[open] summary::before, details.calc-extra[open] summary::before, details.more[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
details.form-more .grid { margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.tiny { font-size: 13px; color: var(--ink-mute); }
.success { display: none; text-align: center; padding: 28px 0; }
.success.visible { display: block; }
.success .check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.success h3 { font-size: 24px; }
.success p { margin-top: 10px; color: var(--ink-soft); }

/* Side column */
.side { display: grid; gap: 4px; }
.side .card { border-top: 1px solid var(--line); padding: 20px 0; }
.side h3 { font-size: 18px; letter-spacing: -0.02em; }
.side p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.big-call { font-variant-numeric: normal; display: inline-flex; align-items: center; min-height: 44px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; margin-top: 4px; }
.big-call:hover { color: var(--accent-ink); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap .intro a { font-weight: 600; padding: 10px 0; white-space: nowrap; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 60px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--ink-soft); padding: 0 0 20px; max-width: 68ch; }

/* Content pages */
.prose-block { max-width: 72ch; }
.prose-block h2 { margin-top: 12px; }
.prose-block h3 { font-size: 20px; margin-top: 28px; }
.prose-block p, .prose-block li { color: var(--ink-soft); font-size: 17px; }
.prose-block p { margin-top: 14px; }
.prose-block ul, .prose-block ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose-block a { color: var(--accent-ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare-table thead th { font-size: 13px; font-weight: 700; color: var(--ink-mute); background: var(--paper); }
.compare-table tbody th { font-weight: 600; color: var(--ink); }
.compare-table td { color: var(--ink-soft); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { margin-top: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-ghost { background: transparent; color: #eef2ef; border-color: rgba(238,242,239,.35); }
.band .btn-primary { background: #7ec4ae; color: #0b1a15; }
.band .btn-primary:hover { background: #a8dccb; color: #0b1a15; }

/* Footer */
footer.site { padding: 44px 0 52px; font-size: 13px; color: var(--ink-mute); background: var(--paper); border-top: 1px solid var(--line-soft); }
footer.site .foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
footer.site .foot-brand { display: flex; align-items: center; gap: 12px; }
footer.site .foot-brand .logo-mark { width: 28px; height: 28px; }
footer.site .tagline { font-size: 15px; color: var(--ink-soft); }
footer.site .tagline strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--accent-ink); }
footer.site p { margin: 8px 0; max-width: 88ch; }
footer.site p strong { color: var(--ink); }
footer.site p a { font-weight: 600; }

/* Mobile sticky bar */
.mbar { display: none; }

@media (max-width: 1020px) {
  .nav { gap: 18px; padding-left: 0; }
  .call-link span { display: none; }
}
@media (max-width: 900px) {
  header.site { position: static; }
  header.site .row { flex-wrap: wrap; min-height: 0; padding: 10px 0 0; }
  .nav { order: 3; width: 100%; margin: 0; padding: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-soft); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; }
  .head-actions .btn { display: none; }
  .call-link span { display: block; }
  .hero { padding: 36px 0 40px; }
  .hero-grid, .form-split, .faq-wrap { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .faq-wrap { gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
  .trust dl { grid-template-columns: 1fr 1fr; }
  .trust dl > div { padding: 18px 16px 18px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .trust dl > div:nth-child(-n+2) { border-top: 0; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .25s var(--ease); }
  .mbar.hide { transform: translateY(110%); }
  .mbar .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
  body.has-mbar { padding-bottom: 76px; }
  [id] { scroll-margin-top: 16px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
  .hero .actions .btn-ghost { width: auto; border: 0; background: none; padding: 0 4px; color: var(--accent-ink); }
  .hero .lede { font-size: 16.5px; margin-top: 14px; }
  .brand .sub { display: none; }
  .call-link span { display: none; }
  form.card, .card-box { padding: 22px; }
  .summary { flex-direction: column; align-items: flex-start; gap: 2px; }
  .form-actions .btn { width: 100%; }
  .hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
