/* HamaraFolio website. No web fonts, no scripts: the page has to live up to what it says. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #18241f;
  --muted: #56675f;
  --line: #e2ded3;
  --green: #1f6f5b;
  --green-ink: #1f6f5b;
  --green-deep: #133f34;
  --gold: #e0a83a;
  --gold-soft: #fbf1dc;
  --soft: #eaf2ef;
  --cipher-bg: #10251f;
  --cipher-ink: #8fd1bb;
  --shadow: 0 1px 2px rgba(20, 40, 30, 0.06), 0 8px 24px rgba(20, 40, 30, 0.07);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1613;
    --surface: #15201c;
    --ink: #e8eee9;
    --muted: #9fb2a9;
    --line: #253530;
    --green-ink: #6cc4a6;
    --gold-soft: #2c2414;
    --soft: #172723;
    --cipher-bg: #0a1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1613; --surface: #15201c; --ink: #e8eee9; --muted: #9fb2a9; --line: #253530;
  --green-ink: #6cc4a6; --gold-soft: #2c2414; --soft: #172723; --cipher-bg: #0a1714;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1, h2 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; }
p { margin: 0; }
a { color: var(--green-ink); }
.sprite { display: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.i.lg { width: 30px; height: 30px; color: var(--green-ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--green-deep) 92%, transparent); backdrop-filter: blur(8px); color: #f6f5f1; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 20px; letter-spacing: -0.01em; }
.brand b { color: var(--gold); font-weight: 700; }
.brand .mark { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: #dcebe5; text-decoration: none; font-size: 15px; }
.top nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .top nav a:not([href="#security"]) { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(224, 168, 58, 0.18), transparent 60%),
    linear-gradient(160deg, #1f6f5b 0%, #164f41 55%, #10382e 100%);
  color: #f6f5f1;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.12fr; } .hero { padding: 84px 0 92px; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 800; }
.hl { color: #ffe3a6; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: #d7e8e1; max-width: 36em; }
.lead em { color: #fff; font-style: normal; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--gold); color: #1d1503; }
.btn.primary:hover { background: #ebb84f; }
.btn.ghost { color: #f6f5f1; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25)); }
.svg-t { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
.svg-mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; }

/* Stats */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.4; }
.stat:nth-child(odd) { border-left: 0; }
@media (min-width: 900px) { .stat:nth-child(odd) { border-left: 1px solid var(--line); } .stat:first-child { border-left: 0; } }
.stat .big { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--green-ink); letter-spacing: -0.02em; }

/* Sections */
.band { padding: 72px 0; }
.band.alt { background: var(--soft); }
@media (min-width: 900px) { .band { padding: 96px 0; } }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; max-width: 22em; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 42em; }
.fine { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 48em; }

/* Screenshot galleries (CSS scroll-snap; no script) */
.tour { padding-bottom: 56px; }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 34px max(16px, calc((100vw - 1140px) / 2 + 28px)) 26px;
  scroll-padding: 0 max(16px, calc((100vw - 1140px) / 2 + 28px));
  scrollbar-color: var(--green) transparent;
}
.gallery::-webkit-scrollbar { height: 10px; }
.gallery::-webkit-scrollbar-thumb { background: var(--green); border-radius: 10px; }
.gallery::-webkit-scrollbar-track { background: var(--line); border-radius: 10px; }
.shot { flex: 0 0 min(86vw, 780px); margin: 0; scroll-snap-align: start; }
.frame {
  border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(20, 40, 30, 0.06), 0 18px 40px rgba(20, 40, 30, 0.14);
}
.frame::before {
  content: ""; display: block; height: 28px; background:
    radial-gradient(circle at 16px 14px, #e06c5a 5px, transparent 5.5px),
    radial-gradient(circle at 34px 14px, #e0a83a 5px, transparent 5.5px),
    radial-gradient(circle at 52px 14px, #4fae8a 5px, transparent 5.5px),
    #e9e6dd;
}
.frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 46em; }
.shot figcaption b { color: var(--ink); margin-right: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frame::before { background-color: #24332d; } }

/* FIRE */
.fire-steps { display: grid; gap: 18px; margin-top: 40px; align-items: start; }
@media (min-width: 760px) { .fire-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .fire-steps { grid-template-columns: repeat(3, 1fr); } }
.fire .gallery { padding-top: 40px; }
.fire .fine { margin-top: 4px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.calc h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.calc .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.calc-row span { color: var(--muted); }
.calc-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row.plus span::before { content: "+ "; color: var(--green-ink); font-weight: 700; }
.calc-row.minus span::before { content: "− "; color: #c0563f; font-weight: 700; }
.calc-row.divide span::before { content: "÷ "; color: var(--green-ink); font-weight: 700; }
.calc-row.total { border-bottom: 2px solid var(--ink); }
.calc-row.total span, .calc-row.result span { color: var(--ink); font-weight: 600; }
.calc-row.result { border: 0; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); border: 1.5px solid var(--gold); font-size: 17px; }
.calc-row.result b { font-size: 22px; color: var(--green-ink); }
.calc-note, .calc-text { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.calc-text b { color: var(--ink); }
.odds { display: grid; gap: 8px; margin-top: 14px; }
.odd { display: grid; grid-template-columns: 30px 1fr 42px; gap: 10px; align-items: center; font-size: 14px; }
.odd .age { color: var(--muted); font-variant-numeric: tabular-nums; }
.odd .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.odd .bar { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.odd .bar i { display: block; height: 100%; border-radius: 6px; }
.odd .low { background: #c0453a; } .odd .mid { background: var(--gold); } .odd .ok { background: var(--green); }
.w16 { width: 16%; } .w50 { width: 50%; } .w81 { width: 81%; } .w93 { width: 93%; } .w98 { width: 98%; }
.levers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.levers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.levers li:last-child { border-bottom: 0; }
.levers span { color: var(--muted); }
.levers b { white-space: nowrap; }
.levers .up { color: var(--green-ink); }
.levers .down { color: #c0453a; }

/* Journey */
.journey { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journey { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow); }
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -18px; width: 14px; height: 14px;
    border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: rotate(45deg);
  }
}
.step-no { position: absolute; top: 18px; right: 20px; font-size: 40px; font-weight: 800; color: var(--line); line-height: 1; }
.step-i { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--soft); color: var(--green-ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 19px; margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.chip { border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.chip.plain { background: var(--gold-soft); border: 1px dashed var(--gold); }
.chip.sealed { background: var(--cipher-bg); color: var(--cipher-ink); font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; overflow-wrap: anywhere; }
.chip.sign { background: var(--soft); border: 1px solid var(--line); font-weight: 600; color: var(--green-ink); }

/* Compare */
.compare { display: grid; gap: 18px; margin-top: 40px; align-items: stretch; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr auto 1fr; } }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pane header { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.pane.mine header { color: var(--green-ink); }
.pane.theirs { background: var(--cipher-bg); border-color: var(--cipher-bg); color: #d6e6df; }
.pane.theirs header { color: #f6f5f1; }
.record { margin: 0; display: grid; gap: 0; }
.record div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.record div:last-child { border-bottom: 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-weight: 600; text-align: right; }
.vs { display: grid; place-items: center; }
.vs .i { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--gold); color: #1d1503; stroke-width: 2; }
.cipher { margin: 0; font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13px; line-height: 1.75; color: var(--cipher-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { margin-top: 14px; font-size: 14px; color: #a9c2b8; }
.note { margin-top: 10px; font-size: 15px; color: #f6f5f1; border-left: 3px solid var(--gold); padding-left: 12px; }
.never { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.never h3 { font-size: 17px; }
.never ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.never li { padding: 6px 12px 6px 30px; border-radius: 999px; background: var(--soft); font-size: 15px; position: relative; }
.never li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }

/* Keys */
.keys-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .keys-grid { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 32px; position: relative; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--green-ink); border-bottom: 3px solid var(--green-ink); transform: rotate(-45deg); }
.ladder { display: flex; flex-direction: column; align-items: stretch; max-width: 460px; width: 100%; justify-self: center; }
.rung { position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.rung > .i, .side > .i { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--soft); color: var(--green-ink); }
.rung b, .side b { display: block; font-size: 16.5px; }
.rung span, .side span { display: block; font-size: 14px; color: var(--muted); }
.rung.gold { border: 2px solid var(--gold); background: var(--gold-soft); flex-wrap: wrap; }
.rung.gold > .i { background: var(--gold); color: #1d1503; }
.side { flex-basis: 100%; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--gold); background: var(--surface); }
.link { align-self: center; position: relative; padding: 14px 0 14px 26px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.link::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: linear-gradient(var(--line), var(--gold)); }
.link::after { content: ""; position: absolute; left: 2.5px; bottom: 3px; width: 7px; height: 7px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg); }

/* Chain */
.chain { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .chain { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.chain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.chain li:last-child { border: 2px solid var(--green); }
.chain .n { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--muted); }
.chain .who { font-size: 13.5px; color: var(--green-ink); display: inline-flex; gap: 6px; align-items: center; }
.chain .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.chain li:not(:last-child)::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
@media (max-width: 899px) { .chain li:not(:last-child)::after { left: 30px; bottom: -17px; width: 4px; height: 18px; } }
@media (min-width: 900px) { .chain li:not(:last-child)::after { right: -29px; top: 50%; width: 30px; height: 4px; margin-top: -2px; } }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.warn { border-color: var(--gold); background: var(--gold-soft); }
.card.warn .i.lg { color: #b07b12; }

/* Roadmap */
.road { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(3, 1fr); } }
.phase { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); border-top: 6px solid var(--line); }
.phase.done { border-top-color: var(--green); }
.phase.next { border-top-color: var(--gold); }
.phase h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 6px; background: var(--soft); color: var(--green-ink); }
.phase.next .tag { background: var(--gold-soft); color: #9a6a0c; }
.phase ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; display: grid; gap: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phase.next .tag { color: var(--gold); } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
details:first-of-type { margin-top: 32px; }
summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--green-ink); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 20px; color: var(--muted); }

/* Footer */
.foot { background: var(--green-deep); color: #cfe3dc; padding: 36px 0; font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.brand.small { font-size: 15px; }
.brand.small .mark { width: 26px; height: 26px; }
.privacy { display: inline-flex; gap: 8px; align-items: center; }
.copy { color: #9fbfb3; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.frame { display: block; }
a.frame:hover { border-color: var(--green); }
