/* SilverSmart.ai — site styles
   Palette: plum (SilverSmart Learn), slate (SilverSmart for Business), ink text on white.
   Every text/background pair meets WCAG AA contrast. */

:root {
  --ink: #1D1D1B;
  --text: #3A3A38;
  --muted: #55554F;
  --line: #D6D3CC;
  --paper: #FFFFFF;
  --stone: #F5F4F1;
  --plum: #4B2A55;
  --plum-dark: #36193F;
  --plum-tint: #F4EEF6;
  --plum-soft: #E2D2E8;
  --slate: #2E3A40;
  --slate-dark: #1F2A2F;
  --slate-tint: #EEF1F2;
  --slate-soft: #CCD4D8;
  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif;
  --wrap: 1200px;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
strong { font-weight: 700; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.band-stone { background: var(--stone); }
.band-plum { background: var(--plum); color: #FFFFFF; }
.band-slate { background: var(--slate); color: #FFFFFF; }
.band-plum h1, .band-plum h2, .band-plum h3, .band-slate h1, .band-slate h2, .band-slate h3 { color: #FFFFFF; }
.band-plum a:not(.btn), .band-slate a:not(.btn), .hero-plum a:not(.btn), .hero-slate a:not(.btn), .closer a:not(.btn) { color: #FFFFFF; }
.lede { font-size: 1.15rem; color: var(--text); max-width: 36em; }
.band-plum .lede { color: #F2EAF5; }
.band-slate .lede { color: #E6EBED; }
.measure { max-width: 38em; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 24px; }
.kicker { font-weight: 700; font-size: .9rem; margin-bottom: 14px; display: block; }
.kicker-plum { color: var(--plum); }
.kicker-slate { color: var(--slate); }
.band-plum .kicker { color: var(--plum-soft); }
.band-slate .kicker { color: var(--slate-soft); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #FFFFFF; padding: 12px 18px; z-index: 1000; }
.skip:focus { left: 16px; top: 16px; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #1A6FB5; outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 28px; font-family: var(--sans); font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #000000; color: #FFFFFF; }
.btn-plum { background: var(--plum); color: #FFFFFF; }
.btn-plum:hover { background: var(--plum-dark); color: #FFFFFF; }
.btn-slate { background: var(--slate); color: #FFFFFF; }
.btn-slate:hover { background: var(--slate-dark); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: var(--stone); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.band-plum .btn-line, .band-slate .btn-line, .hero-plum .btn-line, .hero-slate .btn-line, .closer .btn-line, .door .btn-line { color: #FFFFFF; border-color: #FFFFFF; }
.band-plum .btn-line:hover, .band-slate .btn-line:hover, .hero-plum .btn-line:hover, .hero-slate .btn-line:hover, .closer .btn-line:hover, .door .btn-line:hover { background: #FFFFFF; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 700; }

/* Call strip (small screens only) */
.call-strip { display: none; background: var(--ink); color: #E8E8E4; text-align: center; padding: 10px 16px; font-size: .9rem; }
.call-strip a { color: #FFFFFF; font-weight: 700; }

/* Header */
.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--plum); }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .9rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--plum); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: var(--ink); font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.header-actions .btn { min-height: 48px; padding: 10px 20px; font-size: .9rem; }
.menu-btn { display: none; font-family: var(--sans); font-size: .95rem; font-weight: 700; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; min-height: 48px; padding: 8px 18px; cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px 0 28px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .actions { margin-top: 24px; flex-direction: column; align-items: stretch; }
.mobile-menu[hidden] { display: none; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 36px; }
.hero-plum { background: var(--plum); color: #FFFFFF; padding: 96px 0 104px; }
.hero-slate { background: var(--slate); color: #FFFFFF; padding: 96px 0 104px; }
.hero-plum h1, .hero-slate h1 { color: #FFFFFF; }
.hero-plum .lede { color: #F2EAF5; }
.hero-slate .lede { color: #E6EBED; }
.hero-plum .kicker { color: var(--plum-soft); }
.hero-slate .kicker { color: var(--slate-soft); }
.hero-note { margin-top: 20px; font-size: .9rem; }
.hero-plum .hero-note { color: #F2EAF5; }
.hero-slate .hero-note { color: #E6EBED; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.door { display: flex; flex-direction: column; padding: 56px 48px 48px; color: #FFFFFF; }
.door-plum { background: var(--plum); }
.door-slate { background: var(--slate); }
.door h2 { color: #FFFFFF; font-size: clamp(1.7rem, 2.5vw, 2.2rem); margin-bottom: 20px; }
.door p { font-size: 1.05rem; }
.door-plum p { color: #F2EAF5; }
.door-slate p { color: #E6EBED; }
.door .kicker { font-size: .95rem; }
.door-plum .kicker { color: var(--plum-soft); }
.door-slate .kicker { color: var(--slate-soft); }
.door .price { color: #FFFFFF; font-weight: 700; font-size: 1.05rem; }
.door .actions { margin-top: auto; padding-top: 24px; }
.door-plum .btn-white { color: var(--plum); }
.door-slate .btn-white { color: var(--slate); }

/* Two-column layout */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.split-wide > :first-child { position: sticky; top: 32px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--text); }
.split-embed { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }

/* Rows: a list with rules between items */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows > li { padding: 22px 0; border-top: 1px solid var(--line); }
.rows .row-title { display: block; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.rows .row-text { display: block; color: var(--text); margin-top: 4px; }
.rows-heavy > li:first-child { border-top: 2px solid var(--ink); }
.band-plum .rows, .band-plum .rows > li, .band-slate .rows, .band-slate .rows > li { border-color: rgba(255,255,255,.35); }
.band-plum .rows .row-title, .band-slate .rows .row-title { color: #FFFFFF; }
.band-plum .rows .row-text { color: #F2EAF5; }
.band-slate .rows .row-text { color: #E6EBED; }

/* Numbered steps (real sequences only) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps > li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 22px; }
.steps > li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; color: var(--plum); }
.steps-slate > li::before { color: var(--slate); }
.steps .step-title { display: block; font-weight: 700; font-size: 1.12rem; }
.steps .step-text { display: block; color: var(--text); margin-top: 6px; font-size: 1.02rem; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps-list > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps-list > li:first-child { border-top: 2px solid var(--ink); }
.steps-list > li::before { content: counter(step); font-family: var(--serif); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--slate); }
.steps-list .step-title { display: block; font-weight: 700; font-size: 1.12rem; }
.steps-list .step-text { display: block; color: var(--text); margin-top: 4px; }

/* Callout */
.callout { border-left: 6px solid var(--plum); background: var(--plum-tint); padding: 32px 36px; }
.callout-slate { border-left-color: var(--slate); background: var(--slate-tint); }
.callout h3 { font-size: 1.35rem; margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }

/* Pull statement */
.statement { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.3; max-width: 26em; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); }
.plan { padding: 36px 32px; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #FFFFFF; }
.plan:first-child { border-left: none; }
.plan-name { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.plan-flag { display: inline-block; margin-left: 10px; font-family: var(--sans); font-size: .7rem; font-weight: 700; vertical-align: middle; padding: 3px 10px; border-radius: 3px; background: var(--plum); color: #FFFFFF; }
.plans-slate .plan-flag { background: var(--slate); }
.plan-for { color: var(--text); margin: 8px 0 22px; font-size: 1.02rem; min-height: 3.2em; }
.plan-price { font-family: var(--serif); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.plan-price small { font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan-billing { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; }
.plan li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.plan li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; background: var(--plum); border-radius: 50%; }
.plans-slate .plan li::before { background: var(--slate); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured { background: var(--plum-tint); }
.plans-slate .plan-featured { background: var(--slate-tint); }

/* Simple price lines */
.price-lines { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.price-lines li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.price-lines li strong { white-space: nowrap; }

/* Cities */
.cities { display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--serif); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.8rem; font-weight: 400; color: var(--plum); }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 24px; color: var(--text); max-width: 40em; }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 1.05rem; color: var(--ink); background: #FFFFFF; border: 2px solid #8A8780; border-radius: 3px; padding: 14px 16px; min-height: 56px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 20px; font-weight: 700; border-left: 6px solid; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #EAF4EC; border-color: #2E6B3A; color: #1E4A27; }
.form-status.err { background: #FBEAEA; border-color: #B3261E; color: #7A1A14; }
.panel { border: 2px solid var(--ink); padding: 40px; }
.embed { border: 2px solid var(--ink); background: #FFFFFF; }
.embed iframe { display: block; width: 100%; min-height: 760px; border: 0; }

/* Article */
.article { max-width: 40em; }
.article h2 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); margin: 56px 0 18px; }
.article ul { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: .6em; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.post-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.post-list li { border-top: 2px solid var(--ink); padding: 36px 0; }
.post-list h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); margin: 8px 0 14px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }

/* Policy */
.policy h2 { font-size: 1.6rem; margin: 56px 0 16px; }
.policy h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .5em; }
.toc { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Closing CTA */
.closer { background: var(--plum); color: #FFFFFF; padding: 96px 0; }
.closer h2 { color: #FFFFFF; max-width: 16em; }
.closer p { color: #F2EAF5; font-size: 1.1rem; max-width: 34em; margin-top: 18px; }
.closer .actions { margin-top: 32px; }
.closer .btn-white { color: var(--plum); }
.closer-slate { background: var(--slate); }
.closer-slate p { color: #E6EBED; }
.closer-slate .btn-white { color: var(--slate); }

/* Footer */
.site-footer { background: var(--ink); color: #E8E8E4; padding: 72px 0 40px; font-size: .9rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand .logo { color: #FFFFFF; font-size: 1.35rem; }
.footer-brand .logo span { color: var(--plum-soft); }
.footer-brand p { margin: 14px 0 18px; color: #D8D8D2; max-width: 20em; }
.footer-contact a { display: block; font-weight: 700; margin-bottom: 6px; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: #BFBFB8; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #4A4A46; color: #BFBFB8; font-size: .8rem; }

@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-phone { display: none; }
}
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .nav-links, .header-actions { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .call-strip { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  html { font-size: 19px; }
  .section { padding: 72px 0; }
  .hero, .hero-plum, .hero-slate { padding: 64px 0 72px; }
  .doors, .split, .split-wide, .split-embed, .trio, .form-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split { gap: 56px; }
  .split-wide > :first-child { position: static; }
  .door { min-height: 0; padding: 40px 28px 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { border-left: none; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: none; }
  .plan-for { min-height: 0; }
  .panel { padding: 28px 22px; }
  .closer { padding: 72px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .header-inner { min-height: 76px; }
  .logo { font-size: 1.3rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .price-lines li { flex-direction: column; gap: 2px; }
  .callout { padding: 26px 22px; }
  .embed iframe { min-height: 900px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
