/* Ovyrena marketing site */

:root {
  --navy: #15243a;
  --navy-2: #1d3150;
  --navy-3: #2a4166;
  --amber: #d9903d;
  --amber-light: #e9a55a;
  --amber-soft: #fbf0de;
  --paper: #f7f8f7;
  --white: #ffffff;
  --ink: #15243a;
  --ink-2: #44566b;
  --ink-3: #6f8091;
  --line: #e2e7ea;
  --line-2: #eef1f3;

  --available: #69a98a;
  --available-bg: #e9f5ed;
  --available-ink: #3e785b;
  --occupied: #5488ba;
  --occupied-bg: #e8f2fc;
  --occupied-ink: #32658f;
  --upcoming: #d4a257;
  --upcoming-bg: #fbf0de;
  --upcoming-ink: #966728;
  --inactive: #b9c2c7;
  --inactive-bg: #f0f2f3;
  --inactive-ink: #7c8991;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(21, 36, 58, .05), 0 12px 32px -12px rgba(21, 36, 58, .18);
  --shadow-lg: 0 2px 4px rgba(21, 36, 58, .05), 0 32px 64px -24px rgba(21, 36, 58, .32);
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; color: var(--navy); }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.06; }

h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--amber); }

h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; }

h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }

p { margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: var(--white); text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 3px; border-radius: 6px; }

.lead { color: var(--ink-2); font-size: 1.15rem; line-height: 1.6; }

.eyebrow { margin-bottom: 16px; color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* The logo's tail: a short line that ends in an amber dot */
.eyebrow-line { position: relative; display: inline-block; padding-left: 50px; color: var(--ink-3); }
.eyebrow-line::before { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--navy); }
.eyebrow-line::after { content: ""; position: absolute; left: 34px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--amber); }
.eyebrow-on-dark { color: #a9b6c6; }
.eyebrow-on-dark::before { background: var(--white); }
.eyebrow-on-dark::after { background: var(--amber-light); }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px -10px rgba(21, 36, 58, .6); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: #cdd6dd; background: var(--white); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-light); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--paper); }

.link-quiet { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.link-quiet:hover { color: var(--navy); }

/* Header */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand img { width: 134px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { color: var(--ink-2); font-size: .97rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.site-nav > a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 20px; margin-left: 10px; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Scroll progress drawn as the logo's timeline */
.scroll-line { position: relative; height: 2px; background: var(--line-2); }
.scroll-line-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--navy); }
.scroll-line-fill::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Hero */

.hero { position: relative; padding: 72px 0 40px; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(21, 36, 58, .045) 1px, transparent 1px); background-size: calc(100% / 12) 100%; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 56px; }

.hero-copy .lead { max-width: 520px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink-3); font-size: .93rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* App window mockup */

.app-window { border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }

.app-bar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: .82rem; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4e8; }
.app-tabs { display: flex; gap: 6px; color: var(--ink-3); }
.app-tabs > * { padding: 5px 11px; border-radius: 999px; }
.app-tabs b { background: var(--navy); color: var(--white); font-weight: 600; }
.app-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--available-ink); font-size: .78rem; font-weight: 700; }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--available); box-shadow: 0 0 0 0 rgba(105, 169, 138, .6); animation: pulse 2s infinite; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; }

.floor { position: relative; min-height: 330px; margin: 16px; border-radius: 12px; background-color: #fbfcfc; background-image: radial-gradient(#dfe5e9 1px, transparent 1px); background-size: 16px 16px; }

.res {
  position: absolute; left: var(--x); top: var(--y);
  display: grid; place-items: center;
  width: 17%; aspect-ratio: 1;
  border: 2px solid; border-radius: 12px;
  font-size: .78rem; font-weight: 700;
  transition: background-color .6s, border-color .6s, color .6s, box-shadow .3s;
}
.res.round { border-radius: 50%; }
.res.wide { width: 28%; aspect-ratio: 2 / 1; }
.res.tall { width: 18%; aspect-ratio: 1 / 1.45; }
.res.is-selected { box-shadow: 0 0 0 4px rgba(21, 36, 58, .12); }

.available { border-color: var(--available); background: var(--available-bg); color: var(--available-ink); }
.occupied { border-color: var(--occupied); background: var(--occupied-bg); color: var(--occupied-ink); }
.upcoming { border-color: var(--upcoming); background: var(--upcoming-bg); color: var(--upcoming-ink); }
.inactive { border-color: var(--inactive); background: var(--inactive-bg); color: var(--inactive-ink); }

.inspector { padding: 18px 16px; border-left: 1px solid var(--line-2); font-size: .82rem; }
.inspector-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.inspector-head strong { display: block; font: 600 1rem var(--font-display); }
.res-chip { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 2px solid; border-radius: 10px; font-size: .75rem; font-weight: 700; }

.status { display: inline-block; padding: 3px 9px; border: 0; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }

.inspector dl { margin: 12px 0 0; }
.inspector dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.inspector dt { color: var(--ink-3); }
.inspector dd { margin: 0; font-weight: 600; text-align: right; }
.mini-order { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--paper); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 18px 16px; color: var(--ink-3); font-size: .76rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border: 0; border-radius: 50%; }
.legend i.available { background: var(--available); }
.legend i.occupied { background: var(--occupied); }
.legend i.upcoming { background: var(--upcoming); }
.legend i.inactive { background: var(--inactive); }

/* Hour ruler under the hero */
.hero-timeline { position: relative; display: flex; justify-content: space-between; margin-top: 64px; padding-top: 14px; border-top: 2px solid var(--navy); color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.hero-timeline span { position: relative; }
.hero-timeline span::before { content: ""; position: absolute; left: 50%; top: -20px; width: 2px; height: 8px; background: var(--navy); }
.hero-timeline-now { position: absolute; left: var(--now, 62%); top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(217, 144, 61, .2); transition: left 1s; }

/* Industries */

.industries { padding: 48px 0 24px; text-align: center; }
.industries-title { color: var(--ink-3); font: 600 .95rem var(--font-body); letter-spacing: .01em; }
.chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.chip-list li { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font-size: .95rem; font-weight: 500; }

/* Sections */

.section { padding: 112px 0; }
.section-tint { background: var(--paper); }
.section-navy { background: var(--navy); color: #c8d2de; }
.section-navy h2 { color: var(--white); }
.section-navy .lead { color: #b8c4d2; }

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head .lead { margin-top: 18px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* A day with Ovyrena: vertical timeline */

.day-line { position: relative; margin: 0; padding: 0; list-style: none; --progress: 0; }
.day-line::before, .day-line::after { content: ""; position: absolute; left: 63px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.day-line::before { background: var(--line); }
.day-line::after { bottom: auto; height: calc((100% - 16px) * var(--progress)); background: var(--navy); }

.day-item { position: relative; display: grid; grid-template-columns: 96px minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; padding: 48px 0; }
.day-item::before { content: ""; position: absolute; left: 57px; top: 56px; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; background: var(--white); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.day-item.is-reached::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(217, 144, 61, .18); }

.day-time { position: absolute; left: 0; top: 52px; width: 46px; color: var(--ink-3); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; transition: color .4s; }
.day-item.is-reached .day-time { color: var(--navy); }

.day-copy { grid-column: 2; }
.day-copy h3 { font: 600 clamp(1.5rem, 2.4vw, 1.85rem)/1.2 var(--font-display); }
.day-copy p { margin-top: 14px; color: var(--ink-2); }
.day-visual { grid-column: 3; }

.ticks { margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 5px 0 5px 28px; color: var(--ink-2); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 2px; border-radius: 2px; background: var(--navy); }
.ticks li::after { content: ""; position: absolute; left: 13px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.ticks-on-dark li { color: #c8d2de; }
.ticks-on-dark li::before { background: var(--white); }
.ticks-on-dark li::after { background: var(--amber-light); }

/* Cards used in visuals */

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow); font-size: .86rem; }

.gantt { position: relative; padding: 18px 18px 20px; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; }
.gantt-head { grid-template-columns: 82px repeat(6, 1fr); padding-bottom: 8px; color: var(--ink-3); font-size: .74rem; }
.gantt-row { padding: 7px 0; border-top: 1px solid var(--line-2); }
.gantt-row > span { color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.gantt-track { position: relative; height: 32px; }
.gantt-track b { position: absolute; left: var(--s); width: var(--w); top: 0; bottom: 0; display: flex; align-items: center; padding: 0 10px; border: 0; border-left: 3px solid; border-radius: 7px; font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-track b.occupied { border-left-color: var(--occupied); }
.gantt-track b.upcoming { border-left-color: var(--upcoming); }
.gantt-track b.open { -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.gantt-now { position: absolute; top: 40px; bottom: 14px; left: calc(100px + (100% - 118px) * .44); width: 2px; background: var(--amber); }
.gantt-now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.summary { padding: 20px 22px; }
.summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.summary-head small { display: block; color: var(--ink-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.summary-head strong { font: 600 1.1rem var(--font-display); }
.summary-dates { margin-top: 6px; color: var(--ink-3); font-size: .82rem; }
.summary table { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary td { padding: 9px 0; border-top: 1px solid var(--line-2); }
.summary td:last-child { text-align: right; font-weight: 600; }
.summary td small { display: block; color: var(--ink-3); font-size: .74rem; }
.summary tr.sub td { color: var(--ink-3); font-weight: 500; }
.summary tr.total td { padding-top: 12px; border-top: 2px solid var(--navy); font-size: 1rem; font-weight: 700; }

.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow-lg); font-size: .8rem; }
.kds-col h4 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 4px; color: #b8c4d2; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.kds-col h4 b { padding: 1px 7px; border-radius: 999px; background: var(--navy-3); color: var(--white); }
.kds-card { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; padding: 11px 12px; border-top: 3px solid #8fa0b4; border-radius: 9px; background: var(--white); color: var(--ink-2); }
.kds-card strong { color: var(--navy); font-size: .82rem; }
.kds-card em { margin-top: 4px; color: var(--ink-3); font-size: .72rem; font-style: normal; }
.kds-card.preparing { border-top-color: var(--upcoming); }
.kds-card.ready { border-top-color: var(--available); }

.team { padding: 18px 20px 8px; }
.team-head { display: flex; justify-content: space-between; padding-bottom: 8px; color: var(--ink-3); font-size: .8rem; }
.team-head strong { color: var(--navy); font: 600 1.05rem var(--font-display); }
.team ul { margin: 0; padding: 0; list-style: none; }
.team li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.team li div { flex: 1; min-width: 0; }
.team li b { display: block; }
.team li small { color: var(--ink-3); font-size: .76rem; }
.avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--h) 45% 92%); color: hsl(var(--h) 40% 32%); font-size: .74rem; font-style: normal; font-weight: 700; }

.receipt { padding: 22px; font-variant-numeric: tabular-nums; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed #cfd7dd; }
.receipt-head strong { font: 600 1.05rem var(--font-display); }
.receipt-lines p { display: flex; justify-content: space-between; padding: 8px 0; }
.receipt-lines p.muted { color: var(--ink-3); }
.receipt-lines p.total { margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--navy); font-size: 1rem; font-weight: 700; }
.receipt-foot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--paper); color: var(--ink-3); font-size: .8rem; }
.receipt-foot span:nth-child(even) { color: var(--navy); font-weight: 600; text-align: right; }

.stats { padding: 20px 22px 18px; }
.stats-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats-kpis small { display: block; color: var(--ink-3); font-size: .74rem; }
.stats-kpis strong { font: 600 1.4rem var(--font-display); }
.stats-kpis strong.warn { color: var(--upcoming-ink); }
.attention { margin: 16px 0 0; padding: 0; list-style: none; }
.attention li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.attention li div { flex: 1; min-width: 0; }
.attention b { display: block; }
.attention small { color: var(--ink-3); font-size: .76rem; }

/* Feature grid */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature-grid li { position: relative; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-grid li::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 22px; border-radius: 2px; background: var(--navy); }
.feature-grid li::after { content: ""; position: absolute; top: 27px; left: 60px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.feature-grid p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; }

/* Steps: horizontal timeline */

.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 85%, rgba(21, 36, 58, 0) 100%); }
.steps li { position: relative; padding-top: 40px; }
.step-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 3px solid var(--white); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.steps li:last-child .step-dot { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.steps small { color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.steps h3 { margin-top: 6px; font: 600 1.45rem/1.25 var(--font-display); }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* Mobile app */

.mobile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; }
.mobile-copy .lead { margin-top: 18px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-badge { display: inline-flex; flex-direction: column; padding: 10px 20px; border: 1px solid var(--navy-3); border-radius: 12px; color: var(--white); font-weight: 600; line-height: 1.25; }
.store-badge small { color: var(--amber-light); font-size: .74rem; font-weight: 600; }
.store-badges-cta { justify-content: center; margin-top: 14px; }
.store-badges-footer { margin-top: 20px; }
.store-badges-footer .store-badge { padding: 8px 14px; font-size: .88rem; }
.cta .cta-apps { margin: 40px 0 0; color: #a9b6c6; font-size: .95rem; }

.phone { justify-self: center; width: 290px; padding: 12px; border-radius: 44px; background: #0d1828; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px var(--navy-3); }
.phone-screen { display: flex; flex-direction: column; gap: 10px; min-height: 540px; padding: 44px 16px 14px; border-radius: 34px; background: var(--paper); color: var(--ink); font-size: .82rem; }
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.phone-top b { font: 600 1.3rem var(--font-display); }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.queue-item b { display: block; }
.queue-item small { color: var(--ink-3); font-size: .74rem; }
.queue-item.urgent { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 144, 61, .15); }
.phone-tabs { display: flex; justify-content: space-around; margin-top: auto; padding: 10px 6px 4px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.phone-tabs .on { color: var(--navy); }

/* Pricing */

.billing-toggle { display: flex; width: max-content; margin: -24px auto 44px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .95rem var(--font-body); cursor: pointer; }
.billing-toggle button.is-active { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(21, 36, 58, .12); }
.billing-toggle button span { padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--upcoming-ink); font-size: .74rem; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.plan h3 { font: 600 1.5rem var(--font-display); }
.plan-for { min-height: 3em; margin-top: 6px; color: var(--ink-3); font-size: .92rem; line-height: 1.5; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 18px; }
.price strong { font: 600 2.5rem/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); font-size: .92rem; }
.price-text strong { font-size: 2rem; line-height: 1.25; }
.plan-limits { flex: 1; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line-2); list-style: none; }
.plan-limits li { padding: 5px 0; color: var(--ink-2); }
.plan-limits b { color: var(--navy); }
.plan-featured { border: 2px solid var(--navy); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: .75rem; font-weight: 700; }
.plan-dark { border-color: var(--navy); background: var(--navy); color: #c8d2de; }
.plan-dark h3, .plan-dark .price strong { color: var(--white); }
.plan-dark .plan-for { color: #a9b6c6; }
.plan-dark .plan-limits { border-top-color: var(--navy-3); }
.plan-dark .plan-limits li { color: #c8d2de; }
.pricing-note { max-width: 640px; margin: 32px auto 0; color: var(--ink-3); font-size: .92rem; text-align: center; }
.plan-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.6fr) auto; align-items: center; gap: 16px 40px; padding: 26px 30px; }
.plan-wide .plan-for { min-height: 0; }
.plan-wide .price { margin: 0; }
.plan-wide .plan-limits { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; border-top: 0; }
@media (max-width: 1080px) {
  .plan-wide { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 640px) {
  .plan-wide { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 26px 26px; }
  .plan-wide .price { margin: 22px 0 18px; }
  .plan-wide .plan-limits { display: block; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--navy-3); }
  .plan-wide .btn { width: 100%; }
}

/* FAQ */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head > p:last-child { margin-top: 18px; color: var(--ink-2); }
.faq-grid .section-head a { color: var(--navy); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; color: var(--navy); font-size: 1.07rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details[open] summary::before { background: var(--amber); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); }

/* Final CTA */

.cta { padding: 110px 0 0; background: var(--navy); color: #c8d2de; text-align: center; overflow: hidden; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.cta p { max-width: 520px; margin: 18px 0 34px; font-size: 1.1rem; }
/* The y-tail of the logo: down from the button, then along to the amber dot */
.cta-line { position: relative; width: 100%; height: 110px; }
.cta-line i { position: absolute; left: 50%; top: 20px; width: min(240px, 40%); height: 56px; margin-left: -1px; border-left: 2px solid rgba(255, 255, 255, .35); border-bottom: 2px solid rgba(255, 255, 255, .35); border-bottom-left-radius: 18px; }
.cta-line i::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber-light); }

/* Footer */

.site-footer { padding: 24px 0 40px; background: var(--navy); color: #a9b6c6; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 48px var(--gutter) 40px; border-top: 1px solid var(--navy-3); }
.footer-brand img { width: 134px; }
.footer-brand p { max-width: 280px; margin-top: 16px; }
.site-footer h4 { margin-bottom: 14px; color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer nav a { display: block; padding: 4px 0; color: #a9b6c6; text-decoration: none; }
.site-footer nav a:hover { color: var(--white); }
.footer-bottom { font-size: .85rem; }

/* Analytics and Portfolio visuals */

.analytics, .portfolio { padding: 20px 22px; }
.analytics-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.analytics-head strong { font: 600 1.1rem var(--font-display); }
.filter-pill { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: .74rem; white-space: nowrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.kpi small { display: block; color: var(--ink-3); font-size: .72rem; }
.kpi strong { display: block; margin-top: 2px; color: var(--navy); font: 600 1.15rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi em, .pf-row em { font-size: .72rem; font-style: normal; font-weight: 700; }
em.up { color: var(--available-ink); }
em.down { color: #b4533a; }

.heat { margin-top: 16px; font-variant-numeric: tabular-nums; }
.heat-title { margin-bottom: 8px; color: var(--ink-3); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.heat-row { display: grid; grid-template-columns: 34px repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.heat-row > span { align-self: center; color: var(--ink-3); font-size: .7rem; }
.heat-head > span { text-align: center; }
.heat-row i { display: grid; place-items: center; height: 22px; border-radius: 5px; font-size: .66rem; font-style: normal; font-weight: 600; }
.heat-row i.l1 { background: #eef3f8; color: var(--ink-3); }
.heat-row i.l2 { background: #c9dbee; color: var(--occupied-ink); }
.heat-row i.l3 { background: #7fa7cf; color: var(--white); }
.heat-row i.l4 { background: var(--navy); color: var(--white); }

.pf-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) 76px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.pf-row > span:nth-child(n+2) { text-align: right; }
.pf-row b { display: block; color: var(--navy); }
.pf-head { padding-top: 0; border-top: 0; color: var(--ink-3); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pf-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-name > span { min-width: 0; }
.pf-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-name small { color: var(--ink-3); font-size: .72rem; }
.pf-total { border-top: 2px solid var(--navy); color: var(--navy); font-weight: 700; }
.spark { display: inline-block; vertical-align: middle; }
.spark polyline { fill: none; stroke: var(--occupied); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.down polyline { stroke: #c9846f; }
.pf-attention { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--upcoming-ink); font-size: .8rem; }

.portfolio-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
.portfolio-copy .lead { margin-top: 18px; }
.section-navy .portfolio { border-color: transparent; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }

.footer-note { margin-top: 12px !important; color: #8597ad; font-size: .82rem; line-height: 1.5; }

/* Inner pages */

.site-nav > a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.site-nav > a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--amber); }

.section-tight { padding: 72px 0; }
.section-flush { padding: 0 0 96px; }

.text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy-2); }

.page-hero { position: relative; padding: 88px 0 72px; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(21, 36, 58, .045) 1px, transparent 1px); background-size: calc(100% / 12) 100%; mask-image: linear-gradient(180deg, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 640px; margin-top: 22px; }

.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s; }
.jump-nav a:hover { border-color: var(--navy); color: var(--navy); }

/* Features page */

.feature-row { padding: 88px 0; border-top: 1px solid var(--line-2); }
.feature-row:first-of-type { border-top: 0; }
.feature-row-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 72px; }
.feature-row-flip .feature-row-copy { order: 2; }
.feature-row-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.feature-row-copy .lead { margin-top: 18px; font-size: 1.08rem; }
.feature-row-visual .app-window .floor { min-height: 300px; }

.list-card { padding: 18px 20px 8px; }
.list-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.list-card-head strong { font: 600 1.05rem var(--font-display); }
.search-pill { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: .75rem; }
.list-card ul { margin: 0; padding: 0; list-style: none; }
.list-card li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.list-card li div { flex: 1; min-width: 0; }
.list-card li b { display: block; }
.list-card li small, .list-card li > span:not(.status) { color: var(--ink-3); font-size: .76rem; }

/* Industries page */

.industries-list { display: grid; gap: 20px; }
.industry { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); scroll-margin-top: calc(var(--header-h) + 24px); }
.industry-index { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.industry-index::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--navy); }
.industry h2 { margin-top: 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.industry-intro p { margin: 14px 0 20px; color: var(--ink-2); }
.industry-map { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 28px; padding-left: 40px; border-left: 1px solid var(--line-2); }
.industry-map h3 { margin-bottom: 14px; color: var(--ink-3); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.industry-map .ticks { margin-top: 0; }
.industry-map .ticks li { font-size: .93rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 6px 12px; border: 1.5px solid var(--available); border-radius: 10px; background: var(--available-bg); color: var(--available-ink); font-size: .88rem; font-weight: 600; }
.offer-list { margin: 0; padding: 0; list-style: none; }
.offer-list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--navy); font-size: .93rem; font-weight: 600; }
.offer-list li:first-child { padding-top: 0; }
.offer-list small { color: var(--ink-3); font-weight: 500; }

.model { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: model; }
.model::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--navy); }
.model li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 36px; }
.model li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 3px solid var(--paper); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.model li:last-child::before { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.model b { font: 600 1.3rem var(--font-display); color: var(--navy); }
.model span { color: var(--ink-2); font-size: .93rem; }

/* Pricing page */

.section-flush .billing-toggle { margin-top: 0; }

.trial-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 48px; border-radius: 24px; background: var(--navy); color: #c8d2de; }
.trial-box h2 { color: var(--white); font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.trial-box p:not(.eyebrow) { margin-top: 12px; }
.trial-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.trial-limits li { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--navy-3); border-radius: 14px; }
.trial-limits b { color: var(--white); font: 600 1.8rem/1.1 var(--font-display); }
.trial-limits span { font-size: .88rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--white); font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 22px; color: var(--navy); font: 600 1.15rem var(--font-display); }
.compare thead th.featured { color: var(--amber); }
.compare tbody th { color: var(--ink-2); font-weight: 500; text-align: left; }
.compare tbody td { color: var(--navy); font-weight: 600; }
.compare tr.group th { padding-top: 26px; color: var(--ink-3); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--available-bg); color: var(--available-ink); font-size: .8rem; }

/* Contact page */

.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.contact-card::before { content: ""; width: 34px; height: 2px; margin-bottom: 22px; border-radius: 2px; background: var(--navy); }
.contact-card h2 { font-size: 1.35rem; }
.contact-card p { flex: 1; margin: 12px 0 24px; color: var(--ink-2); font-size: .97rem; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; }
.contact-split .lead { margin: 18px 0 30px; }
.checklist { padding: 32px; }
.checklist h3 { font: 600 1.3rem var(--font-display); }
.checklist > p { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: .95rem; }

/* Legal pages */

.page-hero-legal { padding-bottom: 48px; }
.legal-meta { margin-top: 14px; color: var(--ink-3); font-size: .95rem; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; }
.legal-toc > p { margin-bottom: 12px; color: var(--ink-3); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-2); list-style: none; }
.legal-toc a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.legal-toc a:hover { color: var(--navy); }

.prose { min-width: 0; max-width: 740px; color: var(--ink-2); }
.prose-intro { font-size: 1.08rem; }
.prose section { padding-top: 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { margin-bottom: 14px; font-size: 1.55rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose .table-scroll + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li { padding: 3px 0; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--navy); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.prose b { color: var(--navy); }

.draft-note { margin-bottom: 32px; padding: 18px 20px; border: 1px solid #efd3a9; border-left: 4px solid var(--amber); border-radius: 12px; background: var(--amber-soft); color: var(--upcoming-ink); font-size: .95rem; }
.draft-note strong { color: var(--navy); }
mark.todo { padding: 1px 5px; border-radius: 4px; background: #fde9b8; color: #7a4f12; font-weight: 600; }

.legal-table { width: 100%; min-width: 520px; margin-top: 16px; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--navy); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

/* Reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(105, 169, 138, .55); }
  70% { box-shadow: 0 0 0 7px rgba(105, 169, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(105, 169, 138, 0); }
}

/* Tablet */

@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 680px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .day-item { grid-template-columns: 96px minmax(0, 1fr); gap: 28px 0; }
  .day-copy, .day-visual { grid-column: 2; }
  .day-visual { max-width: 560px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-grid { gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: calc(var(--header-h) + 2px); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a { padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 1.1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin: 24px 0 0; }
  .nav-actions .link-quiet { padding: 12px 0; text-align: center; }
  .nav-actions .btn { min-height: 50px; }
  body.nav-open { overflow: hidden; }

  .mobile-grid { grid-template-columns: 1fr; }
  .phone { margin-top: 8px; }
}

/* Mobile */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-timeline { margin-top: 44px; }
  .hero-timeline span:nth-child(even) { visibility: hidden; }

  .app-body { grid-template-columns: 1fr; }
  .inspector { border-left: 0; border-top: 1px solid var(--line-2); }
  .floor { min-height: 250px; margin: 12px; }
  .res { font-size: .7rem; border-radius: 10px; }
  .app-tabs span:last-child { display: none; }

  .day-line::before, .day-line::after { left: 6px; }
  .day-item { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0 32px 32px; }
  .day-item::before { left: 0; top: 36px; }
  .day-time { position: static; width: auto; margin-bottom: -12px; text-align: left; }
  .day-copy, .day-visual { grid-column: 1; }

  .kds { grid-template-columns: 1fr; }
  .kds-col:first-child .kds-card + .kds-card { display: none; }
  .kds-col:not(:first-child) h4 { margin-top: 4px; }
  .gantt-head, .gantt-row { grid-template-columns: 70px 1fr; }
  .gantt-head { grid-template-columns: 70px repeat(6, 1fr); }
  .gantt-now { left: calc(88px + (100% - 106px) * .44); }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 36px; }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 80%, rgba(21, 36, 58, 0) 100%); }
  .steps li { padding-top: 0; }
  .step-dot { left: -36px; top: 4px; }

  .billing-toggle { margin-top: -16px; }
  .billing-toggle button { padding: 0 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }

  .phone { width: 100%; max-width: 300px; }
  .phone-screen { min-height: 480px; }

  .faq summary { font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Inner pages: tablet and mobile */

@media (max-width: 1080px) {
  .feature-row-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row-flip .feature-row-copy { order: 0; }
  .feature-row-visual { max-width: 620px; }
  .industry { grid-template-columns: 1fr; gap: 28px; }
  .industry-map { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .trial-box { grid-template-columns: 1fr 1fr; }
  .trial-box .btn { grid-column: 1 / -1; justify-self: start; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .legal-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .site-nav > a[aria-current="page"]::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--amber); }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
  .legal-toc ol { columns: 2; column-gap: 24px; }
  .model { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .model::before { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .jump-nav { flex-wrap: nowrap; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .jump-nav::-webkit-scrollbar { display: none; }
  .jump-nav a { flex: 0 0 auto; }
  .section-tight { padding: 48px 0; }
  .section-flush { padding-bottom: 72px; }
  .feature-row { padding: 64px 0; }
  .industry { padding: 26px 20px; border-radius: 16px; }
  .industry-map { grid-template-columns: 1fr; gap: 24px; }
  .model { grid-template-columns: 1fr; gap: 20px; padding-left: 36px; }
  .model::before { display: block; left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .model li { padding-top: 0; }
  .model li::before { left: -36px; top: 6px; }
  .trial-box { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; border-radius: 18px; }
  .trial-box .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .prose h2 { font-size: 1.35rem; }
}

/* Analytics and Portfolio: tablet and mobile */

@media (max-width: 1080px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-visual { max-width: 620px; }
}

@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics, .portfolio { padding: 16px; }
  .analytics-head { flex-wrap: wrap; }
  .heat-row { grid-template-columns: 30px repeat(6, minmax(0, 1fr)); gap: 3px; }
  .heat-row i { font-size: .6rem; }
  .pf-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr); }
  .pf-row > span:nth-child(4) { display: none; }
  .pf-name .avatar { display: none; }
  .pf-head { font-size: .64rem; letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
