/* Hallmark · shape: Live Model, one page (a drawn sample phone with a numbered key, steps, price, the owner, a dark close) · genre: editorial · theme: custom · job: hire · vibe: "technical drawing, ink lines and one live colour" · from templates/drawing · contrast: pass */
/* Hallmark · defended 3 · the tick in the care list is a drawn check mark (two borders turned 45 degrees), not a side stripe */
/* Panhandle Web Works: one page in the live-drawing system (templates/drawing): cool paper, ink, Archivo and Literata, one live colour.
   The sample is a technical drawing of a phone, so its fine lines are the subject, not ornament. */

:root {
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 112px;

  --color-paper: oklch(98.6% 0.003 250);
  --color-paper-2: oklch(95.4% 0.005 250);
  --color-rule: oklch(84% 0.006 255);
  --color-ink: oklch(19% 0.012 255);
  --color-ink-2: oklch(38% 0.012 255);
  --color-muted: oklch(50% 0.01 255);
  /* Gulf blue: 6.9:1 on the paper */
  --color-accent: oklch(45% 0.14 245);
  --color-accent-deep: oklch(38% 0.12 245);
  --color-accent-ink: oklch(98.6% 0.003 250);
  --color-field: oklch(19% 0.012 255);
  --color-on-field: oklch(98.6% 0.003 250);
  --color-on-field-2: oklch(82% 0.01 255);
  --color-field-rule: oklch(40% 0.012 255);
  --color-live-dark: oklch(78% 0.11 235);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --text-sm: 0.9375rem;
  --text-body: 1.125rem;
  --text-title: clamp(1.375rem, 0.5vw + 1.2rem, 1.75rem);
  --text-h1: clamp(3rem, 6.4vw, 6.75rem);
  --text-h2: clamp(2.125rem, 3.3vw, 3.375rem);

  --container: 1280px;
  --gutter: 40px;
  --control: 52px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 68.74rem) { :root { --gutter: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --control: 48px; } }

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 100%; font-display: swap;
  src: url(../fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/literata.woff2) format("woff2");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-lg); scrollbar-color: var(--color-muted) var(--color-paper); }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-synthesis: none;
}
::selection { background: var(--color-ink); color: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); overflow-wrap: break-word; }
h1 { font-size: var(--text-h1); font-weight: 800; font-stretch: 66%; line-height: 0.92; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: var(--text-h2); font-weight: 800; font-stretch: 84%; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: var(--text-title); font-weight: 800; font-stretch: 88%; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: 10; padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); font-family: var(--font-display); font-weight: 700; }
.skip:focus { top: var(--space-md); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 var(--space-lg);
  background: var(--color-accent); color: var(--color-accent-ink); border-radius: 6px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-stretch: 88%; font-size: 1.0625rem;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn:hover { background: var(--color-accent-deep); }
.btn:active { transform: scale(0.97); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-stretch: 88%;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--color-accent);
}
.link:hover { color: var(--color-accent); }

/* ---------- header ---------- */
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; fill: none; stroke: var(--color-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.brand-mark .m-live { stroke: var(--color-accent); }
.nav { display: flex; align-items: center; gap: var(--space-lg); font-family: var(--font-display); font-weight: 600; font-stretch: 88%; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { color: var(--color-accent); }
.nav .nav-phone { font-weight: 800; }
@media (max-width: 52rem) { .nav a:not(.nav-phone) { display: none; } }
@media (max-width: 40rem) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero-copy { display: grid; gap: var(--space-lg); padding-top: var(--space-xl); max-width: 36rem; }
.lede { font-size: var(--text-title); line-height: 1.4; color: var(--color-ink); }
.trades { color: var(--color-ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xs); }

.sheet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl); align-items: center; }
.drawing { display: block; width: 100%; max-width: 360px; height: auto; justify-self: center; overflow: visible; }
.drawing path, .drawing rect, .drawing circle { fill: none; stroke: var(--color-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drawing .phone > rect:first-child { stroke-width: 2.5; }
.drawing .screen { fill: var(--color-paper); }
.drawing .field, .drawing .card { fill: var(--color-paper-2); }
.drawing .text-bar { stroke-width: 6; stroke: var(--color-rule); }
.drawing .text-bar.thin { stroke-width: 4; }
.drawing .house { stroke-width: 2; }
.drawing .live-line { stroke: var(--color-accent); stroke-width: 3; }
.drawing .call { fill: var(--color-paper-2); stroke: none; }
.drawing .call-btn { fill: var(--color-accent); stroke: none; }
.drawing .call-t { fill: var(--color-accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.drawing .call-link { stroke: var(--color-accent); stroke-width: 2; }
.drawing .tags circle { fill: var(--color-ink); stroke: var(--color-paper); stroke-width: 3; transition: fill 180ms var(--ease-out); }
.drawing .tags text { fill: var(--color-paper); font-family: var(--font-display); font-weight: 800; font-size: 16px; text-anchor: middle; }
.drawing .tags g.on circle { fill: var(--color-accent); }
.drawing .stamp rect { fill: var(--color-paper); stroke: var(--color-accent); stroke-width: 2; }
.drawing .stamp text { fill: var(--color-accent); font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.drawing .part { transition: opacity 180ms var(--ease-out); }
.drawing.focus .part:not(.on) { opacity: 0.35; }

.cap-head { font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: var(--text-title); line-height: 1.15; margin-bottom: var(--space-md); }
.key { display: grid; gap: var(--space-md); }
.key li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-sm); align-items: start; font-size: 1.0625rem; line-height: 1.45; }
.key strong { font-family: var(--font-display); font-weight: 700; font-stretch: 88%; }
.k-n { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--color-ink); color: var(--color-paper); font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; transition: background-color 180ms var(--ease-out); }
.key li.on .k-n { background: var(--color-accent); }
.note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 80rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-copy { max-width: 44rem; padding-top: var(--space-md); }
  .sheet { max-width: 52rem; }
}
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .drawing { max-width: 260px; }
}

/* ---------- how it works ---------- */
.how { background: var(--color-paper-2); padding-block: var(--space-3xl); }
.how h2 { margin-bottom: var(--space-xl); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); counter-reset: step; }
.steps li { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-md); border-top: 3px solid var(--color-ink); counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-stretch: 66%; font-size: 3.5rem; line-height: 1; color: var(--color-ink); }
.steps p { color: var(--color-ink-2); }
@media (max-width: 68.74rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .how { padding-block: var(--space-2xl); } }

/* ---------- price ---------- */
.price { padding-block: var(--space-3xl); }
.price h2 { margin-bottom: var(--space-xl); }
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.plan { display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-md); border-top: 3px solid var(--color-ink); }
.amount { font-family: var(--font-display); font-weight: 700; font-stretch: 88%; font-size: var(--text-title); color: var(--color-ink-2); }
.amount .num { display: block; font-weight: 800; font-stretch: 66%; font-size: clamp(4rem, 8vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.ticks { display: grid; gap: var(--space-sm); }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 14px; height: 8px; border-left: 3px solid var(--color-accent); border-bottom: 3px solid var(--color-accent); transform: rotate(-45deg); }
@media (max-width: 52rem) { .plans { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (max-width: 40rem) { .price { padding-block: var(--space-2xl); } }

/* ---------- about ---------- */
.about { padding-bottom: var(--space-3xl); }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); }
.about-in > * { padding-top: var(--space-md); border-top: 3px solid var(--color-ink); }
.about-copy { display: grid; gap: var(--space-md); max-width: 40rem; font-size: var(--text-title); line-height: 1.45; }
@media (max-width: 52rem) { .about-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .about-copy { font-size: var(--text-body); } }
@media (max-width: 40rem) { .about { padding-bottom: var(--space-2xl); } }

/* ---------- close ---------- */
.close { background: var(--color-field); color: var(--color-on-field); padding-block: var(--space-3xl) var(--space-2xl); }
.close h2 { max-width: 14em; }
.close-links { display: grid; gap: var(--space-xs); margin-block: var(--space-xl) var(--space-2xl); }
.close-big {
  justify-self: start; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 800; font-stretch: 70%;
  font-size: min(4.5rem, calc((100vw - 2 * var(--gutter)) / 14.5)); line-height: 1.05; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--color-live-dark);
}
.close-big:hover { color: var(--color-live-dark); }
.close :focus-visible { outline-color: var(--color-on-field); }
.tblock { width: 100%; max-width: 44rem; border-collapse: collapse; font-size: var(--text-sm); }
.tblock th, .tblock td { padding: var(--space-sm) 0; border-top: 1px solid var(--color-field-rule); text-align: left; vertical-align: top; }
.tblock th { width: 9rem; padding-right: var(--space-md); font-family: var(--font-display); font-weight: 700; font-stretch: 88%; color: var(--color-on-field-2); }

/* ---------- phone call bar ---------- */
.callbar { display: none; }
@media (max-width: 40rem) {
  body { padding-bottom: 80px; }
  .callbar {
    position: fixed; inset: auto 0 0 0; z-index: 5; display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: 2px solid var(--color-ink);
  }
  .callbar { transition: transform 240ms var(--ease-out); }
  .callbar.gone { transform: translateY(110%); }
  .callbar .btn { flex: 1; }
  .callbar .link { padding-inline: var(--space-sm); }
}

/* ---------- motion: the sample draws itself once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .drawing path[pathLength] { stroke-dasharray: 1; animation: draw 900ms var(--ease-out) both; }
  .drawing .part[data-part="2"] path { animation-delay: 200ms; }
  .drawing .part[data-part="3"] path { animation-delay: 350ms; }
  .drawing .tags g { animation: pop 420ms var(--ease-out) both; animation-delay: 700ms; }
  .drawing .stamp { animation: pop 420ms var(--ease-out) 900ms both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
