/* kairotic.tech: home.css (v1.14). Used only by the home page (index.html).
   Holds: the hero and its two sample cards, the numbers strip, "What we make", the opening screen (logo drawing itself), the demo picture, the pricing line and the closing band.
   Colours, sizes and fonts are the variables at the top of site.css; shared pieces (buttons, cards, header, footer, dark theme basics)
   are in site.css. The dark theme versions of these rules sit in this file too, written as :root[data-theme="dark"] ...
   Loaded AFTER site.css, so a rule here wins over an equal rule there. */

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 56px; overflow: hidden; }

.hero::before { /* quiet dotted grid, fading out downward */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(31,77,58,.20) 1.2px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual: a printed bill, a small dashboard and a status chip. Sample content, labelled as such. */
.stack { position: relative; min-height: 560px; }

.receipt { position: absolute; left: 0; top: 62px; width: min(78%, 320px); padding: 26px 24px 22px; font: 14px/1.75 var(--mono); color: #26241f; transform: rotate(-2.2deg); border-radius: 14px; }

.receipt h3 { margin: 0 0 2px; font: 700 14px/1.4 var(--mono); letter-spacing: .14em; text-align: center; }

.receipt .sub { text-align: center; color: #7a766a; margin: 0 0 12px; font-size: 12.5px; }

.receipt .row { display: flex; justify-content: space-between; gap: 12px; }

.receipt hr { border: 0; border-top: 1px dashed #b9b19c; margin: 11px 0; }

.receipt .total { font-weight: 700; }

.receipt .foot { color: #7a766a; font-size: 12px; text-align: center; margin: 12px 0 0; line-height: 1.5; }

.dash { position: absolute; right: 0; bottom: 0; width: min(70%, 300px); padding: 20px 20px 18px; transform: rotate(1.6deg); }

.dash .lab { display: flex; justify-content: space-between; align-items: baseline; font: 500 12px/1 var(--mono); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.dash .lab span:last-child { text-transform: none; letter-spacing: 0; color: #8a8576; }

.dash .big { font: 700 34px/1.1 var(--sans); letter-spacing: -.03em; margin: 12px 0 2px; }

.dash .up { font: 500 13px/1.4 var(--sans); color: var(--accent); margin: 0 0 14px; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }

.bars i { flex: 1; background: var(--green-tint); border-radius: 6px 6px 3px 3px; }

.bars i:last-child { background: var(--green); }

.chip { position: absolute; right: 2%; top: 4px; display: inline-flex; align-items: center; gap: 9px; background: var(--green); color: var(--on-green); font: 600 13.5px/1 var(--sans); padding: 12px 16px; border-radius: 999px; box-shadow: 0 14px 24px -14px rgba(23,58,44,.8); }

.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fe0b4; }

/* ---------- proof strip ---------- */
.proof { padding: 28px 0 76px; }

.proof .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }

.proof .cell { padding: 26px 28px; border-right: 1px solid var(--rule); }

.proof .cell:last-child { border-right: 0; }

.proof .num { font: 700 clamp(34px, 3.6vw, 48px)/1 var(--sans); letter-spacing: -.035em; color: var(--accent); }

.proof .num small { font-size: .5em; letter-spacing: 0; margin-left: 2px; }

.proof .txt { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }

.sec-no { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }

/* what we make: not only a POS */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

.tile.big { grid-column: span 6; padding: 34px 32px 32px; }

.tile.big h3 { font-size: 32px; }

.tile.dark { background: var(--green); border-color: var(--accent); color: var(--on-green); }

.tile.dark .k { color: var(--on-green-soft); }

.tile.dark p { color: #d4e2d9; }

.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.tags li { font-size: 14px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }

.tile.dark .tags li { background: rgba(243,238,228,.10); border-color: rgba(243,238,228,.22); color: var(--on-green); }

@media (min-width: 1500px) {
  .stack { min-height: 620px; }
  .receipt { width: min(78%, 360px); font-size: 15px; }
  .dash { width: min(70%, 340px); }
}

@media (min-width: 2200px) {
  .stack { min-height: 820px; }
  .receipt { font-size: 18px; width: min(78%, 440px); }
  .dash { width: min(70%, 420px); }
}

@media (max-width: 900px) {
  .hero { padding: 52px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .stack { min-height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .proof .grid { grid-template-columns: 1fr 1fr; }
  .proof .cell { border-bottom: 1px solid var(--rule); }
  .proof .cell:nth-child(2n) { border-right: 0; }
  .proof .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: span 1; }
  .tile.big { grid-column: 1 / -1; }
}

/* iPad upright: keep the hero in two columns, there is room */
@media (min-width: 700px) and (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 28px; }
  .stack { min-height: 600px; max-width: none; margin: 0; }
  .receipt { width: 86%; font-size: 12.5px; padding: 22px 18px 18px; }
  .dash { width: 80%; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .hero .wrap { gap: 40px; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile.big { grid-column: 1 / -1; }
  .tile.big h3 { font-size: 28px; }
  .stack { min-height: 540px; }
  .receipt { width: 84%; font-size: 13px; padding: 22px 18px 18px; }
  .dash { width: 74%; }
}

@media (max-width: 480px) {
  .actions { flex-direction: column; }
  .proof .cell { padding: 20px 18px; }
  .proof .txt { font-size: 14px; }
  .stack { min-height: 520px; }
  .chip { right: 0; font-size: 12.5px; padding: 11px 14px; }
}

@media (max-width: 360px) {
  .receipt { font-size: 12px; width: 88%; }
  .dash { width: 80%; }
  .dash .big { font-size: 28px; }
}

.tile.dark p a { color: var(--on-green); }

.proof .grid {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

.proof .cell { border-color: var(--glass-line); }

.proof .grid { border-radius: var(--r); }

.tile.dark, .chip {
  background: var(--glass-deep);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 28px 60px -28px rgba(10,40,28,.7);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

/* hero */
.hero::before { opacity: .7; }

.receipt { background: rgba(255,255,255,.88); color: #26241f; }

.dash { background: var(--glass-hi); }

.chip { color: var(--on-green); }

.chip::before { box-shadow: 0 0 0 4px rgba(143,224,180,.25); }

@media (prefers-reduced-motion: no-preference) {
  .receipt { animation: floaty 9s ease-in-out infinite alternate; }
  .dash { animation: floaty 11s ease-in-out -4s infinite alternate; }
}

/* sections */
.tags li { background: rgba(255,255,255,.55); border-color: var(--glass-edge); }

.tile.dark .tags li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); }

/* hero: the small line above the headline */
.hero .eyebrow { margin-bottom: 24px; }

:root[data-theme="dark"] .hero::before { background-image: radial-gradient(rgba(139,211,174,.16) 1.2px, transparent 1.4px); }

:root[data-theme="dark"] .tags li { background: rgba(255,255,255,.07); }

:root[data-theme="dark"] .dash .lab span:last-child { color: #8f9a91; }

:root[data-theme="dark"] .receipt { background: rgba(255,255,255,.90); color: #26241f; }

:root[data-theme="dark"] .card.dash { background: var(--glass); }

/* v1.10: the line above the headline may wrap on very small phones without the dot drifting */
.hero .eyebrow { line-height: 1.4; max-width: 100%; align-items: flex-start; }

.hero .eyebrow::before { margin-top: .32em; flex: none; }

@media (max-width: 480px) {
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .03em; padding: 9px 13px; }
}

/* ============================================================
   v1.13 OPENING SCREEN
   A full-screen cover that shows the logo drawing itself, then fades away. Everything is a CSS animation on a timer
   (about 1.5 seconds), so it hides itself even if a script fails. It is only visible when theme.js has put the class
   "intro" on <html>; otherwise it is not displayed at all. */
.intro-screen { display: none; }

html.intro .intro-screen {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
  background: var(--paper); color: var(--green-deep);
  animation: intro-out .4s ease 1.25s forwards;
}

:root[data-theme="dark"] .intro-screen { color: var(--accent); }

.intro-screen svg { width: 96px; height: 96px; overflow: visible; }

.intro-ring { stroke-dasharray: 100; stroke-dashoffset: 100; transform-origin: 50px 50px; animation: intro-draw .95s cubic-bezier(.65, 0, .25, 1) .1s forwards; }

.intro-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: intro-pop .45s cubic-bezier(.3, 1.6, .5, 1) .9s forwards; }



@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* People who ask their device for less motion never see it (theme.js also skips adding the class). */
@media (prefers-reduced-motion: reduce) {
  html.intro .intro-screen { display: none; }
}

/* ===== added in v1.14 ===== */
/* 1) Demo teaser: a still picture of the video with the play button. A click opens /demo. The video itself is NOT loaded here. */
.demo-card { --bar: 0px; display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px; background: #1c1b18; border: 1px solid var(--glass-edge, var(--rule)); box-shadow: 0 44px 60px -44px rgba(28,27,24,.6); }
.demo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-card:hover .play { transform: scale(1.06); background: var(--green-deep); }
.demo-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* 2) Pricing in one line (the full plans are on pricing.html) */
.price-strip { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; padding: 36px 38px; border-radius: 28px; }
.price-strip h2 { font-size: clamp(28px, 3.4vw, 40px); }
.price-strip .sec-no { margin-bottom: 12px; }
.price-strip .sec-intro { margin-top: 12px; font-size: 18px; max-width: 34em; }
.price-strip .sec-intro b { color: var(--ink); font-weight: 600; }
.price-strip .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* 3) Where next: three links to the other pages */
.more-links { padding: 0; }
.next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.next a { display: block; height: 100%; padding: 24px 26px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s ease; }
.next b { display: block; font: 700 20px/1.25 var(--sans); letter-spacing: -.01em; }
.next span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
@media (hover: hover) { .next a:hover { transform: translateY(-3px); } }
.next a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 4) Closing band (the same green band the inner pages use) */
.cta-wrap { padding: 28px 0 calc(64px + env(safe-area-inset-bottom)); }
.cta-wrap .cta-band { margin: 0; }

@media (max-width: 960px) {
  .next { grid-template-columns: 1fr; gap: 12px; }
  .price-strip { padding: 28px 22px; border-radius: 22px; }
  .price-strip .acts .btn { flex: 1 1 auto; }
  .demo-card { border-radius: 18px; }
  .demo-card .play { width: 68px; height: 68px; }
}
