/* Luminary Microcredit: public website */
:root {
  --plum: #3D0B39;
  --plum-2: #570F51;
  --plum-3: #7B1F72;
  --purple: #570F51; /* used by the Privacy and Terms pages */
  --gold: #F2B01E;
  --gold-d: #B9820A;
  --ink: #1C1720;
  --muted: #5E5763;
  --line: #E6E0E4;
  --paper: #F7F4F0;
  --white: #FFFFFF;
  --ok: #1D7A55;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--plum-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 18px; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font: 600 15px/1.2 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #ffc23f; }
.btn.purple { background: var(--plum-2); color: #fff; }
.btn.purple:hover { background: var(--plum-3); }
.btn.ghost { color: var(--plum-2); border-color: var(--line); background: #fff; }
.btn.ghost:hover { border-color: var(--plum-2); }
.btn.line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.line:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn.outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn.display-only { cursor: default; }
.btn.display-only:hover { background: var(--plum-2); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 700 19px/1 var(--sans); letter-spacing: .14em; color: var(--plum-2); }
.brand-text i { font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: .38em; color: var(--gold-d); margin-top: 5px; }
.brand.light .brand-text b { color: #fff; }
.brand.light .brand-text i { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav > a.active { border-bottom-color: var(--gold); }
.menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { background: var(--plum); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; }
.lead { font-size: 18px; color: rgba(255, 255, 255, .8); margin: 22px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-rates { display: flex; gap: 0; margin: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; }
.hero-rates div { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(255, 255, 255, .18); }
.hero-rates div:last-child { border: 0; margin: 0; padding: 0; }
.hero-rates dt { font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-rates dd { margin: 4px 0 0; font-size: 15px; }
.hero-rates b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold); margin-right: 4px; }

/* Animated phone demo */
.demo { position: relative; justify-self: center; width: 300px; height: 560px; }
.handset {
  position: absolute; inset: 0 30px 0 0; border-radius: 38px; background: #121014;
  padding: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 2px #2a2530;
}
.notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #121014; border-radius: 0 0 14px 14px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 28px; background: #fbf9f7; overflow: hidden; color: var(--ink); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 34px 16px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.app-bar span { font: 700 12px/1 var(--sans); letter-spacing: .14em; color: var(--plum-2); }
.app-bar i { margin-left: auto; font: 500 11px/1 var(--sans); font-style: normal; color: var(--muted); }
.view { position: absolute; left: 0; right: 0; top: 68px; bottom: 0; padding: 18px 16px; background: #fbf9f7; opacity: 0; transform: translateX(100%); transition: transform .45s cubic-bezier(.3, .7, .3, 1), opacity 0s .45s; pointer-events: none; z-index: 0; }
/* The next screen slides in over the last one, as in the app. */
.view.on { opacity: 1; transform: none; z-index: 2; transition: transform .45s cubic-bezier(.3, .7, .3, 1), opacity 0s; }
.view.out { opacity: 1; transform: translateX(-30%); z-index: 1; transition: transform .45s cubic-bezier(.3, .7, .3, 1), opacity 0s; }
.v-hi { font-size: 13px; color: var(--muted); }
.v-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.v-title.c { text-align: center; }
.v-balance { margin: 10px 0 16px; padding: 16px; border-radius: 12px; background: var(--plum); color: #fff; }
.v-balance small { font-size: 11px; opacity: .75; display: block; }
.v-balance b { font: 600 26px/1.2 var(--serif); }
.v-btn { display: block; width: 100%; border: 0; border-radius: 10px; padding: 12px; background: var(--gold); color: var(--ink); font: 600 14px var(--sans); transition: transform .12s ease, filter .12s ease; }
.v-btn.press, .v-opt.press { transform: scale(.96); filter: brightness(.93); }
.v-list { margin-top: 16px; font-size: 12.5px; }
.v-list div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.v-list em { font-style: normal; color: var(--ok); font-weight: 600; }
.v-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 13px 14px; margin-bottom: 10px; font: inherit; transition: transform .12s ease, border-color .2s ease, background .2s ease; }
.v-opt b { display: block; font-size: 14.5px; color: var(--plum-2); }
.v-opt small { font-size: 11.5px; color: var(--muted); }
.v-opt.sel { border-color: var(--plum-2); background: #f6eef5; }
.v-amount { font: 600 34px/1 var(--serif); color: var(--plum-2); margin: 6px 0 18px; }
.v-slider { position: relative; height: 6px; border-radius: 6px; background: var(--line); margin: 0 8px 18px; }
.v-slider span { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; border-radius: 6px; background: var(--plum-2); }
.v-slider i { position: absolute; top: 50%; left: 10%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.v-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 18px; }
.v-row b { color: var(--plum-2); }
.v-card { position: relative; aspect-ratio: 916 / 736; padding: 5px; border-radius: 14px; border: 2px dashed var(--gold-d); overflow: hidden; margin-bottom: 10px; background: #2a2730; }
.v-card .nrc { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
/* After the scan: the photo and the NRC number are marked as found. */
.v-card .vc-hit { position: absolute; border: 2px solid var(--ok); border-radius: 3px; opacity: 0; transform: scale(1.15); transition: opacity .35s ease, transform .35s ease; }
/* Positions inside the photo: portrait and number boxes (card is padded by 5px). */
.v-card .vc-photo-hit { left: calc(5px + (100% - 10px) * .064); top: calc(5px + (100% - 10px) * .08); width: calc((100% - 10px) * .23); height: calc((100% - 10px) * .378); }
.v-card .vc-no-hit { left: calc(5px + (100% - 10px) * .354); top: calc(5px + (100% - 10px) * .19); width: calc((100% - 10px) * .526); height: calc((100% - 10px) * .095); transition-delay: .2s; }
.v-card.ok .vc-hit { opacity: 1; transform: none; }
.v-card .vc-scan { position: absolute; left: 0; right: 0; top: -10%; height: 3px; background: var(--ok); box-shadow: 0 0 10px var(--ok); opacity: 0; }
.v-card.scan .vc-scan { animation: scan 1.1s ease-in-out 1; opacity: 1; }
.v-card.ok { border-style: solid; border-color: var(--ok); }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.v-check { font-size: 12.5px; color: var(--ok); font-weight: 600; margin-bottom: 14px; }
.v-check.wait { color: var(--muted); font-weight: 500; }
.v-tick { width: 76px; height: 76px; margin: 18px auto 8px; }
.v-tick svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.v-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.view.on .v-tick circle { animation: draw .6s ease forwards; }
.view.on .v-tick path { animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.v-paid { text-align: center; font: 600 24px/1.3 var(--serif); color: var(--plum-2); }
.v-paid small { font: 500 12px var(--sans); color: var(--muted); }
.ripple { z-index: 4; position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(87, 15, 81, .22); transform: scale(0); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple .5s ease-out; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hand {
  position: absolute; left: 0; top: 0; width: 110px; z-index: 5; pointer-events: none;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35));
  transition: transform .7s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.hand.tap { transition-duration: .14s; }

/* Key figures */
.figures { border-bottom: 1px solid var(--line); }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fig-grid div { padding: 30px 24px; border-left: 1px solid var(--line); }
.fig-grid div:first-child { border-left: 0; padding-left: 0; }
.fig-grid b { display: block; font: 600 26px/1.2 var(--serif); color: var(--plum-2); }
.fig-grid span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section.paper { background: var(--paper); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { border: 1px solid var(--line); border-top: 4px solid var(--plum-2); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.product:nth-child(2) { border-top-color: var(--gold); }
.p-tag { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.product h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.rate { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rate b { font: 600 48px/1 var(--serif); color: var(--plum-2); }
.rate span { color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0 0 22px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plain li { padding: 8px 0 8px 18px; position: relative; font-size: 15px; border-top: 1px solid var(--line); }
.plain li::before { content: ''; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--gold); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(300px, 380px) minmax(300px, 420px); justify-content: center; gap: 56px; align-items: start; }
.device {
  background: linear-gradient(180deg, #2b2730 0%, #1d1a21 100%);
  border-radius: 26px; padding: 22px 20px 24px; color: #d9d4dc;
  box-shadow: 0 2px 0 #3a3540 inset, 0 -3px 0 #0f0d12 inset, 0 30px 50px -24px rgba(30, 10, 30, .55);
  outline: none;
}
.device:focus-visible { box-shadow: 0 0 0 3px var(--gold), 0 30px 50px -24px rgba(30, 10, 30, .55); }
.dev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dev-brand { font: 700 12px/1 var(--sans); letter-spacing: .22em; color: #f1e9f0; }
.dev-model { font-size: 10.5px; color: #8f8796; letter-spacing: .04em; }
.dev-solar { margin-left: auto; display: flex; gap: 2px; padding: 3px; background: #0d0b10; border-radius: 3px; }
.dev-solar i { width: 13px; height: 13px; background: linear-gradient(135deg, #3b2d22, #1c1510); border-radius: 1px; }
.lcd {
  background: linear-gradient(180deg, #b9c4a2, #a9b593); color: #1d2416;
  border-radius: 8px; padding: 10px 14px 10px; margin-bottom: 20px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .35); font-family: 'Share Tech Mono', var(--mono);
}
.lcd-flags { display: flex; gap: 12px; font-size: 11px; letter-spacing: .06em; opacity: .55; }
.lcd-flags .on { opacity: 1; font-weight: 700; }
.lcd-flags span { opacity: .9; }
.lcd-main { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; min-height: 58px; }
.lcd-main small { font-size: 18px; }
.lcd-main output { font-size: 46px; line-height: 1.15; letter-spacing: .02em; }
.lcd-sub { display: flex; gap: 8px; font-size: 13px; justify-content: flex-end; }
.lcd-limit { margin-right: auto; font-weight: 700; }
.lcd.blink .lcd-limit { animation: blink .5s steps(2) 3; }
@keyframes blink { 50% { opacity: 0; } }
.keys { --kh: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.k {
  height: var(--kh); border: 0; border-radius: 10px; cursor: pointer;
  font: 600 19px/1 var(--sans); color: #f4f0f6;
  background: linear-gradient(180deg, #4a4452, #39343f);
  box-shadow: 0 3px 0 #1a171d, 0 4px 8px rgba(0, 0, 0, .35);
  transition: transform .06s ease, box-shadow .06s ease, background .2s ease;
}
.k:active, .k.down { transform: translateY(3px); box-shadow: 0 0 0 #1a171d, 0 1px 3px rgba(0, 0, 0, .35); }
.k:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.k-fn { font-size: 13px; letter-spacing: .06em; background: linear-gradient(180deg, #5b4c61, #46394c); }
.k-fn.on { background: linear-gradient(180deg, #6d2a66, #571f51); }
.k-clear { background: linear-gradient(180deg, #b0413a, #8f312b); font-size: 16px; }
.k-eq { grid-row: span 2; height: calc(var(--kh) * 2 + 10px); background: linear-gradient(180deg, #f6be3a, #dc9e14); color: #231a05; font-size: 26px; box-shadow: 0 3px 0 #8f6508, 0 4px 8px rgba(0, 0, 0, .35); }
.k-wide { grid-column: span 2; }
.k-prod { grid-column: span 2; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(180deg, #3b3640, #2e2a33); color: #a59cab; }
.k-prod.on { color: #241a03; background: linear-gradient(180deg, #f6be3a, #dc9e14); box-shadow: 0 3px 0 #8f6508, 0 4px 8px rgba(0, 0, 0, .35); }

.tape-wrap { position: relative; padding-top: 10px; }
.slot { height: 14px; border-radius: 7px; background: #2b2730; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .6); margin: 0 -10px; }
.tape {
  position: relative; margin-top: -7px; background: #fffef9; padding: 26px 24px 30px;
  font-family: var(--mono); font-size: 13.5px; color: #2a2530;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
  transform-origin: top;
}
.tape.print { animation: print .9s cubic-bezier(.3, .7, .3, 1); }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.t-head { text-align: center; font-weight: 600; letter-spacing: .12em; font-size: 12.5px; padding-bottom: 14px; border-bottom: 1.5px dashed #b7b0ba; }
.t-head span { font-weight: 400; letter-spacing: .02em; color: #6a6370; }
.t-lines { margin: 0; padding: 12px 0; border-bottom: 1.5px dashed #b7b0ba; }
.t-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.t-lines dt { color: #6a6370; }
.t-lines dd { margin: 0; text-align: right; font-weight: 500; }
.t-em dt, .t-em dd { color: var(--ok); font-weight: 600; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 14px; border-bottom: 3px double #b7b0ba; }
.t-total span { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.t-total b { font-size: 26px; color: var(--plum-2); }
.t-foot { font-size: 11.5px; color: #7a7380; margin: 14px 0 18px; line-height: 1.5; font-family: var(--sans); }

/* Who we serve */
.numbered { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.numbered li { border-top: 2px solid var(--ink); padding-top: 18px; }
.numbered .num { font: 600 15px var(--serif); color: var(--gold-d); }
.numbered h3 { font-family: var(--serif); font-size: 23px; margin: 8px 0 10px; }
.numbered p { color: var(--muted); }

/* Requirements */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.req h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Safety */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.assure div { padding: 28px 24px; border-left: 1px solid var(--line); }
.assure div:first-child { border-left: 0; }
.assure h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; color: var(--plum-2); }
.assure p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--plum-2); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Call to action */
.cta-band { background: var(--plum); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { color: rgba(255, 255, 255, .75); margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact-grid h2 { font-size: clamp(30px, 3.6vw, 42px); }
.lead-s { color: var(--muted); font-size: 17px; margin-top: 10px; }
.contact { margin: 28px 0 0; }
.contact div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact dd { margin: 0; }
.contact a { word-break: break-word; }
.map { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .map-label { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; }

/* Footer */
.foot { background: #2A0827; color: rgba(255, 255, 255, .72); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot p { margin-top: 14px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid a:not(.brand) { display: block; color: rgba(255, 255, 255, .7); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot-grid a:not(.brand):hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; }

/* Reveal on scroll (gentle) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* Apply now pop-up */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(28, 8, 26, .6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 28px 24px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); margin: auto; animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.modal-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: var(--paper); }
.m-head { text-align: center; margin-bottom: 18px; }
.m-head img { margin: 0 auto 10px; }
.m-head h2 { font-size: 26px; }
.m-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.btn.google { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.google:hover { border-color: var(--plum-2); }
.btn.google .g { color: #4285F4; font-size: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#applyForm { display: grid; gap: 12px; }
#applyForm .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.in { display: grid; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
label.in input { font: inherit; font-size: 15.5px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FBFAFC; width: 100%; }
label.in input:focus { outline: none; border-color: var(--plum-2); box-shadow: 0 0 0 3px rgba(87, 15, 81, .12); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--plum-2); }
.err { color: #B3261E; background: #FCE8E6; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.m-foot { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 14px; }
body.modal-open { overflow: hidden; }
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--ink); text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 44px 16px 18px; cursor: pointer; position: relative; transition: border-color .15s ease, background .15s ease; }
.choice::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border: solid var(--plum-2); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.choice:hover, .choice:focus-visible { border-color: var(--plum-2); background: #fbf6fa; outline: none; }
.choice b { display: block; font-size: 16.5px; color: var(--plum-2); }
.choice small { display: block; color: var(--muted); font-size: 13.5px; }
.m-back { border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--plum-2); cursor: pointer; padding: 4px 0; margin-bottom: 6px; }

/* Tablet */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { padding-top: 16px; }
  .nav-cta .btn { width: 100%; }
  .menu { display: block; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 40px; }
  .demo { margin-top: 8px; }
  .fig-grid { grid-template-columns: 1fr 1fr; }
  .fig-grid div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fig-grid div:nth-child(-n+2) { border-top: 0; }
  .products, .req-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: minmax(0, 380px); gap: 36px; }
  .numbered { grid-template-columns: 1fr; gap: 28px; }
  .assure { grid-template-columns: 1fr 1fr; }
  .assure div:nth-child(3) { border-left: 0; }
  .assure div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

/* Phone */
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .bar { height: 64px; }
  .nav { inset: 64px 0 auto; }
  .brand-text b { font-size: 17px; }
  .lead { font-size: 16.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-rates { flex-direction: column; gap: 12px; }
  .hero-rates div { border: 0; padding: 0; margin: 0; }
  .demo { transform: scale(.86); transform-origin: top center; margin-bottom: -70px; }
  .fig-grid div { padding: 20px 0; }
  .fig-grid b { font-size: 21px; }
  .product, .req { padding: 24px 20px; }
  .rate b { font-size: 40px; }
  .facts { grid-template-columns: 1fr; }
  .keys { --kh: 48px; }
  .lcd-main output { font-size: 40px; }
  .assure { grid-template-columns: 1fr; }
  .assure div { border-left: 0; border-top: 1px solid var(--line); }
  .assure div:first-child { border-top: 0; }
  .map { height: 280px; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  #applyForm .two { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hand { display: none; }
  .view, .tape.print { transition: none; animation: none; }
}
