/* Keyhost website: light theme from the Keyhost design system */
:root {
  --surface-0: #f3f4f2; --surface-1: #ffffff; --surface-2: #e7e9e8;
  --ink: #182029; --ink-muted: #5b6673; --line: #cdd2d6;
  --brass: #c9a24a; --brass-deep: #7f6118; --on-brass: #182029;
  --free: #237a48; --fault: #b7362a; --focus: #2f6fa8; --info: #2f6fa8;
  --k0: #182029; --k1: #212b36; --kline: #3a4654; --kink: #f3f4f2; --kmuted: #aeb8c2; --kbrass: #e0bf6a;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --shadow-float: 0 8px 24px rgba(24, 32, 41, 0.14);
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-0); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: var(--brass-deep); font-weight: 500; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface-0); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.sub { color: var(--ink-muted); font-size: 18px; line-height: 28px; margin-top: 12px; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid var(--ink); background: var(--ink); color: var(--surface-0); font: 600 16px/24px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2c3745; border-color: #2c3745; }
.btn.secondary { background: var(--surface-1); color: var(--ink); border-color: var(--ink-muted); }
.btn.secondary:hover { background: var(--surface-2); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: var(--r-lg); }
.btn:disabled { opacity: .5; cursor: default; }
.quiet { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 4px; }
.quiet:hover { text-decoration: underline; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 244, 242, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brass-deep); }
.top-actions { display: flex; align-items: center; gap: 16px; }

/* Hero */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: 24px 0 32px; max-width: 560px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 32px 0 0; font-size: 15px; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--free); }

.hero-art { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1 / 1.05; }
.bank { position: absolute; right: 0; top: 0; width: 78%; height: auto; }
.kiosk-card { position: absolute; left: 0; bottom: 18%; width: 64%; background: var(--k0); color: var(--kink); border: 1px solid var(--kline); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-float); }
.kc-q { font-weight: 700; font-size: 17px; line-height: 22px; margin-bottom: 14px; letter-spacing: -0.01em; }
.kc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc-actions span { border-radius: var(--r-md); padding: 22px 10px 10px; font-size: 13px; font-weight: 600; line-height: 16px; }
.kc-pick { background: var(--brass); color: var(--on-brass); }
.kc-drop { background: var(--k1); border: 1px solid var(--kline); }
.note-card { position: absolute; right: 2%; bottom: 0; width: 62%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-float); font-size: 14px; line-height: 20px; }
.nc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.nc-top img { border-radius: 5px; }
.nc-top span { margin-left: auto; color: var(--ink-muted); font-weight: 400; }
.nc-body { color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top-align { align-items: start; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--ink); color: var(--surface-0); font: 600 18px/1 var(--mono); margin-bottom: 20px; }
.steps p { color: var(--ink-muted); margin-top: 8px; }
.callout { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); }
.callout p { font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); flex: none; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--surface-0); }
.feature p { color: var(--ink-muted); margin-top: 8px; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: var(--r-sm); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23182029' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Phone mock */
.phone { justify-self: center; width: 300px; max-width: 100%; border-radius: 40px; background: var(--k0); padding: 12px; box-shadow: var(--shadow-float); }
.ph-screen { background: var(--surface-0); border-radius: 30px; padding: 32px 18px 22px; }
.ph-title { font-weight: 700; font-size: 22px; line-height: 28px; }
.ph-sub { color: var(--ink-muted); font-size: 13px; margin-bottom: 16px; }
.ph-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.ph-label { font-weight: 600; font-size: 14px; }
.ph-codes { display: flex; gap: 16px; margin: 8px 0 12px; }
.ph-codes span { display: block; font-size: 12px; color: var(--ink-muted); }
.ph-codes b { font: 600 19px/26px var(--mono); letter-spacing: .08em; color: var(--brass-deep); }
.ph-btn { display: inline-block; border: 1px solid var(--ink-muted); border-radius: var(--r-md); padding: 5px 12px; font-size: 13px; font-weight: 600; }
.ph-ev { display: flex; gap: 10px; padding: 12px 2px 0; font-size: 13px; line-height: 18px; }
.ph-ev + .ph-ev { border-top: 1px solid var(--line); margin-top: 12px; }
.ph-ev i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.ph-ev i.in { background: var(--info); } .ph-ev i.out { background: var(--free); }
.ph-ev span { display: block; color: var(--ink-muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 16px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--surface-0); }
.plan.best { border: 2px solid var(--ink); padding: 31px; }
.plan .tag { position: absolute; top: -14px; left: 31px; background: var(--brass); color: var(--on-brass); font-size: 13px; line-height: 18px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-sm); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.price b { font: 600 48px/56px var(--mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-muted); }
.per { color: var(--ink-muted); margin-top: 4px; }
.plan .ticks { margin-bottom: 32px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Location */
.loc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--surface-1); }
.loc-head { display: flex; align-items: center; gap: 8px; color: var(--free); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.loc p { color: var(--ink-muted); margin: 8px 0 24px; font-size: 17px; line-height: 26px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; line-height: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
details[open] summary::after { transform: rotate(-135deg); top: 31px; }
details p { color: var(--ink-muted); padding: 0 0 20px; max-width: 680px; }

/* Form */
.form { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-size: 13px; line-height: 18px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.opt { color: var(--ink-muted); font-weight: 400; }
input, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--ink-muted); border-radius: var(--r-sm); background: var(--surface-1); color: var(--ink); font: 16px/22px var(--sans); }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--fault); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; font-weight: 500; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choices input { width: auto; accent-color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #f8e9e7; color: var(--fault); padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 16px; }
.fine { color: var(--ink-muted); font-size: 13px; margin-top: 12px; }
.form-done { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-done h3 { font-size: 24px; line-height: 30px; }
.form-done p { color: var(--ink-muted); margin-top: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--surface-1); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot nav a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; color: var(--ink-muted); font-size: 13px; line-height: 18px; max-width: 760px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { padding: 48px 0 64px; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 48px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 12px; }
  .logo img { height: 26px; }
  .top-actions { gap: 8px; }
  .top-actions .quiet { font-size: 14px; }
  .top-actions .btn { height: 40px; padding: 0 14px; font-size: 15px; }
  .lead { font-size: 18px; line-height: 28px; }
  .btn-lg { width: 100%; }
  .section { padding: 64px 0; }
  .sub { font-size: 17px; line-height: 26px; }
  .steps, .features, .plans, .fields { grid-template-columns: 1fr; }
  .steps { margin-top: 32px; }
  .features, .plans { margin-top: 32px; }
  .plan, .form, .loc, .form-done { padding: 24px; }
  .plan.best { padding: 23px; }
  .plan .tag { left: 23px; }
  .plan .btn { align-self: stretch; }
  .hero-art { width: 100%; max-width: 380px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
