/* Doorcom public website and manual. Same tokens as app.css and door.css,
   light theme only, phone-first, one file, no scripts. */

@font-face { font-family:"Lexend"; font-weight:600; font-display:swap;
  src:url("/static/fonts/Lexend-600.woff2") format("woff2"); }
@font-face { font-family:"Lexend"; font-weight:700; font-display:swap;
  src:url("/static/fonts/Lexend-700.woff2") format("woff2"); }
@font-face { font-family:"Source Sans 3"; font-weight:400; font-display:swap;
  src:url("/static/fonts/Source_Sans_3-400.woff2") format("woff2"); }
@font-face { font-family:"Source Sans 3"; font-weight:600; font-display:swap;
  src:url("/static/fonts/Source_Sans_3-600.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-weight:400; font-display:swap;
  src:url("/static/fonts/JetBrains_Mono-400.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --green: #1FD65A;
  --green-deep: #0B8F3C;
  --green-dark: #086B2D;
  --green-soft: #E4F6EA;
  --ink: #0B1220;
  --slate: #3A465C;
  --muted: #5B6A82;
  --bg: #F3F6FB;
  --bg-soft: #E9EFF7;
  --surface: #FFFFFF;
  --line: #E3E9F2;
  --line-strong: #CBD5E4;
  --amber-bg: #FDF4DC; --amber-ink: #8A6100;
  --red-bg: #FCE9E8; --red-ink: #B91C1C;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 28px -14px rgba(15,23,42,.20);
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; color: var(--slate); }
pre { background: #0E1A2E; color: #DBE7F3; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.5; }
pre code { background: none; color: inherit; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap table { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- skip link ---- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---- header ---- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .in { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--font-display); letter-spacing: -.01em; }
.brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 10px; border-radius: 999px; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.site-nav a.login { border: 1.5px solid var(--line-strong); margin-left: 4px; }
.site-nav a.login:hover { border-color: var(--green); }

/* ---- main ---- */
.site-main { flex: 1; }
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section .in > h2:first-child, .section .in > .lead:first-child { margin-top: 0; }
.lead { font-size: 19px; color: var(--slate); max-width: 62ch; }
.eyebrow { display: inline-block; font: 600 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 12px; }
.narrow { max-width: 68ch; }

/* ---- hero band ---- */
.hero { background: var(--green); color: var(--ink); padding: 48px 0 40px; }
.hero .in { display: grid; gap: 28px; align-items: center; }
.hero h1 { color: var(--ink); margin-bottom: 14px; max-width: 16ch; }
.hero .lead { color: rgba(11,18,32,.82); font-size: 19.5px; max-width: 50ch; }
.hero .shots { display: flex; gap: 16px; align-items: flex-start; justify-content: center; }
.hero .shots img { border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); background: #fff; }
.hero .shots .poster { width: 46%; max-width: 300px; }
.hero .shots .phone { width: 34%; max-width: 220px; border: 6px solid #0B1220; border-radius: 24px; }
@media (min-width: 820px) {
  .hero { padding: 64px 0 56px; }
  .hero .in { grid-template-columns: 1.05fr 1fr; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: rgba(11,18,32,.06); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #1c2740; }
.btn.green { background: var(--green); color: var(--ink); border-color: var(--green); }
.btn.green:hover { background: #17c250; }
.btn.light { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn.light:hover { border-color: var(--green); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }

/* ---- grids and cards ---- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--ink); font: 700 15px/1 var(--font-display); margin-bottom: 12px; }

/* ---- steps with screenshots ---- */
.steps { display: grid; gap: 22px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: left; }
.step img { display: block; width: 100%; max-width: 300px; border-radius: 18px; border: 5px solid #0B1220; background: #fff; margin: 0 0 14px; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--slate); }

/* ---- figures ---- */
figure { margin: 18px 0 26px; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
figure.phone { max-width: 320px; }
figure.phone img { border-radius: 22px; border: 5px solid #0B1220; }
figure.print { max-width: 420px; }
figure.print img { box-shadow: 0 16px 36px -20px rgba(15,23,42,.35); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.figrow { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.figrow figure { flex: 1 1 260px; margin-top: 8px; }
.figrow figure.phone { flex: 1 1 180px; max-width: 240px; }

/* ---- feature list ---- */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--slate); font-size: 16px; }

/* ---- split (text + image) ---- */
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.split figure { margin: 0; }

/* ---- pricing ---- */
.price { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); }
.price .big { font: 700 44px/1 var(--font-display); letter-spacing: -.03em; }
.price .big small { font: 600 16px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.price ul { margin: 14px 0 0; padding: 0 0 0 20px; }
.price li { margin: 4px 0; }
.compare th:first-child, .compare td:first-child { width: 34%; font-weight: 600; }
.callout { background: var(--green-soft); border: 1.5px solid #BEE7CC; border-radius: var(--radius); padding: 16px 20px; color: var(--green-dark); }
.callout.amber { background: var(--amber-bg); border-color: #F0DFAC; color: var(--amber-ink); }
.callout p:last-child { margin: 0; }

/* ---- forms ---- */
.form { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.form input, .form textarea, .form select { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; font: 400 16px/1.4 var(--font-body);
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.msg.err { background: var(--red-bg); color: var(--red-ink); }
.msg.ok { background: var(--green-soft); color: var(--green-dark); }

/* ---- manual ---- */
.manual { display: grid; gap: 28px; padding: 32px 0 48px; }
@media (min-width: 900px) { .manual { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
.toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
@media (min-width: 900px) { .toc { position: sticky; top: 16px; } }
.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.toc li { counter-increment: ch; }
.toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--slate); font-size: 15px; line-height: 1.3; }
.toc a::before { content: counter(ch, decimal-leading-zero); font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 1px; }
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.chapter { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; min-width: 0; }
@media (min-width: 720px) { .chapter { padding: 36px 40px 32px; } }
.chapter h1 { font-size: clamp(28px, 4vw, 36px); }
.chapter h2 { font-size: 23px; margin-top: 34px; }
.chapter h3 { font-size: 18px; margin-top: 22px; }
.chapter p, .chapter li { max-width: 70ch; }
.chapter ul, .chapter ol { padding-left: 22px; }
.chapter li { margin: 4px 0; }
.chapter dl { margin: 0 0 16px; }
.chapter dt { font-weight: 600; margin-top: 10px; }
.chapter dd { margin: 2px 0 0; color: var(--slate); max-width: 70ch; }
.chapter figure { max-width: 900px; }
.chapter figure.phone { max-width: 300px; }
.chapter .note { background: var(--bg-soft); border-left: 4px solid var(--green); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.chapter .note p:last-child { margin: 0; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.prevnext a { text-decoration: none; font-weight: 600; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.prevnext a:hover { border-color: var(--green); }
.prevnext .next { margin-left: auto; }
.chapters { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: ch; }
@media (min-width: 720px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapters a { counter-increment: ch; display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.chapters a:hover { border-color: var(--green); }
.chapters a b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.chapters a b::before { content: counter(ch, decimal-leading-zero) " "; font-family: var(--mono); color: var(--muted); font-size: 14px; font-weight: 400; }
.chapters a span { color: var(--slate); font-size: 15px; }

/* ---- footer ---- */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 24px; font-size: 15px; }
.site-foot .cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.site-foot .cols a:not(.brand) { display: block; color: var(--slate); text-decoration: none; padding: 3px 0; }
.site-foot .cols a:not(.brand):hover { color: var(--green-deep); text-decoration: underline; }
.site-foot p { color: var(--muted); margin: 10px 0 0; max-width: 40ch; }
.site-foot .made { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); max-width: none; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.45; }
.form label.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
