/* DO Sign website. Colours, fonts and the rings come from the brand (branding/dosign/brand.json). */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #0b1b33;          /* the wall: header, dark sections, headings on light */
  --navy-2: #13284a;
  --navy-deep: #08142a;     /* footer */
  --blue: #008bd3;          /* brand Blue 700: icons, focus rings, large accents */
  --blue-press: #0071ad;    /* button fill: white on it is 5.3:1, on #008bd3 only 3.7:1 */
  --blue-press-hover: #005f92;
  --sky: #7fc6ef;           /* accents on navy */
  --glass: #f3f6fa;         /* light sections */
  --live: #1f9d6b;          /* online / ready, and nothing else */
  --ink: #0b1b33;
  --ink-2: #4a5872;         /* secondary text on light (6.6:1) */
  --mist: #b8c6da;          /* secondary text on navy */
  --line: #dde4ee;
  --error: #b42335;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Now', 'Baloo 2', 'Poppins', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --rings: radial-gradient(circle at 88% -8%, transparent 0 210px, rgba(255,255,255,.05) 211px 330px, transparent 331px),
           radial-gradient(circle at 88% -8%, transparent 0 400px, rgba(255,255,255,.035) 401px 470px, transparent 471px),
           linear-gradient(160deg, #0b1b33 0%, #13284a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 17px/1.65 var(--font-body); color: var(--ink); background: #fff; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--font-head); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 5.6vw, 70px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { margin: 0; font: 600 20px/1.3 var(--font-body); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--sky); }
@media (min-width: 900px) { body { font-size: 18px; } }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--glass { background: var(--glass); }
.section--navy { background: var(--rings); color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 18px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }
.muted { color: var(--ink-2); }
.on-navy .muted { color: var(--mist); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 10px;
       font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--blue-press); color: #fff; }
.btn-primary:hover { background: var(--blue-press-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn-dark-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-dark-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header { position: relative; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-height: 72px; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { width: auto; height: 34px; }
.nav { display: flex; flex-direction: column; gap: 16px; width: 100%; padding-bottom: 20px; }
.nav-links { list-style: none; }
.nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #dbe4f0; font: 500 17px var(--font-body); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; flex-direction: column; gap: 10px; }
.menu-button { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1.5px solid rgba(255,255,255,.35);
               border-radius: 10px; background: transparent; color: #fff; font: 600 15px var(--font-body); cursor: pointer; }
.menu-button svg { width: 20px; height: 20px; }
/* With JavaScript the phone menu folds behind the button; without it the links simply stay listed */
.site-header.has-menu { position: sticky; top: 0; }
.has-menu .nav { display: none; }
.has-menu .nav.is-open { display: flex; }
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; }
  .site-header .wrap { flex-wrap: nowrap; height: 72px; }
  .menu-button { display: none; }
  .nav, .has-menu .nav { display: flex; flex-direction: row; align-items: center; gap: 28px; width: auto; margin-left: auto; padding: 0; }
  .nav-links { display: flex; gap: 26px; }
  .nav-links a { padding: 6px 0; border: 0; font-size: 15px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px var(--sky); }
  .nav-actions { flex-direction: row; }
}

/* Hero: the screen lights up once, like a DO Sign screen coming on */
.hero { background: var(--rings); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(44px, 5vw, 64px); align-items: center; }
.hero .lead { max-width: 36ch; margin-top: 24px; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.runs-on { max-width: 40ch; margin-top: 28px; color: var(--mist); font-size: 15px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); } }

.screen { margin: 0; }
.screen-bezel { padding: clamp(8px, 1vw, 12px); border-radius: 16px; background: #0d0f14; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.screen-glass { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000;
                animation: power-on 1.4s ease-out .25s backwards; }
.screen-glass video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes power-on { 0% { filter: brightness(0); } 40% { filter: brightness(1.25); } 100% { filter: brightness(1); } }
.screen-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; color: var(--mist); font-size: 14px; }
.screen-status .name { color: #fff; font-weight: 600; }
.screen-status .state { display: inline-flex; align-items: center; gap: 7px; color: #3fbf89; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(31,157,107,.28); }

/* What DO Sign does */
.features { display: grid; gap: 40px 48px; list-style: none; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 13px; background: var(--blue); color: #fff; }
.icon svg { width: 26px; height: 26px; }
.features p { margin-top: 8px; color: var(--ink-2); }

/* One platform for every screen */
.devices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; }
.devices li { padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(11,27,51,.06); }
.devices p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.devices-note { margin-top: 28px; color: var(--ink-2); font-size: 15px; }
/* On a phone two columns squeeze the text: one tile per row, the icon beside its words */
@media (max-width: 599px) {
  .devices { grid-template-columns: 1fr; gap: 12px; }
  .devices li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 18px; }
  .devices .icon { grid-row: span 2; margin: 0; }
  .devices p { margin-top: 0; }
}
.also { margin-top: clamp(48px, 6vw, 72px); padding-top: 36px; border-top: 1px solid var(--line); }
.also h3 { margin-bottom: 20px; }
.checklist { list-style: none; columns: 2 320px; column-gap: 48px; }
.checklist--3 { columns: 3 260px; }
.checklist li { position: relative; break-inside: avoid; padding: 0 0 14px 32px; }
.checklist li::before, .ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* How it works */
.how { display: grid; gap: 48px; align-items: center; }
.how h2 { margin-bottom: 36px; }
.steps { display: grid; gap: 30px; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; grid-row: span 2; width: 52px; height: 52px; border: 2px solid var(--blue); border-radius: 50%;
                    color: var(--navy); font: 800 24px/1 var(--font-head); }
.steps p { color: var(--ink-2); }
.how-figure { margin: 0; }
/* The device pictures are cut out without a shadow; this one follows their shape */
.how-figure img { filter: drop-shadow(0 26px 34px rgba(11,27,51,.22)); }
.kiosk-figure img { filter: drop-shadow(0 30px 44px rgba(0,0,0,.45)); }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Touch kiosks */
.kiosk { display: grid; gap: 48px; align-items: center; }
.kiosk .lead { margin-top: 20px; }
.kiosk-figure { margin: 0; }
.kiosk-figure img { width: auto; max-height: 640px; margin: 0 auto; }
.ticks { display: grid; gap: 12px; margin: 28px 0 34px; list-style: none; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { background-color: var(--live); }
@media (min-width: 960px) { .kiosk { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
@media (max-width: 959px) { .kiosk-figure { order: 2; } .kiosk-figure img { max-height: 480px; } }

/* Where it fits: each use is a small screen showing the kind of thing it would show */
.uses { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; }
.mini-screen { margin-bottom: 20px; padding: 7px; border-radius: 10px; background: #0d0f14; box-shadow: 0 14px 30px rgba(11,27,51,.16); }
.mini-screen span { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 8px; border-radius: 4px; color: #fff; font: 800 clamp(20px, 2vw, 25px)/1.1 var(--font-head); text-align: center; }
.ms-retail span { background: linear-gradient(135deg, #ff8a00, #e52e71); }
.ms-office span { background: linear-gradient(135deg, #00b4db, #0083b0); }
.ms-food span { background: linear-gradient(135deg, #1f9d6b, #0b6e4f); }
.ms-lobby span { background: linear-gradient(135deg, #0b1b33, #2b4c80); }
.uses p { margin-top: 8px; color: var(--ink-2); }

/* Closing band */
.cta-band { padding: clamp(56px, 7vw, 88px) 0; background: var(--rings); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band p { max-width: 46ch; margin-top: 12px; color: var(--mist); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.call { color: #dbe4f0; font-weight: 500; }

/* Footer */
.site-footer { padding: 56px 0 32px; background: var(--navy-deep); color: var(--mist); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-brand img { width: auto; height: 30px; margin-bottom: 12px; }
.footer-title { margin-bottom: 10px; color: #fff; font: 600 15px var(--font-body); }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* Demo video, opened large */
.demo-dialog { width: min(1100px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; }
.demo-dialog::backdrop { background: rgba(4,10,22,.88); }
.demo-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.demo-dialog video { width: 100%; border-radius: 10px; background: #000; }

/* Pricing */
.page-intro { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); background: var(--rings); color: #fff; }
.page-intro .lead { max-width: 52ch; margin-top: 20px; color: var(--mist); }
.plans { display: grid; gap: 28px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan header { padding-bottom: 20px; }
.plan h3 { font: 800 34px/1 var(--font-head); }
.plan header p { margin-top: 8px; color: var(--ink-2); }
.plan dl { margin: 0; }
.plan dl > div { padding: 13px 0; border-top: 1px solid var(--line); }
.plan dt { color: var(--ink-2); font-size: 14px; }
.plan dd { margin: 2px 0 0; font-weight: 500; }
.plan .btn { width: 100%; margin-top: 24px; }
.plan--featured { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 24px 60px rgba(11,27,51,.25); }
.plan--featured header p, .plan--featured dt { color: var(--mist); }
.plan--featured dl > div { border-top-color: rgba(255,255,255,.14); }
.badge { position: absolute; top: -14px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font: 600 13px/1.4 var(--font-body); }
/* Side by side, the rows line up across the three plans */
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); gap: 0 24px; }
  .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; }
  .plan dl { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
  .plan .btn { align-self: end; }
}

.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font: 600 18px/1.4 var(--font-body); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
                      transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { max-width: 62ch; padding-bottom: 22px; color: var(--ink-2); }

/* Get a quote */
.quote .wrap { display: grid; gap: 40px; }
.quote-intro .lead { margin-top: 18px; }
.quote-intro p + p { margin-top: 18px; }
.quote-intro a { color: var(--sky); }
.quote-card { padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: #fff; color: var(--ink); }
.field-grid { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 6px; font: 600 15px var(--font-body); }
.field .opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #b9c4d4; border-radius: 10px; background: #fff; color: var(--ink);
                                                font: 400 16px/1.4 var(--font-body); }
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: #66738a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); outline: 3px solid rgba(0,139,211,.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 14px; }
.quote-form .btn { margin-top: 26px; }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-note { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-sent h3 { font: 800 32px/1.1 var(--font-head); }
.quote-sent p { margin: 12px 0 24px; }
.quote-sent:focus { outline: none; }
@media (min-width: 600px) { .field-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
@media (min-width: 960px) { .quote .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* Not found, and the form's own reply page */
.notice { display: grid; place-items: center; min-height: 60vh; padding: 80px 0; background: var(--rings); color: #fff; text-align: center; }
.notice .lead { max-width: 44ch; margin: 18px auto 30px; color: var(--mist); }
.notice ul { list-style: none; margin: 0 auto 30px; color: var(--mist); }
.notice .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
