/* keepsealed.com - the one-page site. Same type and colours as the app (web/app/css/app.css).
   No inline styles anywhere, so the page is served with style-src 'self'. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --nav: #EFECE5; --line: #E2DED5; --hair: #EFECE5; --dash: #CFC9BD;
  --ink: #1B1A17; --ink-2: #5E5A52; --ink-3: #6B665D;
  --accent: #1F5F57; --accent-ink: #15443E; --accent-tint: #E3EEEC;
  --seal: #8A2E2A; --seal-tint: #F4E4E2;
  --folder-fill: #E8D9B5; --folder-line: #9C7A2E;
  --dark: #15201E; --dark-2: #1E2C29; --dark-ink: #E9E6DF; --dark-ink-2: #B9B4A9;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 20px 50px rgba(27, 26, 23, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--nav); border-color: var(--dash); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--nav); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 239, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -0.2px; }
.links { display: flex; gap: 26px; margin-left: 12px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; gap: 8px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 62px); line-height: 1.06; font-weight: 500; letter-spacing: -1px; }
h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -0.5px; max-width: 760px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 640px; margin-top: 20px; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.hero-points svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

.hero-art { position: relative; min-height: 470px; }
.window { position: absolute; top: 0; left: 0; right: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--nav); border-bottom: 1px solid var(--line); }
.win-bar span { width: 10px; height: 10px; border-radius: 5px; background: var(--dash); }
.win-bar em { margin-left: 14px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.win-body { padding: 20px 22px 22px; }
.win-crumbs { font-size: 12px; color: var(--ink-3); }
.win-title { font-family: var(--serif); font-size: 26px; margin: 4px 0 12px; }
.win-tabs { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.win-tabs b, .win-tabs span { padding-bottom: 8px; }
.win-tabs b { color: var(--ink); border-bottom: 2px solid var(--accent); }
.win-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.win-row i { width: 16px; height: 20px; border: 1.6px solid var(--seal); border-radius: 3px; flex-shrink: 0; }
.win-row.folder i { width: 20px; height: 16px; background: var(--folder-fill); border-color: var(--folder-line); border-radius: 3px; }
.win-row span { flex-grow: 1; font-weight: 500; }
.win-row em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.win-seal { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 14px; background: var(--accent-tint); color: var(--accent-ink); border-radius: 10px; font-size: 13px; font-weight: 600; }

.phone { background: var(--bg); border: 9px solid #1B1A17; border-radius: 34px; box-shadow: var(--shadow); padding: 18px 14px; width: 250px; }
.hero-art .phone { position: absolute; right: 0; bottom: 0; }
.ph-firm { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.ph-firm b { width: 16px; height: 16px; border-radius: 8px; background: var(--seal); }
.ph-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; margin: 10px 0 12px; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ph-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; padding-bottom: 6px; }
.ph-head span { color: var(--ink-3); }
.ph-row { display: flex; align-items: center; gap: 9px; min-height: 40px; border-top: 1px solid var(--hair); font-size: 12.5px; }
.ph-row i { width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--dash); flex-shrink: 0; }
.ph-row.done i { background: var(--accent); border-color: var(--accent); }
.ph-row span { flex-grow: 1; }
.ph-row b { font-size: 11px; color: #fff; background: var(--accent); padding: 5px 9px; border-radius: 7px; }
.ph-text { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.ph-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 16px 0; }
.ph-code span { height: 40px; border: 1.5px solid var(--dash); border-radius: 8px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.ph-code span:not(:empty) { border-color: var(--accent); }
.ph-btn { height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ph-small { margin-top: 14px; font-size: 11.5px; color: var(--ink-2); text-align: center; line-height: 1.4; }

/* Bands */
.band { padding: 96px 0; }
.band-soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.eyebrow-light { color: #8CC5BB; }
.h2-light { color: #fff; }
.lede-light { color: var(--dark-ink-2); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.trio-item { background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 26px; }
.trio-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(140, 197, 187, 0.14); color: #8CC5BB; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.trio-item h3 { color: #fff; }
.trio-item p { margin-top: 8px; color: var(--dark-ink-2); font-size: 15.5px; }


.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.step-n { display: inline-flex; width: 36px; height: 36px; border-radius: 18px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* A last card alone in its row spans the row, so the grid has no empty cells. */
.grid > .feat:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.feat { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 9px; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.phone-solo { justify-self: center; width: 280px; }

.band-cta { background: var(--accent-tint); border-top: 1px solid #CFE1DE; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 720px; }
.cta .lede { margin: 18px auto 30px; }
.cta-small { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.brand-small { font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--ink); }
.foot-small { width: 100%; font-size: 13px; color: var(--ink-3); }

/* In a nutshell: three pillars, each with a drawing */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.pillar { text-align: center; padding: 8px 12px 0; }
.pillar-art { width: 200px; height: 150px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.pillar-art svg { width: 150px; height: auto; }
.pillar h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.pillar p { margin: 10px auto 0; color: var(--ink-2); font-size: 16px; max-width: 320px; }

/* Pricing */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toggle { display: inline-flex; margin: 32px 0 0; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.toggle label { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.toggle label span { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-tint); padding: 2px 8px; border-radius: 999px; }
.toggle label:has(input:checked) { background: var(--accent); color: #fff; }
.toggle label:has(input:checked) span { background: rgba(255, 255, 255, 0.18); color: #fff; }
.toggle label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing:has(#bill-month:checked) .per-year, .billing:has(#bill-year:checked) .per-month { display: none; }
@media (forced-colors: active) { .toggle label:has(input:checked) { outline: 2px solid CanvasText; } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-pick { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.plan-for { color: var(--ink-2); font-size: 15px; margin-top: -8px; }
.plan-trial { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: -6px; }
.price { font-size: 16px; color: var(--ink-2); }
.price strong { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; }
.btn-block { width: 100%; }
.plan-plus { font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan-list svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.plans-note { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: 15px; }
.plans-note strong { color: var(--ink); }
.faq { margin: 56px auto 0; max-width: 760px; }
.faq h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.faq dl { margin: 0; }
.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); }

/* Narrower screens */
/* Two columns but not much room: keep the phone off the window's important lines. */
@media (min-width: 981px) and (max-width: 1180px) {
  .window { right: 84px; }
  .hero-art .phone { width: 212px; padding: 14px 12px; }
  .win-row em { display: none; }
}
@media (max-width: 1080px) {
  .top-talk { display: none; }   /* the sign-in links fit; Talk to us is further down the page */
}
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
  .window { position: relative; right: auto; width: 100%; max-width: 560px; }
  .hero-art .phone { position: relative; margin-top: -60px; align-self: flex-end; margin-right: 8%; }
  .trio, .steps, .grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .links { display: none; }
  .band { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-inner { gap: 12px; }
  .top-cta .btn { padding: 0 12px; }
  .top-cta { gap: 4px; }
  .top-cta .long { display: none; }   /* phones: "Client" and "Staff" */
  .top-cta .btn { font-size: 14px; }
  .hero { padding: 44px 0 64px; }
  .hero-cta .btn { width: 100%; }
  .lede { font-size: 17px; }
  .hero-art .phone { display: none; }
  .win-row em { display: none; }
  .phone-solo { width: 100%; max-width: 280px; }
}
.notfound { min-height: 100vh; display: flex; align-items: center; }
/* Text pages (/sms) */
.doc { padding: 64px 0 80px; }
.doc-inner { max-width: 760px; }
.doc-title { font-size: clamp(34px, 4vw, 48px); }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc .doc-meta { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.doc-inner > p:not(.eyebrow):not(.lede):not(.doc-updated):not(.doc-meta), .doc li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc-inner > p + p { margin-top: 12px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent); }
.doc-steps, .doc-list { padding-left: 24px; display: grid; gap: 10px; }
.doc-quote { margin: 12px 0 4px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.6; }
.doc-shot { margin: 20px 0 8px; max-width: 420px; }
.doc-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.doc-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.doc .doc-updated { margin-top: 48px; font-size: 14px; color: var(--ink-3); }
.notfound .hero-cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.h1-404 { font-size: clamp(32px, 3.6vw, 44px); }
