/* gauge.arunprakashg.com. Tokens and motion are the app's (design/gauge.css, dark theme only);
   the layout follows the approved Website mockups (design/mockups/Site, Privacy, Terms). */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --color-surface: #0D0C12;
  --color-surface-raised: #17151F;
  --color-surface-sunken: #08070C;
  --color-border: #282433;
  --color-track: #201D29;
  --color-text: #F3F1F8;
  --color-text-muted: #9A94AA;
  --color-accent: #9C8BFF;
  --color-accent-text: #B0A3FF;
  --color-accent-fill: #9C8BFF;
  --color-on-accent: #0D0C12;
  --color-accent-soft: rgba(156, 139, 255, .14);
  --color-warning: #FFB648;
  --color-warning-soft: rgba(255, 182, 72, .13);
  --color-glint: rgba(255, 255, 255, .85);
  --glow-strength: .55;
  --meter: var(--color-accent);
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --dur-base: 240ms; --dur-slow: 420ms; --dur-pulse: 900ms; --dur-shuttle: 1600ms; --dur-drift: 6s;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-pulse: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--font-sans); color: var(--color-text); background: var(--color-surface);
  -webkit-font-smoothing: antialiased; font-synthesis: none;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
svg { flex-shrink: 0; }
.g-num { font-variant-numeric: tabular-nums; }
.g-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Motion, from design/gauge.css: the pulse (head leads, fill follows, arrival blooms, rest breathes), rise and bars. */
.g-fill { stroke-dasharray: var(--c) var(--c); stroke-dashoffset: var(--off); animation: g-sweep var(--dur-pulse) var(--ease-pulse) 120ms both; }
@keyframes g-sweep { from { stroke-dashoffset: var(--c); } }
.g-head { transform: translateX(var(--x)); animation: g-travel var(--dur-pulse) var(--ease-pulse) 80ms both; }
@keyframes g-travel { from { transform: translateX(0); } }
.g-dot { transform-box: fill-box; transform-origin: center; animation: g-bloom 1300ms var(--ease-out) both, g-breathe 2.8s var(--ease-in-out) 1400ms infinite alternate; }
@keyframes g-bloom { 0% { transform: scale(0); opacity: 0; } 9% { transform: scale(1); opacity: 1; } 75% { transform: scale(1); } 84% { transform: scale(1.6); } 100% { transform: scale(1); opacity: 1; } }
@keyframes g-breathe { from { opacity: 1; } to { opacity: .6; } }
.g-halo { transform-box: fill-box; transform-origin: center; opacity: var(--glow-strength); animation: g-halo 1300ms var(--ease-out) both; }
@keyframes g-halo { 0% { opacity: 0; transform: scale(.4); } 9% { opacity: var(--glow-strength); transform: scale(1); } 75% { opacity: var(--glow-strength); transform: scale(1); } 86% { opacity: 1; transform: scale(1.9); } 100% { opacity: var(--glow-strength); transform: scale(1); } }
.g-glint { stroke-dasharray: 18px var(--c); stroke-dashoffset: 0; opacity: 0; animation: g-glint var(--dur-drift) var(--ease-in-out) 2200ms infinite; }
@keyframes g-glint { 0% { stroke-dashoffset: 0; opacity: 0; } 4% { opacity: .9; } 22% { opacity: .9; } 26% { stroke-dashoffset: var(--glint-end); opacity: 0; } 100% { stroke-dashoffset: var(--glint-end); opacity: 0; } }
.g-rise { animation: g-rise var(--dur-slow) var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes g-rise { from { opacity: 0; transform: translateY(8px); } }
.g-bar { transform-origin: 50% 100%; animation: g-grow var(--dur-slow) var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes g-grow { from { transform: scaleY(0); } }
@keyframes g-fade { from { opacity: 0; } }

/* Shared page frame */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.top { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.04em; }
.pill { height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-border); }
.foot { box-shadow: inset 0 1px 0 var(--color-border); }
.foot .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.foot .brand { gap: 8px; font-size: 16px; letter-spacing: -0.03em; color: var(--color-text); margin-right: auto; min-height: 44px; }
.foot a:not(.brand) { min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover, .pill:hover { color: var(--color-text); }
.link { color: var(--color-accent-text); font-weight: 500; }

/* Home */
.hero { display: flex; align-items: center; gap: 64px; padding: 72px 0 120px; }
.hero-copy { flex: 1 1 0; min-width: 0; }
.h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; max-width: 11ch; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--color-text-muted); max-width: 30em; margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.cta { height: 52px; padding: 0 24px 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; background: var(--color-accent-fill); color: var(--color-on-accent); }
.note { font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.phone-col { flex: 0 0 auto; position: relative; }
.glow { position: absolute; inset: -18% -30%; background: radial-gradient(closest-side, var(--color-accent-soft), transparent 70%); pointer-events: none; }
.phone { position: relative; width: 340px; max-width: calc(100vw - 32px); height: 700px; border-radius: 48px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border), 0 40px 80px -30px rgba(0, 0, 0, .5); padding: 52px 20px 20px; display: flex; flex-direction: column; overflow: hidden; }
.card { border-radius: 22px; background: var(--color-surface-raised); }
.bars { display: flex; align-items: flex-end; }
.bars span { display: block; flex: 1; border-radius: 3px; background: var(--color-text-muted); opacity: .42; }
.bars .today { background: var(--color-accent); opacity: 1; }
.bars .empty { height: 4px; border-radius: 2px; background: var(--color-track); opacity: 1; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 128px; }
.feature { border-radius: 22px; background: var(--color-surface-raised); box-shadow: inset 0 0 0 1px var(--color-border); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature .art { height: 132px; margin-bottom: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.feature p { font-size: 15px; line-height: 23px; color: var(--color-text-muted); }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--color-border); }
.plan { height: 44px; display: flex; align-items: center; gap: 12px; }
.plan + .plan { box-shadow: inset 0 1px 0 var(--color-border); }

.band { background: var(--color-surface-sunken); box-shadow: inset 0 1px 0 var(--color-border), inset 0 -1px 0 var(--color-border); }
.band .wrap { padding-top: 112px; padding-bottom: 112px; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; }
.path { margin: 56px 0 64px; display: flex; align-items: center; gap: 20px; }
.node { height: 52px; padding: 0 20px; border-radius: 999px; background: var(--color-surface-raised); box-shadow: inset 0 0 0 1px var(--color-border); display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.track { flex: 1; position: relative; height: 18px; overflow: hidden; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: var(--color-track); }
.carry { position: absolute; inset: 0; animation: carry var(--dur-shuttle) var(--ease-in-out) infinite alternate both; }
.carry::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; border-radius: 999px; background: radial-gradient(closest-side, var(--color-accent) 45%, transparent); }
@keyframes carry { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.facts h3 { font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.facts p { font-size: 15px; line-height: 23px; color: var(--color-text-muted); }
.more { margin-top: 48px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--color-accent-text); }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding-top: 112px; padding-bottom: 112px; }
.qs { box-shadow: inset 0 1px 0 var(--color-border); }
.q { box-shadow: inset 0 -1px 0 var(--color-border); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: 18px; line-height: 26px; font-weight: 500; }
.q summary::-webkit-details-marker { display: none; }
.q summary svg { transition: transform var(--dur-base) var(--ease-out); color: var(--color-text-muted); }
.q[open] summary svg { transform: rotate(45deg); }
.q p { font-size: 16px; line-height: 25px; color: var(--color-text-muted); padding: 0 40px 24px 0; max-width: 40em; }

/* Privacy and terms */
.doc { max-width: 680px; padding: 56px 0 96px; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; }
.doc .intro { margin-top: 20px; font-size: 20px; line-height: 30px; }
.doc .date { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--color-text-muted); }
.doc .body { margin-top: 56px; }
.sec { padding: 40px 0; box-shadow: inset 0 1px 0 var(--color-border); }
.sec h2 { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.sec p, .sec li { font-size: 17px; line-height: 28px; color: var(--color-text-muted); }
.sec p + p, .sec p + ul, .sec ul + p, .sec ol + p { margin-top: 14px; }
.sec li { position: relative; padding-left: 22px; }
.sec li + li { margin-top: 8px; }
.sec li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 2px; border-radius: 1px; background: var(--color-accent); }
.sec ol { counter-reset: step; }
.sec ol li::before { counter-increment: step; content: counter(step); top: 0; width: auto; height: auto; background: none; color: var(--color-accent-text); font-family: var(--font-mono); }
.sec strong { color: var(--color-text); font-weight: 500; }

@media (max-width: 960px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 56px; padding: 40px 0 88px; }
  .phone-col { align-self: center; }
  .features, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 28px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .path { gap: 10px; }
  .node { height: 44px; padding: 0 14px; font-size: 14px; }
  .node svg { display: none; }
  .sec p, .sec li { font-size: 16px; line-height: 26px; }
}

/* Reduced motion: every movement becomes a fade to its final state, and the carried dot rests midway. */
@media (prefers-reduced-motion: reduce) {
  .g-fill, .g-head, .g-dot, .g-halo, .g-bar, .g-rise { animation: g-fade var(--dur-base) linear both !important; }
  .g-glint { display: none; }
  .carry { animation: none; transform: translateX(-50%); }
  .q summary svg { transition: none; }
}
