/* KiosksNow marketing site. System fonts, no external styles. */

:root {
  --ink: #0b1020;
  --ink-2: #141a2e;
  --text: #1b2236;
  --muted: #5a6478;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --accent: #4f5bff;
  --accent-dark: #3a44d9;
  --accent-soft: #eceeff;
  --warm: #ffb547;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(11, 16, 32, 0.14);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover { background: var(--accent-dark); }
.button:active { transform: scale(0.97); }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.button[disabled] { opacity: 0.6; cursor: progress; }

.button-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button-ghost:hover { background: var(--accent-soft); }

.button-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.button-block { width: 100%; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.logo-text span { color: var(--warm); }

.logo-mark {
  width: 26px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--accent) 0%, #8b5cf6 100%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.button) { color: #c9cfdd; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:not(.button):hover { color: #fff; }

/* ------------------------------------------------------------------- hero */

.hero {
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(79, 91, 255, 0.35) 0%, transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(255, 181, 71, 0.12) 0%, transparent 60%),
    var(--ink);
  color: #c9cfdd;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 64px 0 80px;
}

.hero h1 { font-size: clamp(36px, 4.6vw, 58px); color: #fff; }
.hero h1 em { font-style: normal; color: var(--warm); }
.hero .lead { margin: 18px 0 0; font-size: 18px; max-width: 34em; }

.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.45);
  color: var(--warm);
  font-size: 14px;
  font-weight: 700;
}

/* A small lightning bolt drawn in CSS, so no icon file or emoji is needed. */
.bolt {
  width: 10px;
  height: 16px;
  background: var(--warm);
  clip-path: polygon(60% 0, 0 58%, 42% 58%, 30% 100%, 100% 40%, 56% 40%);
}

/* Live kiosk preview: a device frame around a real template screenshot. */
.hero-preview { position: relative; display: block; margin-top: 30px; text-decoration: none; }

.device {
  display: block;
  border: 10px solid #1f2638;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.device img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 400ms ease; }
.hero-preview:hover .device img { transform: scale(1.03); }

.preview-cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  transition: transform 150ms ease;
}

.hero-preview:hover .preview-cta { transform: translateX(-50%) scale(1.04); }

.play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.play::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  border-left: 9px solid var(--warm);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.preview-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; font-size: 15px; }
.preview-more a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.preview-more a:hover { text-decoration-color: var(--warm); }


.hero-form { padding: 30px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); }
.hero-form h2 { font-size: 26px; }
.hero-form > p { margin: 6px 0 20px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- sections */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

/* -------------------------------------------------------------- templates */

.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 640px; }
.section-head-row .button { flex: none; }

/* Carousel: a horizontally scrolling row that snaps card by card. It runs
   edge to edge, padded so the first card lines up with the page column. */
.carousel { position: relative; }

.carousel-track {
  --gutter: max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(380px, 82vw);
  gap: 24px;
  padding: 8px var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--warm); outline-offset: -3px; }
.carousel-track .template-card { scroll-snap-align: start; }

.carousel-arrow {
  position: absolute;
  top: 34%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 16, 32, 0.22);
  cursor: pointer;
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
}

.carousel-prev { left: max(8px, calc((100vw - 1180px) / 2 - 26px)); }
.carousel-prev::before { transform: translateX(2px) rotate(-135deg); }
.carousel-next { right: max(8px, calc((100vw - 1180px) / 2 - 26px)); }
.carousel-next::before { transform: translateX(-2px) rotate(45deg); }
.carousel-arrow:hover { background: var(--accent-soft); }

.template-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.template-shot { position: relative; display: block; background: var(--ink); }
.template-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 400ms ease; }
.template-card:hover .template-shot img { transform: scale(1.03); }

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.template-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px; }
.template-body h3 { font-size: 22px; }
.template-body p { margin: 0; color: var(--muted); font-size: 15px; }
.template-tag { font-size: 13px !important; font-weight: 700; color: var(--accent) !important; }
.tier-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tier-badge.tier-starter { background: #13804a; }

/* The "100% custom" card has artwork instead of a screenshot. */
.custom-art {
  display: grid;
  place-content: center;
  justify-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255, 181, 71, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, #26307a 100%);
  color: #fff;
}

.custom-mark { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--warm); }
.custom-sub { font-size: 20px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }

/* Pricing tiers under the carousel. */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.tier { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.tier-name { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tier strong { font-size: 26px; color: var(--ink); }
.tier span:last-child { color: var(--muted); font-size: 15px; }

.estimate-hint { min-height: 1.2em; font-size: 13px; font-weight: 700; color: #13804a; }

/* "View all templates" pop-up (a native <dialog>). */
.gallery {
  width: min(1240px, 100% - 32px);
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.gallery::backdrop { background: rgba(11, 16, 32, 0.72); backdrop-filter: blur(4px); }

.gallery-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 30px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.gallery-head h2 { font-size: 28px; }
.gallery-head .eyebrow { margin-bottom: 6px; }

.gallery-close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover { background: var(--accent-soft); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 24px 30px 32px; }
.template-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }

.note { margin: 28px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }

.steps li { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps h3 { margin: 16px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

/* ---------------------------------------------------------------- devices */

.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.device-tile { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.device-tile svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.device-tile h3 { margin: 14px 0 6px; font-size: 18px; }
.device-tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------------- faq */

.faq { display: grid; gap: 12px; }
.faq details { border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.faq summary { padding: 18px 22px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ------------------------------------------------------------------- form */

.lead-form { display: grid; gap: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd4df;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field .invalid { border-color: #d93636; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { min-height: 65px; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #13804a; }
.form-status.error { color: #c42b2b; }

.fine-print { margin: 0; font-size: 13px; color: var(--muted); }

.cta-band { background: var(--ink); text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 24px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }

/* ----------------------------------------------------------------- footer */

.site-footer { padding: 28px 0; background: #070b16; color: #8a93a8; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; }
.site-footer a { color: #c9cfdd; }

/* ----------------------------------------------------------- privacy page */

.prose { padding: 72px 0 96px; }
.prose h1 { font-size: 40px; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 36px; }
  .tiers { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .steps, .device-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav a:not(.button) { display: none; }
  .steps, .device-grid, .field-row { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
  .gallery-grid { grid-template-columns: 1fr; padding: 18px; }
  .gallery-head { padding: 20px 18px 14px; }
  .section { padding: 72px 0; }
  .hero-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
