/* canaris.in — "control room" system.
   One bold element: the rupee loss meter (dark HMI panel). Everything else is quiet. */
:root {
  --paper: #F3F5F4;      /* page */
  --panel: #FFFFFF;      /* raised surfaces */
  --ink: #18222E;        /* text, rules */
  --ink-soft: #4A5663;   /* secondary text */
  --line: #D5DBDF;       /* hairlines */
  --signal: #F2B705;     /* canary — Canaris signal colour, used sparingly */
  --ok: #2E7A57;         /* healthy state */
  --alarm: #C2412D;      /* loss */
  --hmi: #16212C;        /* meter panel */
  --hmi-text: #E7EDF2;
  --radius-s: 4px;
  --radius-l: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 10; }

/* type scale (1.25) */
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-stretch: 112%; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 108%; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; font-stretch: 112%; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(242,183,5,.25); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: .97rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; border: 2px solid var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24313f; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel); }
.nav .btn { padding: 8px 14px; color: #fff; }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* the meter — the one bold element */
.meter { background: var(--hmi); color: var(--hmi-text); border-radius: var(--radius-l); padding: 26px 26px 22px; position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--hmi) 12px 24px); }
.meter-status { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #AFC0CC; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--alarm); animation: blink 1.4s steps(2, start) infinite; }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
@keyframes blink { to { visibility: hidden; } }
.meter-amount { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; font-stretch: 118%; color: #fff; margin: 14px 0 0; line-height: 1; }
.meter-sub { color: #AFC0CC; margin: 8px 0 18px; font-size: .95rem; }
.meter label { display: block; font-size: .92rem; color: #C9D5DE; margin-bottom: 6px; }
.meter output { font-weight: 600; color: #fff; }
.meter input[type=range] { width: 100%; accent-color: var(--signal); }
.meter-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #2B3A48; font-size: .92rem; color: #C9D5DE; }
.meter-foot a { color: #fff; }

/* product rows */
.rows { margin-top: 28px; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 220px 1fr 220px; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row h3 { margin: 0; }
.row .who { color: var(--ink-soft); font-size: .95rem; }
.row p { margin: 0 0 .4em; }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 14px; border-top: 3px solid var(--signal); }
.steps li::before { content: "Step " counter(s); display: block; font-weight: 600; color: var(--ink-soft); font-size: .92rem; margin-bottom: 6px; }

/* proof */
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; list-style: none; font-weight: 600; font-stretch: 108%; font-size: 1.1rem; }

/* generic two-col */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--ok); }

/* calculator page */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #B9C2C9; border-radius: var(--radius-s); background: #fff; }
.result-big { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; font-stretch: 116%; color: #fff; line-height: 1.05; margin: 6px 0 4px; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.result-table td { padding: 8px 0; border-top: 1px solid #2B3A48; }
.result-table td:last-child { text-align: right; font-weight: 600; color: #fff; }

/* footer */
.site-foot { background: var(--ink); color: #C9D5DE; padding: 48px 0 32px; font-size: .95rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .4em; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid #2B3A48; font-size: .85rem; color: #93A3B0; }

@media (max-width: 880px) {
  .hero-grid, .split, .calc, .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
