/* Counter Diary — marketing site
   Layout: a ruled ledger page. Left-aligned 12-column grid, generous whitespace, the product itself
   (two devices staying in step) is the hero. Light only, by decision. */
:root {
  --paper: #F6F8F7;        /* page ground, cool green-tinted */
  --surface: #FFFFFF;
  --ink: #0B2B26;          /* headings */
  --text: #27403B;         /* body */
  --muted: #5E746F;
  --line: #D8E2DE;
  --line-soft: #E9EFEC;
  --rule: #E3EBE7;         /* the ruled-paper lines */
  --brand: #0E7F6A;
  --brand-dark: #0A6454;
  --brand-tint: #E4F3EE;
  --saffron: #E8A317;
  --saffron-tint: #FCF1DA;
  --out: #B4412F;
  --in: #0E7F6A;
  --shadow: 0 1px 2px rgba(11, 43, 38, .06), 0 12px 32px -12px rgba(11, 43, 38, .18);

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 36em; }
.measure { max-width: 64ch; }
strong { font-weight: 600; color: var(--ink); }
.num, .amount, td.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hindi { font-family: "Noto Sans Devanagari", var(--font-body); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 10px; font: 600 1rem/1 var(--font-body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(11,43,38,.08), 0 8px 20px -10px rgba(14,127,106,.6); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: .75rem; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--ink); }
.btn-lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* Top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246, 248, 247, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(255,255,255,.88); }
.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: 1rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: .55rem .8rem; border-radius: 8px; font-size: .98rem; }
.nav a:hover { background: var(--brand-tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav, .topbar .actions { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: #fff; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav .wrap { display: grid; gap: .25rem; padding-block: .75rem 1rem; }
  .mobile-nav a { display: block; padding: .8rem .5rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav .btn { margin-top: .5rem; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero::before {  /* ruled ledger page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .devices, .hero .demo-controls { grid-column: 2; }
.hero-copy { display: grid; gap: 1.4rem; position: relative; padding-left: 1.4rem; }
.hero-copy::before { /* cash-book margin: a double rule in saffron */
  content: ""; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 7px;
  border-left: 1.5px solid var(--saffron); border-right: 1.5px solid var(--saffron); opacity: .75;
}
.hero-copy h1 { max-width: 11em; }
.hero-copy .lead { font-size: 1.25rem; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .25rem; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-note .hindi { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem 0; }
  .hero .devices, .hero .demo-controls { grid-column: 1; }
  .hero-copy { padding-left: 1rem; }
}

/* Devices (the product, drawn in HTML) */
.devices { position: relative; padding-bottom: 118px; }
.desk {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; margin-left: 15%; font-size: 13px; color: var(--text);
}
.desk-top { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); background: #fff; }
.desk-top img { height: 22px; }
.desk-top .ws { font-weight: 600; color: var(--ink); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .25rem .6rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pill.is-syncing { background: var(--saffron-tint); color: #8A5A05; }
.pill.is-syncing .dot { background: var(--saffron); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.desk-body { padding: .9rem; display: grid; gap: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tile { border: 1px solid var(--line-soft); border-radius: 10px; padding: .6rem .7rem; background: var(--paper); min-width: 0; }
.tile .k { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .15rem; white-space: nowrap; }
.tile.is-changed .v { color: var(--brand-dark); }
.list-title { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; color: var(--ink); font-size: 12.5px; }
.list-title span { color: var(--muted); font-weight: 500; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.entry { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; min-width: 0; }
.entry > span:nth-child(2) { min-width: 0; }
.entry .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 10.5px; letter-spacing: .02em; }
.entry .ic.out { background: #F8E7E3; color: var(--out); }
.entry .t { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .m { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--in); white-space: nowrap; }
.entry .amt.out { color: var(--out); }
.entry.is-new { animation: entry-in .5s cubic-bezier(.2,.8,.2,1) both; }
.entry.is-hilite { box-shadow: 0 0 0 2px var(--brand-tint), 0 0 0 4px rgba(14,127,106,.18); border-color: var(--brand); }
@keyframes entry-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.phone {
  position: absolute; left: 0; bottom: 0; width: min(232px, 58%); background: #0B2B26; border-radius: 30px; padding: 9px;
  box-shadow: 0 30px 50px -22px rgba(11,43,38,.45), 0 2px 0 rgba(255,255,255,.3) inset;
}
.phone-screen { background: var(--paper); border-radius: 22px; overflow: hidden; font-size: 12px; min-height: 236px; display: flex; flex-direction: column; }
.phone-foot { margin-top: auto; padding: .5rem .65rem .65rem; }
.fab { display: flex; align-items: center; justify-content: center; gap: .35rem; background: var(--brand); color: #fff; font-weight: 600; font-size: 12px; border-radius: 10px; min-height: 34px; }
.fab svg { width: 14px; height: 14px; }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem .45rem; background: #fff; border-bottom: 1px solid var(--line-soft); }
.phone-top b { color: var(--ink); font-size: 12px; }
.phone-body { padding: .7rem .65rem; display: grid; gap: .6rem; align-content: start; }
.phone .entry { padding: .45rem .5rem; grid-template-columns: 26px minmax(0,1fr) auto; gap: .45rem; }
.phone .entry .ic { width: 26px; height: 26px; font-size: 9px; }
.phone .entry .t { font-size: 11.5px; }
.phone .entry .amt { font-size: 11.5px; }
.phone .entries { gap: .3rem; }
.staff-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: 11px; color: var(--muted); }
.staff-chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--saffron-tint); color: #8A5A05; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 9px; }
.saved { font-size: 11px; color: var(--brand-dark); font-weight: 600; min-height: 1.2em; }
.sync-timer { position: absolute; right: 2%; bottom: 62px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: .45rem .7rem; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.sync-timer.is-on { opacity: 1; transform: none; }
.sync-timer b { color: #9FE1CF; font-variant-numeric: tabular-nums; }
.demo-controls { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; margin-left: 15%; flex-wrap: wrap; }
.demo-controls .hint { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .devices { padding-bottom: 130px; }
  .desk { margin-left: 0; }
  .phone { width: 220px; }
  .demo-controls { margin-left: 0; }
}
@media (max-width: 520px) {
  .tiles { gap: .4rem; }
  .tile .v { font-size: 13.5px; }
  .tile { padding: .5rem .5rem; }
  .phone { width: 196px; }
  .sync-timer { font-size: 11px; }
}

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.fact { padding: 1.25rem 1.25rem 1.25rem 0; border-left: 1px solid var(--line-soft); padding-left: 1.25rem; display: grid; gap: .25rem; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.01em; }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; padding-left: 0; } .fact { padding-block: 1rem; } }
@media (max-width: 520px) { .facts .wrap { grid-template-columns: 1fr; } .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); } .fact:first-child { border-top: 0; } }

/* A day at the counter (a real sequence, so it is a timeline) */
.day { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; position: relative; }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px dashed var(--line); }
.moment { position: relative; padding-top: 2.25rem; display: grid; gap: .6rem; align-content: start; }
.moment::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-sizing: border-box; }
.moment time { font-family: var(--font-display); font-weight: 700; color: var(--brand-dark); font-size: 1rem; }
.moment h3 { font-size: 1.3rem; }
.moment p { color: var(--muted); max-width: 30em; }
.moment .ui { margin-top: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: .8rem .9rem; font-size: 13px; box-shadow: var(--shadow); }
.ui .row { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-top: 1px solid var(--line-soft); }
.ui .row:first-child { border-top: 0; }
.ui .row b { color: var(--ink); font-weight: 600; }
.ui .row .num { font-variant-numeric: tabular-nums; }
.ui .total { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); margin-top: .3rem; padding-block: .4rem; font-weight: 700; color: var(--ink); }
.ui .ok { color: var(--in); font-weight: 600; }
.ui .warn { color: var(--out); font-weight: 600; }
@media (max-width: 900px) { .day { grid-template-columns: 1fr; gap: 2rem; } .day::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--line); } .moment { padding-top: 0; padding-left: 2.25rem; } .moment::before { top: 4px; } }

/* Feature spreads */
.spreads { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.spread:nth-child(even) .spread-copy { order: 2; }
.spread-copy { display: grid; gap: 1rem; }
.spread-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.015em; }
.spread-copy p { color: var(--muted); max-width: 34em; }
.spread-copy ul { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.spread-copy li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; color: var(--text); }
.spread-copy li svg { width: 20px; height: 20px; color: var(--brand); margin-top: .15rem; }
.spread-art { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 1.1rem; font-size: 13.5px; min-width: 0; }
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; } .spread:nth-child(even) .spread-copy { order: 0; } }

/* Small UI fragments used in spreads */
.frag-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.frag-title span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.perm { display: grid; gap: .4rem; }
.perm label { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.perm .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.perm .box.on { background: var(--brand); border-color: var(--brand); }
.perm .box.on svg { width: 12px; height: 12px; color: #fff; }
.perm small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.offline-note { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 9px; background: var(--saffron-tint); color: #7A4F04; font-weight: 600; font-size: 12.5px; }
.offline-note svg { width: 18px; height: 18px; }
.audit { display: grid; gap: .45rem; }
.audit .ln { display: grid; grid-template-columns: 58px 1fr; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.audit time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.audit b { color: var(--ink); font-weight: 600; }
.audit .ln.rev { border-color: #F3D2CC; background: #FFF8F6; }

/* Feature ledger (list with rules) */
.ledger { border-top: 2px solid var(--ink); margin-top: 1rem; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 112px; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ledger-row .tag { justify-self: end; }
.ledger-row h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.ledger-row p { color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; background: var(--brand-tint); color: var(--brand-dark); }
.tag.owner { background: var(--saffron-tint); color: #7A4F04; }
.tag.soon { background: #EEF1F0; color: var(--muted); }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: .35rem; } .ledger-row .tag { justify-self: start; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--saffron); }
.toggle { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.toggle button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
@media (max-width: 420px) { .toggle { display: flex; width: 100%; } .toggle button { flex: 1; padding-inline: .5rem; } }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toggle .save { font-size: .8rem; font-weight: 600; color: var(--brand-dark); margin-left: .35rem; }
.toggle button[aria-pressed="true"] .save { color: #9FE1CF; }
.price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price .cur { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.price .amt { font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 4.4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 1.05rem; }
.gst { color: var(--muted); font-size: .95rem; }
.gst b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.per-day { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; width: fit-content; }
.includes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.25rem; }
.includes li { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; align-items: start; font-size: .98rem; }
.includes li svg { width: 18px; height: 18px; color: var(--brand); margin-top: .2rem; }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }
.price-side { display: grid; gap: 1.25rem; }
.compare-mini { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.25rem; display: grid; gap: .75rem; }
.compare-mini h3 { font-size: 1.1rem; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; align-items: center; font-size: .95rem; }
.bar .lbl { min-width: 0; }
@media (max-width: 420px) { .bar { grid-template-columns: 1fr; } .bar .val { justify-self: start; } }
.bar .track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--line); width: var(--w); }
.bar.us .fill { background: var(--brand); }
.bar .lbl { color: var(--text); }
.bar.us .lbl { color: var(--ink); font-weight: 600; }
.bar .val { font-variant-numeric: tabular-nums; color: var(--muted); }
.bar.us .val { color: var(--brand-dark); font-weight: 600; }
.fine { font-size: .85rem; color: var(--muted); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1rem; background: var(--paper); }
.compare thead th.us { background: var(--brand-tint); color: var(--brand-dark); }
.compare td.us { background: #F3FAF7; color: var(--ink); font-weight: 500; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes { color: var(--brand-dark); font-weight: 600; }
.no { color: var(--muted); }

/* Promise list */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem 2rem; counter-reset: p; }
.promise > div { display: grid; gap: .5rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.promise h3 { font-size: 1.2rem; }
.promise p { color: var(--muted); }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; } }

/* Roadmap (a dated sequence) */
.roadmap { display: grid; gap: 0; border-top: 1px solid var(--line); }
.roadmap-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.roadmap-row time { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.roadmap-row time small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .85rem; }
.roadmap-row h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.roadmap-row p { color: var(--muted); max-width: 60ch; }
.roadmap-row.done time { color: var(--brand-dark); }
@media (max-width: 600px) { .roadmap-row { grid-template-columns: 1fr; gap: .4rem; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--brand); transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .ans { padding: 0 0 1.25rem; color: var(--text); max-width: 60ch; display: grid; gap: .6rem; }

/* CTA band */
.cta-band { background: var(--brand); color: #E6F5F0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D3EBE3; font-size: 1.1rem; max-width: 36em; margin-top: .75rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #E4F3EE; color: var(--brand-dark); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0,1fr)); gap: 2rem; }
.footer h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer .about { display: grid; gap: .75rem; max-width: 28em; color: var(--muted); }
.footer .about img { height: 30px; }
.footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .cols { grid-template-columns: 1fr; } }

/* Inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; max-width: 46rem; }
.page-head p { font-size: 1.2rem; color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: .75rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.fill { background: var(--saffron-tint); color: #7A4F04; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.notice { border-left: 3px solid var(--saffron); background: var(--saffron-tint); padding: .9rem 1rem; border-radius: 0 10px 10px 0; color: #5F3F03; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.contact-card svg { width: 26px; height: 26px; color: var(--brand); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { color: var(--muted); }
.contact-card .big { font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.15rem; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); min-height: 48px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.form .sent { display: none; padding: 1rem; border-radius: 10px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.form.is-sent .sent { display: block; }

/* Feature page grid */
.area { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: 2.5rem; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; }
.area h2 { font-size: 1.7rem; position: sticky; top: 90px; }
.area p.intro { color: var(--muted); margin-top: .5rem; }
.area .items { display: grid; gap: .25rem; }
.item { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); }
.item:first-child { border-top: 0; }
.item svg { width: 22px; height: 22px; color: var(--brand); margin-top: .1rem; }
.item b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; letter-spacing: -0.01em; }
.item span { color: var(--muted); }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } .area h2 { position: static; } }

/* Updates page */
.release { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.release time { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.release time small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .85rem; }
.release h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.release ul { margin: 0; padding-left: 1.2rem; color: var(--text); display: grid; gap: .3rem; }
@media (max-width: 600px) { .release { grid-template-columns: 1fr; gap: .5rem; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Home: phones show the owner's screen only (the phone mock and the demo button overlap at this width) */
@media (max-width: 640px) {
  .hero .phone, .hero .sync-timer, .hero .demo-controls { display: none; }
  .hero .devices { padding-bottom: 0; }
}

/* Home: "Also in the diary" */
.also { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.also li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.also li svg { width: 20px; height: 20px; color: var(--brand); margin-top: .15rem; }
.also b { color: var(--ink); }
.also .tag { margin-left: .35rem; vertical-align: 2px; }
@media (max-width: 720px) { .also { grid-template-columns: 1fr; } }

/* Home: price in one block */
.price-simple { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.price-simple::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--saffron); }
.price-simple p { color: var(--text); }
/* homepage: one plan across the full width — price and buttons on the left, what is included on the right; stacked on phones */
.price-simple { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.price-main { display: grid; gap: 1rem; align-content: start; }
.price-incl { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--brand-tint); border-radius: var(--r-md); }
.price-incl h3 { font-size: 1.15rem; }
.plan-tag { justify-self: start; font-size: .82rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-tint); border-radius: 999px; padding: .3rem .75rem; }
@media (max-width: 860px) { .price-simple { grid-template-columns: 1fr; } }
@media (max-width: 1000px) and (min-width: 861px) { .price-incl .includes { grid-template-columns: 1fr; } }
