/* Reckon — reckon.boratechnologies.in
   Design system ported from the app handoff: one accent, hairlines, tabular
   figures, graph paper on the hero only, Spectral for lead paragraphs.
   Light + a restrained dark via prefers-color-scheme. Calm by design. */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --panel: #F1F3F6;
  --ink: #14161A;
  --muted: #5C636E;
  --faint: #8E96A3;
  --line: #E4E7EC;
  --line-strong: #C9CFD8;
  --accent: #3B57D9;
  --accent-hover: #2B41AB;
  --accent-ink: #FFFFFF;
  --good: #1F9D6B;
  --grid: rgba(20, 22, 26, .055);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r: 14px;
  --r-lg: 16px;

  --shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 22px 48px rgba(16, 18, 24, .08);
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, .05), 0 8px 20px rgba(16, 18, 24, .05);

  /* Light-mode site to match the design handoff. Wide container with generous,
     responsive gutters so the page uses the full screen without over-long lines. */
  --maxw: 1440px;
  --gutter: clamp(20px, 4.5vw, 80px);
  --section: clamp(56px, 7vw, 104px);
}

/* Deliberately light-only: the design page is light. (App itself is multi-theme.) */
:root { color-scheme: light; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.serif { font-family: var(--serif); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.mark {
  width: 22px; height: 22px; border: 1.6px solid var(--accent); border-radius: 6px;
  display: inline-block; position: relative; flex: none;
}
.mark::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); right: 3px; bottom: 3px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r);
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), background .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { color: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--panel); }

/* ---------- Hero ---------- */
.hero { padding: clamp(22px, 3vw, 44px) 0 clamp(28px, 4vw, 44px); }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-inner {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px;
  padding: 56px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.eyebrow { font-size: 13px; color: var(--muted); }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 600; letter-spacing: -.032em; line-height: 1.04; margin: 14px 0 20px; }
.hero-lead { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; }
.hero-cta .note { font-size: 14px; color: var(--muted); }
.spec-list { display: flex; flex-direction: column; margin-top: 18px; }
.spec-list .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec-list .row:last-child { border-bottom: 1px solid var(--line); }
.spec-list .row .k { color: var(--muted); }
.spec-list .row .v { text-align: right; }

/* Phone mockup — a real rendition of the app's Today prompt, no external asset */
.device-col { display: flex; align-items: center; justify-content: center; }
.phone {
  width: 260px; aspect-ratio: 260 / 540; background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 34px; padding: 12px;
  box-shadow: var(--shadow); position: relative;
}
.phone .screen {
  height: 100%; background: var(--surface); border-radius: 24px; border: 1px solid var(--line);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.phone .status { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.phone .skill { font-size: 12px; color: var(--muted); }
.phone .prompt { font-size: 46px; font-weight: 600; letter-spacing: -.02em; }
.phone .entry { height: 44px; border-radius: 12px; border: 1.5px solid var(--accent); display: flex; align-items: center; padding: 0 14px; font-size: 22px; color: var(--muted); }
.phone .entry .caret { width: 2px; height: 22px; background: var(--accent); margin-left: 2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone .pad { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone .pad span { height: 40px; border-radius: 10px; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.phone .pad .check { grid-column: span 3; background: var(--accent); color: var(--accent-ink); }

/* ---------- Feature row ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 56px); padding: clamp(28px, 4vw, 48px) 0 var(--section); }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -.014em; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- Legal / doc layout ---------- */
.doc { padding: clamp(36px, 4.5vw, 60px) 0 var(--section); }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.toc .label { color: var(--ink); font-weight: 600; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc .updated { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); }

.doc-body { max-width: 70ch; }
.doc-title { font-size: clamp(30px, 5vw, 36px); font-weight: 600; letter-spacing: -.026em; margin-bottom: 14px; }
.doc-lead { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--muted); margin-bottom: 28px; }
.doc-body section { margin-bottom: 26px; }
.doc-body h2 { font-size: 19px; font-weight: 600; letter-spacing: -.014em; margin-bottom: 8px; }
.doc-body section p { font-size: 16px; line-height: 1.62; color: var(--muted); }
.doc-body section p + p { margin-top: 10px; }

.panel { background: var(--panel); border-radius: var(--r-lg); padding: 22px; }
.panel h2, .panel .h { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.kv { display: flex; flex-direction: column; }
.kv .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv .row:last-child { border-bottom: 1px solid var(--line); }
.kv .row .k { color: var(--muted); }
.note-box { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Support Q&A */
.qa { display: flex; flex-direction: column; }
.qa .item { padding: 18px 0; border-top: 1px solid var(--line); }
.qa .item:last-child { border-bottom: 1px solid var(--line); }
.qa .q { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.qa .a { font-size: 15px; line-height: 1.55; color: var(--muted); }

.aside-col { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: clamp(32px, 4vw, 44px); padding-bottom: clamp(32px, 4vw, 44px); font-size: 13px; color: var(--faint); }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .links a { color: var(--muted); }

/* ---------- Motion: gentle hero entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 28px; }
  .device-col { order: -1; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .doc-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; flex-flow: row wrap; gap: 8px 16px; }
  .toc .updated { flex-basis: 100%; border-top: 0; padding-top: 0; margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 32px 0 24px; }
  .hero-inner { padding: 30px 20px; }
  .btn { width: 100%; }
  .hero-cta { gap: 12px; }
  .hero-cta .note { text-align: center; width: 100%; }
}
