:root {
  /* Backgrounds */
  --paper:        #faf8f3;          /* warm off-white main bg */
  --cream:        #f4f0e6;          /* slightly darker for cards */
  --char:         #0e0e0c;          /* deep charcoal for hero/dark sections */
  --char-2:       #1c1c1a;          /* secondary charcoal */

  /* Text */
  --ink:          #1a1a1a;          /* near-black body text */
  --ink-soft:     #3a3a3a;          /* secondary text */
  --muted:        #6b6660;          /* warm gray meta text */

  /* Lines */
  --line:         #e8e2d4;
  --line-2:       #d4cdb8;

  /* Accent — amber LED */
  --amber:        #e8a02f;
  --amber-d:      #c2410c;          /* deeper for hovers */
  --amber-l:      #fef3c7;          /* pale background tint */
  --amber-glow:   rgba(232,160,47,.35);

  /* Semantic */
  --green:        #3f7d4f;
  --red:          #a8321d;

  /* Typography */
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:  'Geist', 'Inter', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Shadows */
  --shadow-card:  0 30px 80px -20px rgba(14,14,12,.25),
                  0 8px 24px -8px rgba(14,14,12,.12);
  --shadow-soft:  0 4px 20px -4px rgba(14,14,12,.08);
}


/* ============ 2. RESET & BASE TYPOGRAPHY ============ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--amber-d);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: #9a2f0a; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }


/* ============ 3. LAYOUT HELPERS ============ */

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

section.padded { padding: 90px 0; }
@media (max-width: 768px) { section.padded { padding: 60px 0; } }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-d);
  margin-bottom: 16px; font-weight: 500;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--amber-d);
}

h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.5vw, 50px); line-height: 1.05;
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 16px;
}
h2 .light {
  font-style: normal; font-family: var(--sans); font-weight: 300;
  color: var(--muted);
}

.section-sub { font-size: 17px; color: var(--muted); line-height: 1.6; }


/* ============ 4. HEADER ============ */

.site-header {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}

/* Brand mark — pure CSS battery icon */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--char); border-radius: 8px;
  position: relative; overflow: hidden;
}
.brand-mark::before {
  content: ''; position: absolute;
  inset: 8px 10px 8px 7px;
  border: 2px solid var(--amber); border-radius: 3px;
}
.brand-mark::after {
  content: ''; position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 10px; background: var(--amber);
  border-radius: 0 2px 2px 0;
}
.brand-mark span {
  position: absolute;
  inset: 11px 13px 11px 10px;
  background: var(--amber); border-radius: 1px;
  animation: brandPulse 3s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--amber-glow); }
  50%      { opacity: .55; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--ink); letter-spacing: -.01em;
}
.brand-text span {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase; margin-top: 2px;
}

.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  color: var(--ink-soft); font-size: 14px; font-weight: 400;
  letter-spacing: -.005em;
}
.main-nav a:hover { color: var(--amber-d); text-decoration: none; }

.nav-toggle { display: none; font-size: 22px; color: var(--ink); padding: 6px; }

@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    padding: 20px 28px; gap: 16px;
    border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}


/* ============ 5. HERO ============ */

.hero {
  background: var(--char); color: var(--paper);
  padding: 90px 0 110px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: 50%; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 65%);
  transform: translateY(-50%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { opacity: .55; } to { opacity: 1; } }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center; position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--amber);
}

h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 7.5vw, 84px); line-height: .96;
  letter-spacing: -.025em; color: var(--paper); margin-bottom: 26px;
}
h1 .light {
  font-style: normal; font-family: var(--sans); font-weight: 300;
  color: #a8a39a; display: block; font-size: .58em;
  letter-spacing: -.005em; margin-top: 10px; line-height: 1.1;
}
h1 .accent { color: var(--amber); }

.hero-sub {
  font-size: 17px; color: #c4bfb6; max-width: 480px;
  margin-bottom: 32px; line-height: 1.55;
}

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: #7a756c;
  text-transform: uppercase; letter-spacing: .1em;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
}
.hero-meta .led.green {
  background: #5fa86f; box-shadow: 0 0 10px #5fa86f;
}

/* Hero illustration: decorative animated battery */
.hero-illustration {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.hero-bat {
  width: 280px; max-width: 100%; aspect-ratio: 1.85;
  border: 3px solid var(--amber); border-radius: 12px;
  padding: 8px; position: relative;
}
.hero-bat::after {
  content: ''; position: absolute;
  right: -14px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 36px; background: var(--amber);
  border-radius: 0 4px 4px 0;
}
.hero-bat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-d) 0%, var(--amber) 100%);
  border-radius: 5px; width: 78%;
  position: relative; overflow: hidden;
}
.hero-bat-fill::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  animation: scan 3s linear infinite;
}
@keyframes scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-bat-pct {
  position: absolute; left: 0; right: 0; top: -52px;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 46px; color: var(--paper);
}
.hero-bat-pct .pct-mono {
  font-family: var(--mono); font-style: normal;
  font-size: 11px; color: var(--amber); display: block;
  letter-spacing: .14em; margin-top: -2px; text-transform: uppercase;
}


/* ============ 6. TOOL CARD ============ */

.tool-section {
  margin-top: -60px;            /* overlap with hero */
  padding: 0 0 90px;
  position: relative; z-index: 2;
}
.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) {
  .tool-card { padding: 28px; border-radius: 18px; }
}

.tool-readout {
  text-align: center; padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px; position: relative;
}
.tool-readout::before, .tool-readout::after {
  content: ''; position: absolute; bottom: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2);
}
.tool-readout::before { left: 0; }
.tool-readout::after  { right: 0; }

/* Battery shell visual */
.battery-shell {
  display: inline-block;
  width: 180px; height: 64px;
  border: 2.5px solid var(--ink); border-radius: 7px;
  padding: 5px; background: var(--cream);
  margin-bottom: 20px; position: relative;
}
.battery-shell::after {
  content: ''; position: absolute;
  right: -9px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 24px; background: var(--ink);
  border-radius: 0 3px 3px 0;
}
.battery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-d) 0%, var(--amber) 100%);
  border-radius: 3px; width: 0%;
  transition: width .8s cubic-bezier(.4,0,.2,1), background .4s;
  position: relative; overflow: hidden;
}
.battery-fill.low {
  background: linear-gradient(90deg, #7a2114 0%, var(--red) 100%);
}
.battery-fill.charging {
  background: linear-gradient(90deg, var(--green) 0%, #5fa86f 100%);
  background-size: 200% 100%;
  animation: chargeFlow 2.4s linear infinite;
}
@keyframes chargeFlow {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

.battery-percent {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 92px; line-height: .9;
  color: var(--ink); letter-spacing: -.04em;
}
.battery-percent .pct-sym {
  font-family: var(--sans); font-style: normal; font-weight: 300;
  font-size: 38px; color: var(--muted);
  margin-left: 4px; vertical-align: 18px;
}

.battery-status {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
  margin-top: 10px; display: flex;
  justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.battery-status .charging-dot {
  display: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(95,168,111,.5);
  animation: greenPulse 1.5s ease-in-out infinite;
}
@keyframes greenPulse {
  0%, 100% { opacity: 1; } 50% { opacity: .5; }
}
.battery-status.is-charging .charging-dot { display: inline-block; }

/* Threshold sliders */
.controls {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 24px;
}
@media (max-width: 600px) { .controls { grid-template-columns: 1fr; } }

.control {
  background: var(--cream);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px;
}
.control-head {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 16px; gap: 8px;
}
.control-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 500;
}
.control-value {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.control-value .pct {
  font-family: var(--mono); font-style: normal;
  font-size: 13px; color: var(--muted);
  margin-left: 3px; vertical-align: 6px;
}

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--line-2); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); cursor: pointer;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--amber-d), 0 2px 8px rgba(232,160,47,.35);
  transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); cursor: pointer;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--amber-d);
}
.control.low input[type=range]::-webkit-slider-thumb {
  background: var(--red);
  box-shadow: 0 0 0 1px #7a2114, 0 2px 8px rgba(168,50,29,.3);
}
.control.low input[type=range]::-moz-range-thumb {
  background: var(--red); box-shadow: 0 0 0 1px #7a2114;
}

/* Sound selector + test/stop row */
.options-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px; padding: 16px 18px;
  background: var(--cream); border-radius: 14px;
  border: 1px solid var(--line);
}
.options-row label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 500;
}
.options-row select {
  font-size: 13px; padding: 9px 30px 9px 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6660' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  flex: 1; min-width: 150px;
}
.options-row select:focus {
  outline: 2px solid var(--amber); outline-offset: 2px;
  border-color: var(--amber);
}

.btn-test {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  transition: all .2s; font-weight: 500;
}
.btn-test:hover {
  border-color: var(--amber-d); color: var(--amber-d);
  background: var(--amber-l);
}

/* Notification permission button */
.btn-notify {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 12px 16px; margin-bottom: 16px;
  border: 1px dashed var(--amber); border-radius: 10px;
  background: var(--amber-l); color: var(--amber-d);
  font-weight: 500; transition: all .2s;
}
.btn-notify:hover {
  background: var(--amber); color: var(--char);
  border-style: solid;
}
.btn-notify.granted {
  border-color: var(--green); color: var(--green);
  background: #ecf3ee; cursor: default;
}
.btn-notify.granted:hover {
  background: #ecf3ee; color: var(--green);
}
.btn-notify.hidden { display: none; }

/* Primary action */
.btn-primary {
  display: block; width: 100%;
  font-family: var(--sans); font-weight: 500;
  font-size: 15px; padding: 16px 24px;
  background: var(--char); color: var(--paper);
  border-radius: 12px; transition: all .25s;
  letter-spacing: -.005em;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--amber-d);
  transform: translateY(100%);
  transition: transform .3s ease-out;
}
.btn-primary:hover { text-decoration: none; color: var(--paper); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary.active { background: var(--red); }
.btn-primary.active::before { background: #7a2114; }

/* Inline alerts */
.alert-banner {
  margin-top: 16px; padding: 13px 16px;
  border-radius: 10px; font-size: 13px;
  display: none; align-items: center; gap: 10px;
  font-weight: 500; animation: slideIn .4s ease-out;
}
.alert-banner.show { display: flex; }
.alert-banner.warn {
  background: #fdf2ee; color: #7a2114;
  border: 1px solid #e8c4b3;
}
.alert-banner.ok {
  background: #ecf3ee; color: #2c5a3a;
  border: 1px solid #c6dec9;
}
.alert-banner.info {
  background: var(--amber-l); color: #92561a;
  border: 1px solid #f0d894;
}
.alert-banner .close-x {
  margin-left: auto; font-size: 18px;
  color: inherit; opacity: .6; cursor: pointer;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Unsupported fallback */
.unsupported { display: none; text-align: center; padding: 32px 12px; }
.unsupported.show { display: block; }
.unsupported-icon { font-size: 48px; margin-bottom: 14px; opacity: .6; }
.unsupported h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; margin-bottom: 12px; color: var(--ink);
}
.unsupported p {
  color: var(--muted); margin-bottom: 22px; font-size: 14px;
  max-width: 460px; margin: 0 auto 22px;
}


/* ============ 7. CONTENT SECTIONS ============ */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 36px 32px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px;
  transition: all .3s; position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--amber);
}
.step-num {
  font-family: var(--serif); font-style: italic;
  font-size: 52px; font-weight: 400; color: var(--amber-d);
  line-height: 1; margin-bottom: 16px; opacity: .7;
}
.step h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 26px; font-weight: 400;
  margin-bottom: 12px; color: var(--ink); line-height: 1.1;
}
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Why section */
.why-bg {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 50px; }
}
.why-text h2 { margin-bottom: 22px; text-align: left; }
.why-text p {
  color: var(--ink-soft); margin-bottom: 18px;
  font-size: 16px; line-height: 1.7;
}
.why-text strong { color: var(--ink); font-weight: 600; }

.rule-card {
  background: var(--char); color: var(--paper);
  border-radius: 22px; padding: 50px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.rule-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--amber-glow) 0%, transparent 60%);
  pointer-events: none;
}
.rule-card > * { position: relative; }
.rule-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 110px; line-height: 1; letter-spacing: -.04em;
  color: var(--amber); margin-bottom: 12px;
}
.rule-num span {
  font-family: var(--sans); font-style: normal; font-weight: 300;
  font-size: 50px; color: #6b6660; margin-left: 4px;
}
.rule-card h4 {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; font-weight: 400; margin-bottom: 14px;
}
.rule-card p {
  color: #b8b3aa; font-size: 14px; line-height: 1.65;
  max-width: 280px; margin: 0 auto;
}


/* ============ 8. DOWNLOAD CTA ============ */

.download-card {
  background: var(--char); color: var(--paper);
  border-radius: 24px; padding: 60px 40px;
  max-width: 880px; margin: 0 auto;
  position: relative; overflow: hidden; text-align: center;
}
.download-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 65%);
  pointer-events: none;
}
.download-card > * { position: relative; }
.download-card .section-eyebrow { color: var(--amber); margin-bottom: 16px; }
.download-card .section-eyebrow::before { background: var(--amber); }
.download-card h2 { color: var(--paper); margin-bottom: 16px; }
.download-card p {
  font-size: 16px; color: #c4bfb6; margin-bottom: 32px;
  max-width: 540px; margin: 0 auto 32px; line-height: 1.6;
}
.dl-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; background: var(--paper); color: var(--ink);
  border-radius: 10px; font-weight: 500; font-size: 14px;
  transition: all .2s; letter-spacing: -.005em;
}
.btn-download:hover {
  transform: translateY(-2px); text-decoration: none;
  color: var(--ink); background: var(--amber);
}


/* ============ FAQ ============ */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; font-weight: 400;
  color: var(--ink); padding: 26px 0;
  background: none; line-height: 1.3;
}
.faq-q::after {
  content: '+'; font-family: var(--mono);
  font-size: 26px; color: var(--amber-d);
  transition: transform .3s; flex-shrink: 0; margin-left: 16px;
  font-weight: 300; font-style: normal;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease-out, padding .35s ease-out;
  color: var(--ink-soft); font-size: 16px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 26px; }


/* ============ AD SLOTS ============ */

.ad-slot { margin: 60px auto; max-width: 800px; padding: 0 28px; }
.ad-placeholder {
  background: var(--cream);
  border: 1px dashed var(--line-2);
  border-radius: 12px; padding: 40px;
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .12em;
}


/* ============ 9. PAGE TEMPLATES ============ */

.page-hero {
  background: var(--char); color: var(--paper);
  padding: 80px 0 70px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, var(--amber-glow) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero .meta-line {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 60px); margin-bottom: 14px;
}
.page-hero p {
  color: #c4bfb6; font-size: 17px; max-width: 600px;
  margin: 0 auto; line-height: 1.55;
}

.page-content { max-width: 760px; margin: 0 auto; padding: 60px 28px 80px; }
.page-content h2 { font-size: 28px; margin: 44px 0 16px; text-align: left; }
.page-content h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; font-weight: 400;
  margin: 28px 0 12px; color: var(--ink);
}
.page-content p {
  margin-bottom: 16px; color: var(--ink-soft);
  font-size: 16px; line-height: 1.75;
}
.page-content ul, .page-content ol {
  margin: 12px 0 22px 26px; color: var(--ink-soft);
}
.page-content li {
  margin-bottom: 8px; font-size: 16px; line-height: 1.7;
}
.page-content strong { color: var(--ink); font-weight: 600; }


/* Contact form */
.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.contact-form label {
  display: block; font-family: var(--mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
  margin-bottom: 7px; font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.contact-form textarea { resize: vertical; min-height: 130px; }


/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; margin: 30px 0;
}
.blog-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px;
  transition: all .3s; display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--amber);
}
.blog-card .date {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 14px;
}
.blog-card h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; font-weight: 400;
  margin-bottom: 12px; line-height: 1.2;
}
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--amber-d); text-decoration: none; }
.blog-card p {
  color: var(--muted); font-size: 14px;
  margin-bottom: 18px; line-height: 1.65; flex: 1;
}
.blog-card .read {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--amber-d); font-weight: 500;
  align-self: flex-start;
}
.blog-card .read::after {
  content: ' →'; transition: transform .2s; display: inline-block;
}
.blog-card .read:hover { text-decoration: none; }
.blog-card .read:hover::after { transform: translateX(3px); }


/* ============ 10. ARTICLE (single blog post) ============ */

.article-header {
  background: var(--char); color: var(--paper);
  padding: 70px 28px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.article-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, var(--amber-glow) 0%, transparent 65%);
  pointer-events: none;
}
.article-header > * { position: relative; max-width: 780px; margin: 0 auto; }
.article-header .meta {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; line-height: 1;
}
.article-header .lead {
  font-size: 19px; color: #c4bfb6;
  max-width: 640px; margin: 0 auto;
  line-height: 1.55; font-family: var(--sans); font-weight: 300;
}

.article-content { max-width: 720px; margin: 0 auto; padding: 40px 28px 80px; }
.article-content p {
  font-size: 17px; line-height: 1.85;
  margin-bottom: 20px; color: var(--ink-soft);
}
.article-content h2 { font-size: 32px; margin: 44px 0 16px; text-align: left; }
.article-content h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; font-weight: 400;
  margin: 32px 0 14px; color: var(--ink);
}
.article-content ul, .article-content ol { margin: 16px 0 24px 30px; }
.article-content li {
  margin-bottom: 10px; line-height: 1.7;
  color: var(--ink-soft); font-size: 17px;
}
.article-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 22px 26px; margin: 28px 0;
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--ink);
  background: var(--amber-l);
  border-radius: 0 12px 12px 0; line-height: 1.5;
}
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 22px 0; font-size: 14px;
}
.article-content th, .article-content td {
  padding: 12px 16px; border: 1px solid var(--line); text-align: left;
}
.article-content th {
  background: var(--cream); font-weight: 600;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em;
}
.article-content code {
  font-family: var(--mono); background: var(--cream);
  padding: 2px 7px; border-radius: 4px;
  font-size: 14px; color: var(--amber-d);
}
.article-content pre {
  background: var(--char); color: #c4bfb6;
  padding: 22px; border-radius: 12px;
  overflow-x: auto; font-family: var(--mono);
  font-size: 13px; line-height: 1.7; margin: 20px 0;
}
.article-content pre code {
  background: transparent; color: inherit; padding: 0;
}


/* ============ 11. FOOTER ============ */

.site-footer {
  background: var(--char); color: #8a857d;
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 44px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-text strong { color: var(--paper); }
.footer-brand .brand-text span { color: #6b6660; }
.footer-brand p {
  font-size: 14px; line-height: 1.7;
  margin-top: 18px; color: #8a857d; max-width: 360px;
}
.footer-credit {
  font-family: var(--mono); font-size: 11px;
  color: #6b6660; margin-top: 14px;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer-credit a { color: #8a857d; }
.footer-credit a:hover { color: var(--amber); }

.footer-col h5 {
  color: var(--paper); font-family: var(--mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #8a857d; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #2a2926; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: 13px; color: #6b6660;
}
.footer-bottom a { color: #8a857d; }
.footer-bottom a:hover { color: var(--amber); }


/* ============ 12. UTILITIES & ACCESSIBILITY ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
