/* kskapp.com: KSK Apps and its products. Manrope, off-white, the SaleBill green.
   Motion uses only transform and opacity, and stops under prefers-reduced-motion. */
:root {
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --surface-2: #EEF1EC;
  --ink: #14201C;
  --muted: #5B6A63;
  --line: #E1E5DE;
  --primary: #0B6B57;
  --primary-dark: #084D3F;
  --link: #0B6B57;
  --mint: #E3F3EC;
  --amber: #C2610C;
  --blue: #2F5BB7;
  --header-bg: rgba(246, 247, 244, .78);
  --shadow: 0 6px 18px rgba(20, 32, 28, .08);
  --shadow-lg: 0 30px 60px -30px rgba(20, 32, 28, .35);
  --morning: #FFF3DF;
  --noon: #E6F4EE;
  --evening: #E7E9F6;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1311;
    --surface: #161F1C;
    --surface-2: #1C2724;
    --ink: #ECF1EE;
    --muted: #9AA9A2;
    --line: #26322E;
    --link: #5FD0B0;
    --mint: #12352C;
    --header-bg: rgba(13, 19, 17, .78);
    --shadow: 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
    --morning: #2A2216;
    --noon: #13281F;
    --evening: #1B1D2E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header: frosted once the page scrolls */
header.top { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
header.top.scrolled { background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; flex-shrink: 0; background: var(--primary); }
.mark.ksk { background: linear-gradient(135deg, #0B6B57 0%, #14201C 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
nav.links { display: flex; gap: 4px; font-weight: 700; font-size: 15px; }
nav.links a { color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 12px; transition: background-color .2s; }
nav.links a:hover { background: var(--surface-2); }
@media (max-width: 640px) { nav.links .wide { display: none; } nav.links a { padding: 12px 10px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 107, 87, .7); }
.btn.primary:hover { background: var(--primary-dark); box-shadow: 0 16px 30px -12px rgba(11, 107, 87, .8); }
.btn.quiet { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.light { background: #fff; color: #14201C; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow, .more:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero-band { position: relative; isolation: isolate; overflow: hidden; }
.mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mesh i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .5; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { background: radial-gradient(circle, rgba(11, 107, 87, .45), transparent 62%); left: -18vmax; top: -24vmax; }
.mesh i:nth-child(2) { background: radial-gradient(circle, rgba(194, 97, 12, .3), transparent 62%); right: -26vmax; top: -10vmax; animation-duration: 26s; animation-delay: -6s; }
.mesh i:nth-child(3) { background: radial-gradient(circle, rgba(47, 91, 183, .28), transparent 62%); left: 20vmax; bottom: -40vmax; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 6vmax, 0) scale(.95); }
}
.hero { padding-block: 40px 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(11, 107, 87, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 107, 87, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(11, 107, 87, 0); } }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--primary) 10%, #2BA37F 50%, var(--amber) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad { background-image: linear-gradient(100deg, #5FD0B0 10%, #8BE3C4 50%, #F2A65A 95%); } }
.words > span { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
.fade-in { animation: rise .9s var(--ease) both; animation-delay: var(--d, .5s); }
.hero p.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 16px 56px; }
}

/* Floating product chips on the company hero */
.chips { position: relative; min-height: 380px; }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); min-width: 250px; animation: bob 7s ease-in-out infinite; }
.chip .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.chip b { display: block; font-size: 15px; }
.chip span { font-size: 13px; color: var(--muted); font-weight: 700; }
.chip .ok { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.chip:nth-child(1) { top: 10px; left: 0; }
.chip:nth-child(2) { top: 140px; right: 0; animation-delay: -2.4s; }
.chip:nth-child(3) { top: 270px; left: 30px; animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 860px) {
  .chips { min-height: 0; display: grid; gap: 12px; }
  .chip { position: static; min-width: 0; }
  .chip:nth-child(2) { margin-left: 24px; }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); padding-block: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker ul { display: flex; gap: 40px; margin: 0; padding: 0 40px 0 0; list-style: none; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ticker li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 14px; vertical-align: middle; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section.band { padding-block: 72px; }
section.band.tight { padding-block: 48px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin: 0 0 8px; }
section.band h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
section.band p.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; font-size: 17px; }

/* Scroll reveal: hidden only when JS is running, so the page always reads without it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { --accent: var(--primary); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
.product:hover { --ty: -6px; box-shadow: var(--shadow-lg), 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.product:hover::before { opacity: 1; }
.product.amber { --accent: var(--amber); }
.product.blue { --accent: var(--blue); }
.product .art { height: 150px; margin: -26px -26px 4px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); display: grid; place-items: end center; overflow: hidden; }
.product .art svg { width: 78%; height: auto; transform: translateY(18px); transition: transform .5s var(--ease); }
.product:hover .art svg { transform: translateY(4px); }
.product .tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (prefers-color-scheme: dark) { .product .tag { color: color-mix(in srgb, var(--accent) 55%, #fff); } }
.product h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.product p { margin: 0; color: var(--muted); }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.product li { display: flex; gap: 8px; }
.product li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.more { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--accent); display: inline-flex; gap: 6px; }
@media (prefers-color-scheme: dark) { .more { color: color-mix(in srgb, var(--accent) 55%, #fff); } }
@media (max-width: 900px) { .products { grid-template-columns: minmax(0, 1fr); } }

/* Principles and features */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--link); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.stat .num { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--link); }
.stat p { margin: 8px 0 0; color: var(--muted); font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A day: morning to evening */
.day { background: linear-gradient(100deg, var(--morning) 0%, var(--noon) 50%, var(--evening) 100%); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 32px; right: 32px; top: 32px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #E2A23B, var(--primary), #5B63B7); transform-origin: left; }
.js .timeline::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.js .timeline.in::before { transform: scaleX(1); }
.timeline li { position: relative; }
.timeline .when { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 18px; position: relative; }
.timeline li:nth-child(1) .when { color: #C27A0A; }
.timeline li:nth-child(2) .when { color: var(--link); }
.timeline li:nth-child(3) .when { color: #5B63B7; }
@media (prefers-color-scheme: dark) { .timeline li:nth-child(3) .when { color: #9AA2F0; } }
.timeline h3 { margin: 0 0 6px; font-size: 20px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .time { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; background: linear-gradient(180deg, #E2A23B, var(--primary), #5B63B7); transform-origin: top; }
  .js .timeline::before { transform: scaleY(0); }
  .js .timeline.in::before { transform: scaleY(1); }
  .timeline li { padding-left: 86px; min-height: 64px; }
  .timeline .when { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Pricing */
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 26px; }
.toggle button { position: relative; z-index: 1; min-height: 48px; padding: 0 22px; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; border-radius: 999px; transition: color .3s; white-space: nowrap; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--primary); transition: transform .4s var(--ease); }
.toggle[data-period="monthly"] .thumb { transform: translateX(100%); }
.save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FFE7C2; color: #7A4B00; font-size: 12px; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price { position: relative; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 6px; align-content: start; }
.price.main { box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary); }
.price .badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; }
.price h3 { margin: 0; font-size: 20px; }
.price .amt { font-size: clamp(38px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price .amt small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price .alt { color: var(--muted); font-weight: 600; }
.price ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "✓"; color: var(--link); font-weight: 800; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 48em; }
@media (max-width: 760px) { .prices { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 0 20px; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 600; color: var(--link); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Call to action panel */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(32px, 6vw, 64px); background: #10201B; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(43, 163, 127, .55) 75%, transparent 90%); animation: spin 14s linear infinite; }
.cta::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 30px; background: radial-gradient(120% 140% at 0% 0%, #12392F 0%, #10201B 60%); }
.cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.cta p { margin: 0; color: #B8C8C1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* SaleBill hero phone: a sale plays on a loop */
.stage { position: relative; justify-self: center; }
.stage::before { content: ""; position: absolute; inset: -12% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(11, 107, 87, .35), transparent); }
.phone { --screen: 282px; --s: .7231; width: calc(var(--screen) + 18px); padding: 9px; border-radius: 42px; background: #0C1210; box-shadow: 0 40px 80px -30px rgba(11, 107, 87, .65), 0 0 0 1px rgba(255, 255, 255, .06) inset; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.screen { width: var(--screen); height: calc(var(--screen) * 2); border-radius: 33px; overflow: hidden; position: relative; background: #F6F7F4; }
@media (max-width: 380px) { .phone { --screen: 248px; --s: .6359; } }
.float-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: 14px; font-weight: 800; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float-tag .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--link); display: grid; place-items: center; }
.float-tag.t1 { top: 70px; left: -178px; }
.float-tag.t2 { top: 330px; right: -168px; animation-delay: -2s; }
.float-tag.t3 { bottom: -18px; left: -150px; animation-delay: -4s; }
@media (max-width: 1180px) { .float-tag { display: none; } }

/* The app inside the phone, drawn at the app's real size (390 wide) and scaled down */
.app { position: absolute; left: 0; top: 0; width: 390px; height: 780px; transform: scale(var(--s)); transform-origin: 0 0; display: flex; flex-direction: column; background: #F6F7F4; color: #14201C; font-family: 'Manrope', system-ui, sans-serif; line-height: 1.2; }
.app .head { display: flex; align-items: center; gap: 12px; padding: 22px 16px 12px; }
.app .av { position: relative; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #0B6B57, #084D3F); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.app .av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; background: #B97400; border: 2.5px solid #F6F7F4; }
.app .who { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app .who b { font-size: 20px; }
.app .who span { font-size: 13px; font-weight: 700; color: #5B6A63; }
.app .off { align-self: flex-start; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #FFF3D6; color: #7A4B00; font-size: 12px; font-weight: 800; }
.app .myday { height: 48px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(20, 32, 28, .08); display: flex; align-items: center; gap: 6px; color: #0B6B57; font-size: 14px; font-weight: 800; }
.app .tiles { padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; align-content: start; }
.app .tile { position: relative; height: 134px; padding: 12px 12px 12px 14px; border-radius: 20px; background: #fff; border: 2px solid transparent; box-shadow: 0 6px 18px rgba(20, 32, 28, .08); display: flex; flex-direction: column; transition: background-color .25s, border-color .25s, box-shadow .25s, transform .15s; }
.app .tile.on { background: #E3F3EC; border-color: #0B6B57; box-shadow: 0 8px 22px rgba(11, 107, 87, .18); }
.app .tile.out { background: #EDEFEA; box-shadow: none; opacity: .55; }
.app .tile.press { transform: scale(.95); }
.app .mono { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.app .nm { margin-top: 6px; font-size: 15px; font-weight: 800; }
.app .pr { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.app .left { padding: 3px 8px; border-radius: 999px; background: #F6F7F4; color: #5B6A63; font-size: 12px; font-weight: 700; }
.app .left.low { background: #FDE8E6; color: #B3261E; }
.app .qty { position: absolute; top: 10px; right: 10px; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 16px; background: #0B6B57; color: #fff; font-size: 16px; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.app .tile.on .qty { transform: scale(1); }
.app .minus { position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #0B6B57; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.app .tile.on .minus { opacity: 1; }
.app .bar { margin: 0 12px 14px; background: #fff; border-radius: 26px; box-shadow: 0 -2px 30px rgba(20, 32, 28, .14); padding: 14px 16px 16px; }
.app .bar > div { display: none; }
.app .bar[data-state="empty"] .p-empty, .app .bar[data-state="cart"] .p-cart, .app .bar[data-state="sold"] .p-sold { display: flex; animation: rise .35s var(--ease); }
.app .p-empty { flex-direction: column; gap: 10px; }
.app .repeat { min-height: 58px; padding: 10px 14px; border-radius: 18px; background: #F6F7F4; display: flex; align-items: center; gap: 12px; }
.app .repeat .r-ic { width: 36px; height: 36px; border-radius: 50%; background: #E3F3EC; display: grid; place-items: center; flex-shrink: 0; }
.app .repeat b { display: block; font-size: 15px; color: #0B6B57; }
.app .repeat span { font-size: 13px; font-weight: 600; color: #5B6A63; }
.app .hint { text-align: center; font-size: 13px; font-weight: 600; color: #5B6A63; }
.app .p-cart { flex-direction: column; gap: 10px; }
.app .row { display: flex; align-items: center; gap: 10px; }
.app .count { padding: 5px 10px; border-radius: 999px; background: #E3F3EC; color: #0B6B57; font-size: 13px; font-weight: 800; }
.app .total { flex: 1; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.app .clear { color: #B3261E; font-size: 15px; font-weight: 800; padding: 0 12px; }
.app .pay { flex: 1; height: 58px; border-radius: 18px; color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s; }
.app .pay.cash { background: #0B6B57; }
.app .pay.upi { background: #14201C; }
.app .pay.press { transform: scale(.95); }
.app .p-sold { align-items: center; gap: 10px; padding: 10px 4px 10px 12px; border-radius: 20px; background: #E3F3EC; }
.app .tick { width: 40px; height: 40px; border-radius: 50%; background: #0B6B57; display: grid; place-items: center; flex-shrink: 0; }
.app .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.app .bar[data-state="sold"] .tick path { animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.app .sold-amt { font-size: 30px; font-weight: 800; }
.app .p-sold > div:nth-child(2) { min-width: 0; flex: 1; }
.app .sold-line { font-size: 12px; font-weight: 700; color: #5B6A63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .sold-act { display: flex; flex-shrink: 0; font-size: 15px; font-weight: 800; }
.app .sold-act span { padding: 0 9px; color: #0B6B57; }
.app .sold-act span + span { color: #B3261E; }
.finger { position: absolute; left: 0; top: 0; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(20, 32, 28, .22); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 8px 20px rgba(20, 32, 28, .3); opacity: 0; transition: transform .55s var(--ease), opacity .3s; pointer-events: none; }
.finger.show { opacity: 1; }
.finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #0B6B57; opacity: 0; }
.finger.tap::after { animation: ripple .5s ease-out; }
@keyframes ripple { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.9); } }

/* Legal and simple pages */
article.legal { max-width: 760px; padding-block: 32px 72px; }
article.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; }
article.legal .updated { color: var(--muted); font-weight: 600; margin: 0 0 28px; }
article.legal h2 { font-size: 21px; margin: 34px 0 8px; }
article.legal h3 { font-size: 17px; margin: 22px 0 6px; }
article.legal p, article.legal li { color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.contact-card { display: grid; gap: 4px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); margin-top: 18px; }
.contact-card .big { font-size: clamp(20px, 3vw, 26px); font-weight: 800; word-break: break-word; }

/* Footer */
footer.bottom { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
footer.bottom nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
footer.bottom a { color: var(--muted); text-decoration: none; padding-block: 6px; }
footer.bottom a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .timeline::before { transform: none; }
  .ticker .track { flex-wrap: wrap; width: auto; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker ul { flex-wrap: wrap; white-space: normal; row-gap: 8px; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .app .tick path { stroke-dashoffset: 0; }
}
