/* Qaylo landing — Ink design system. Light theme only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--qaylo-text-primary);
  background: var(--qaylo-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
svg { display: block; }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

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

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--qaylo-text-muted);
}
.h2 { font-size: 40px; font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--qaylo-text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--qaylo-btn-h); padding: 0 18px;
  border-radius: var(--qaylo-radius-control-lg);
  border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--lg { height: var(--qaylo-btn-h-lg); padding: 0 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; }
.btn--primary { background: var(--qaylo-action); color: var(--qaylo-action-on-fill); border-color: var(--qaylo-action); }
.btn--primary:hover { background: var(--qaylo-action-hover); border-color: var(--qaylo-action-hover); }
.btn--secondary { background: var(--qaylo-surface); color: var(--qaylo-text-primary); border-color: var(--qaylo-line-strong); }
.btn--secondary:hover { background: var(--qaylo-surface-raised); border-color: var(--qaylo-text-muted); }
.btn--light { background: var(--qaylo-surface-raised); color: var(--ink-bg); border-color: var(--qaylo-surface-raised); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn:active { transform: translateY(1px); }
/* Links with no destination configured yet: visible, but not clickable. */
[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { background: inherit; }
.btn--light[aria-disabled="true"]:hover { background: var(--qaylo-surface-raised); border-color: var(--qaylo-surface-raised); }
.btn[aria-disabled="true"]:active { transform: none; }
.btn:focus-visible, .seg__btn:focus-visible, a:focus-visible { outline: 2px solid var(--qaylo-action); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { padding: 28px 0 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--qaylo-text-primary); }
.brand__mark { width: 30px; height: 30px; fill: currentColor; }
.brand__word { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__link { font-size: 15px; font-weight: 400; color: var(--qaylo-text-secondary); }
.site-nav__link:hover { color: var(--qaylo-text-primary); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--qaylo-chip); }
.seg__btn {
  height: 32px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--qaylo-text-secondary);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.seg__btn.is-active { background: var(--qaylo-surface); color: var(--qaylo-text-primary); box-shadow: var(--shadow-seg); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 44px; text-align: center; }
.hero__title {
  max-width: 860px; margin: 22px auto 0;
  font-size: 60px; font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
}
.hero__lead { max-width: 620px; margin: 24px auto 0; font-size: 20px; line-height: 1.55; color: var(--qaylo-text-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-top: 30px; font-size: 14px; color: var(--qaylo-text-secondary); }
.trust li { display: inline-flex; align-items: center; }
.trust li + li::before { content: "·"; margin: 0 14px; color: var(--qaylo-line-strong); }

/* ---------- Product screenshots ---------- */
.showcase { padding: 8px 0 40px; }
.stage { position: relative; padding-bottom: 56px; }
.shot { display: block; width: 100%; height: auto; }
.device {
  border: 8px solid var(--qaylo-action); border-radius: 22px;
  background: var(--qaylo-action); box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.device .shot { border-radius: 14px; }
.phone {
  position: absolute; right: -8px; bottom: 0;
  width: clamp(112px, 22.5%, 252px); /* 236 inner + 2 x 8 frame at 1120; same share of the stage below */
  border: 8px solid var(--qaylo-action); border-radius: 34px;
  background: var(--qaylo-action);
  box-shadow: 0 34px 64px -22px rgba(22, 24, 27, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.phone .shot { border-radius: 26px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--occupied { background: var(--qaylo-occupied); }
.dot--turning { background: var(--qaylo-turning); }
.dot--over { background: var(--qaylo-over); }
.dot--free { background: var(--qaylo-action); }

/* table chip — as rendered in the app: elapsed minutes inside, code · occupancy below */
.tchip { --size: 112px; --stroke: 7px; --state: var(--qaylo-occupied); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tchip__ring {
  display: grid; place-items: center;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--state) calc(var(--pct, 0) * 1%), var(--qaylo-ring-track) 0);
}
.tchip__disc {
  display: grid; place-items: center;
  width: calc(var(--size) - 2 * var(--stroke)); height: calc(var(--size) - 2 * var(--stroke)); border-radius: 50%;
  background: var(--qaylo-surface);
}
.tchip__disc b { font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--qaylo-text-primary); }
.tchip__cap { font-size: 14px; color: var(--qaylo-text-secondary); white-space: nowrap; }
.tchip--occupied { --state: var(--qaylo-occupied); }
.tchip--turning { --state: var(--qaylo-turning); }
.tchip--turning .tchip__disc b { color: var(--qaylo-turning); }
.tchip--over { --state: var(--qaylo-over); }
.tchip--over .tchip__disc b { color: var(--qaylo-over); }
.tchip--free .tchip__ring { background: none; border: 2px dashed var(--qaylo-action); padding: 6px; }
.tchip--free .tchip__disc { width: 100%; height: 100%; background: var(--qaylo-action); }
.tchip--free .tchip__disc b { font-family: var(--font-ui); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--qaylo-action-on-fill); }

/* ---------- Feature cards ---------- */
.card { background: var(--qaylo-surface); border: 1px solid var(--qaylo-line); border-radius: var(--qaylo-radius-card-lg); }
.features { padding: 24px 0 40px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features .card { padding: 30px 28px 32px; }
.card__num { display: block; font-size: 12px; color: var(--qaylo-text-secondary); }
.card__title { margin-top: 14px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card__body { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--qaylo-text-secondary); }

/* ---------- Color = state ---------- */
.color { padding: 48px 0 56px; }
.color__grid { display: grid; grid-template-columns: 1fr 536px; gap: 56px; align-items: center; }
.color__text .lead { margin-top: 22px; max-width: 560px; }
.keylist { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; font-size: 15px; }
.keylist li { display: flex; align-items: center; gap: 12px; }
.color__demo { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 40px 72px; padding: 52px 32px 44px; }

/* ---------- Plans ---------- */
.plans { padding: 48px 0 0; }
.plans__lead { margin-top: 18px; max-width: 580px; }
.plans__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.plan { display: flex; flex-direction: column; padding: 32px 30px 30px; background: var(--qaylo-surface); border: 1px solid var(--qaylo-line); border-radius: var(--qaylo-radius-card-lg); }
.plan__name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.plan__amount { font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.plan__period { font-size: 15px; color: var(--qaylo-text-secondary); }
.plan__badge { padding: 3px 10px; border: 1px solid var(--qaylo-line); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--qaylo-text-secondary); }
.plan__desc { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--qaylo-text-secondary); }
.plan__rule { margin: 26px 0 22px; border: 0; border-top: 1px solid var(--qaylo-line); }
.plan__list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.plan__list li { display: flex; align-items: center; gap: 12px; }
.plan__list svg { width: 15px; height: 15px; color: var(--qaylo-text-secondary); flex: none; }
.plan__cta { margin-top: auto; padding-top: 30px; }
.plan__note { margin-top: 14px; min-height: 21px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--qaylo-text-secondary); }

.plan--ink { background: var(--ink-bg); color: var(--ink-text); border-color: var(--ink-bg); }
.plan--ink .plan__desc, .plan--ink .plan__note { color: var(--ink-text-secondary); }
.plan--ink .plan__badge { border-color: var(--ink-line); color: var(--ink-text-secondary); }
.plan--ink .plan__name + .plan__desc { margin-top: 18px; }
.plan--ink .plan__rule { border-top-color: var(--ink-line); }
.plan--ink .plan__list svg { color: var(--ink-text-secondary); }
.plan--ink .plan__list { color: var(--ink-text); }

/* ---------- Final band ---------- */
.final { padding: 64px 0 48px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 56px 48px; border-radius: 22px; background: var(--ink-bg); color: var(--ink-text); }
.band__title { max-width: 520px; font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.band__body { max-width: 520px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-text-secondary); }
.band__actions { display: flex; gap: 12px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--qaylo-line); padding: 28px 0 52px; font-size: 14px; color: var(--qaylo-text-secondary); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__nav { display: flex; gap: 22px; }
.site-footer__nav a:hover { color: var(--qaylo-text-primary); }

/* ---------- Qaylo+ form (plus.html) ---------- */
/* Same form the app used to show in a dialog: 520 wide, labels as small caps,
   one tappable row per option rather than wrapped pills. */
[hidden] { display: none !important; }
.plus { padding: 56px 0 72px; }
.plus__card { max-width: 560px; margin: 0 auto; padding: 36px 34px 34px; background: var(--qaylo-surface); border: 1px solid var(--qaylo-line); border-radius: var(--qaylo-radius-card-lg); }
.plus__title { font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.plus__title:focus { outline: none; }
.plus__lead { margin-top: 10px; }
.plus__form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; margin-bottom: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qaylo-text-muted); }
.input {
  width: 100%; height: var(--qaylo-input-h); padding: 0 14px;
  border: 1px solid var(--qaylo-line-strong); border-radius: var(--qaylo-radius-control-lg);
  background: var(--qaylo-surface); color: var(--qaylo-text-primary);
  font: inherit; font-size: 16px;
}
.input::placeholder { color: var(--qaylo-text-muted); }
.input:focus { outline: none; border-color: var(--qaylo-action); box-shadow: 0 0 0 1px var(--qaylo-action); }
.input--area { height: auto; min-height: 76px; margin-top: 6px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.options { display: flex; flex-direction: column; gap: 2px; }
.option {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; margin-left: -8px; padding: 6px 8px;
  border: 0; border-radius: var(--qaylo-radius-control);
  background: transparent; color: var(--qaylo-text-primary);
  font: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.option:hover { background: var(--qaylo-chip); }
.option:focus-visible { outline: 2px solid var(--qaylo-action); outline-offset: 1px; }
.option__box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border: 1.5px solid var(--qaylo-line-strong); border-radius: 7px; color: var(--qaylo-action-on-fill); }
.option__box svg { width: 15px; height: 15px; visibility: hidden; }
.option[aria-pressed="true"] .option__box { background: var(--qaylo-action); border-color: var(--qaylo-action); }
.option[aria-pressed="true"] .option__box svg { visibility: visible; }
.plus__footnote { font-size: 14px; line-height: 1.5; color: var(--qaylo-text-muted); }
.plus__error { padding: 12px 14px; border-radius: var(--qaylo-radius-control-lg); background: var(--qaylo-notice-bg); color: var(--qaylo-notice-text); font-size: 15px; line-height: 1.5; }
.plus__error a { text-decoration: underline; }
.plus__done .btn { margin-top: 28px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn--primary:disabled:hover { background: var(--qaylo-action); border-color: var(--qaylo-action); }
.btn:disabled:active { transform: none; }
/* Off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .plus { padding: 24px 0 48px; }
  .plus__card { padding: 26px 20px 22px; }
  .plus__title { font-size: 28px; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal { padding: 56px 0 80px; }
.legal__doc { max-width: calc(760px + 2 * var(--gutter)); }
.legal__title { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.legal__updated { margin-top: 10px; font-size: 14px; color: var(--qaylo-text-muted); }
.legal__tldr { margin: 28px 0 8px; padding: 20px 22px; background: var(--qaylo-surface-raised); border: 1px solid var(--qaylo-line); border-left: 3px solid var(--qaylo-action); border-radius: var(--qaylo-radius-card-lg); }
.legal__tldr p { font-size: 16px; line-height: 1.6; color: var(--qaylo-text-primary); }
.legal__tldr p + p { margin-top: 8px; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.legal__doc > p, .legal__doc li { font-size: 16px; line-height: 1.65; color: var(--qaylo-text-secondary); }
.legal__doc > p + p { margin-top: 12px; }
.legal__doc ul { margin: 8px 0 12px; padding-left: 22px; list-style: disc; }
.legal__doc li + li { margin-top: 6px; }
.legal__doc li::marker { color: var(--qaylo-text-muted); }
.legal__doc strong { color: var(--qaylo-text-primary); }
.legal__doc a { color: var(--qaylo-text-primary); text-decoration: underline; text-decoration-color: var(--qaylo-line-strong); text-underline-offset: 3px; }
.legal__doc a:hover { text-decoration-color: currentColor; }
/* The disclaimer and liability cap must stand out; uppercase is the usual way. */
.legal__doc > .legal__caps { font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.site-footer__nav a[aria-current="page"] { color: var(--qaylo-text-primary); }
@media (max-width: 640px) {
  .legal { padding: 32px 0 56px; }
  .legal__title { font-size: 32px; }
  .legal h2 { margin-top: 30px; font-size: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .color__grid { grid-template-columns: 1fr; gap: 32px; }
  .color__demo { gap: 32px 48px; }
}
@media (max-width: 900px) {
  .features__grid, .plans__grid { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: stretch; }
  .band__actions { flex-wrap: wrap; }
  .band__actions .btn { flex: 1 1 200px; }
  .hero__title { font-size: 48px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header { padding-top: 18px; }
  .site-nav { gap: 16px; }
  .hero { padding: 52px 0 32px; }
  .hero__title { font-size: 38px; letter-spacing: -0.03em; }
  .hero__lead { font-size: 17px; margin-top: 18px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .trust { flex-direction: column; align-items: center; gap: 8px; }
  .trust li + li::before { display: none; }
  .h2 { font-size: 30px; }
  .device { border-width: 6px; border-radius: 18px; }
  .device .shot { border-radius: 12px; }
  .stage { padding-bottom: 40px; }
  .phone { right: 0; border-width: 5px; border-radius: 22px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .phone .shot { border-radius: 17px; }
  .color__demo { grid-template-columns: repeat(2, max-content); gap: 28px 36px; padding: 32px 20px; }
  .tchip { --size: 96px; --stroke: 6px; }
  .tchip__disc b { font-size: 30px; }
  .plan { padding: 26px 22px; }
  .plan__amount { font-size: 36px; }
  .band { padding: 36px 24px; }
  .band__title { font-size: 28px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Available to the a11y/SEO outline, invisible on screen (the features section
   has no visible heading in the design, but needs an h2 between h1 and the cards). */
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* The definitional paragraph between the screenshots and the feature cards. */
.defn { padding: 40px 0 4px; }
.defn__body {
  max-width: 700px; margin: 0 auto; text-align: center;
  font-size: 18px; line-height: 1.65; color: var(--qaylo-text-secondary);
}
@media (max-width: 640px) { .defn { padding: 28px 0 0; } .defn__body { font-size: 16px; } }

/* FAQ. Deliberately not <details>: collapsed text extracts worse and reads worse. */
.faq { padding: 8px 0 48px; }
.faq__title { margin-bottom: 8px; }
.faq__list {
  display: grid; gap: 0; max-width: 760px; margin: 24px auto 0;
  border-top: 1px solid var(--qaylo-line);
}
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--qaylo-line); }
.faq__q { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.faq__a { font-size: 16px; line-height: 1.65; color: var(--qaylo-text-secondary); }
