/* DiskMitra website — shared styles (light + dark) */
:root {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --ink: #17201e;
  --muted: #53605c;
  --line: #dde2da;
  --teal: #17756a;
  --teal-soft: #e0efea;
  --blue: #3a55d6;
  --saffron: #b86f0c;
  --saffron-soft: #fbecd3;
  --seg-1: #3a55d6;
  --seg-2: #17756a;
  --seg-3: #8a5cd6;
  --seg-4: #c2486b;
  --seg-5: #9aa39f;
  --shadow: 0 1px 2px rgba(23, 32, 30, .06), 0 12px 32px rgba(23, 32, 30, .08);
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1413; --surface: #151d1b; --ink: #e4ebe8; --muted: #9eaaa6; --line: #27312e;
    --teal: #5fc4b3; --teal-soft: #15302b; --blue: #8ea2ff; --saffron: #f0b457; --saffron-soft: #33260f;
    --seg-1: #6f86f5; --seg-2: #3fa999; --seg-3: #a585e8; --seg-4: #de6f8f; --seg-5: #5d6865;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1413; --surface: #151d1b; --ink: #e4ebe8; --muted: #9eaaa6; --line: #27312e;
  --teal: #5fc4b3; --teal-soft: #15302b; --blue: #8ea2ff; --saffron: #f0b457; --saffron-soft: #33260f;
  --seg-1: #6f86f5; --seg-2: #3fa999; --seg-3: #a585e8; --seg-4: #de6f8f; --seg-5: #5d6865;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .86em; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }

/* header */
.top { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 13px 20px; font: 700 1rem var(--body); text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--teal); border-color: var(--teal); }
.btn svg { width: 20px; height: 20px; flex: none; }
.fine { font-size: .88rem; color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; padding-block: 36px 56px; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 .drive { font-family: var(--mono); font-weight: 700; font-size: .82em; letter-spacing: -.04em; color: var(--teal); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* the drive bar: what a typical C: drive holds */
.drivebar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 12px; }
.drivebar-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: .9rem; }
.drivebar-head b { font-size: 1.05rem; }
.bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--line); }
.bar i { display: block; height: 100%; }
.bar .free-able { background: repeating-linear-gradient(135deg, var(--saffron) 0 6px, color-mix(in srgb, var(--saffron) 70%, var(--surface)) 6px 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .hl { color: var(--ink); font-weight: 700; }

/* sections */
section { padding-block: 64px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 760px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.find { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.find .size { font-family: var(--mono); font-weight: 700; color: var(--saffron); font-size: .95rem; }
.find p { color: var(--muted); font-size: .98rem; }
.find code { color: var(--ink); word-break: break-all; font-size: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; justify-self: start; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figcaption { font-size: .95rem; color: var(--muted); }
.gallery figcaption b { color: var(--ink); }

.safety { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.rules li svg { width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.rules b { display: block; }
.rules span { color: var(--muted); font-size: .98rem; }
.never { border: 1px dashed var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; background: var(--paper); }
.never p { font-size: .95rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--mono); font-size: .78rem; padding: 3px 8px; border-radius: 6px; background: var(--teal-soft); color: var(--ink); }

/* free vs pro */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-size: 1.05rem; }
tbody tr:last-child td { border-bottom: 0; }
td.c { text-align: center; white-space: nowrap; font-weight: 700; }
.yes { color: var(--teal); }
.no { color: var(--muted); font-weight: 400; }

.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.price-card { border: 2px solid var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 16px; background: var(--surface); }
.amount { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; }
.amount small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 10px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 12px; }
.faq details p { color: var(--muted); padding-bottom: 14px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); font-size: .92rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.foot a { color: var(--muted); }

/* legal pages */
.legal { max-width: 760px; padding-block: 24px 64px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.fill { background: var(--saffron-soft); border-radius: 4px; padding: 0 4px; font-family: var(--mono); font-size: .88em; }

@media (max-width: 900px) {
  .hero, .safety, .price { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .finds, .gallery { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 48px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .bar i { animation: grow .9s ease-out both; transform-origin: left; }
  @keyframes grow { from { transform: scaleX(.2); opacity: .5; } }
}

/* ---- v2.2 site additions ---- */
.strip { display: block; text-align: center; padding: 9px 16px; background: var(--ink); color: var(--paper); font-size: .9rem; text-decoration: none; }
.strip b { background: var(--saffron); color: #1b1203; border-radius: 5px; padding: 1px 7px; margin-right: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.strip:hover { text-decoration: underline; }
.sitebar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sitebar .top { padding-block: 12px; }
.sitebar nav { margin-left: auto; }
.btn.sm { padding: 9px 14px; font-size: .92rem; border-radius: 10px; }
.launch-line { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--saffron); }
.launch-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); flex: none; }
.center { text-align: center; justify-content: center; }

.tour { display: grid; gap: 16px; }
.tabs-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-row button { font: 700 .95rem var(--body); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tabs-row button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs-row button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tour-panel { display: grid; gap: 12px; }
.tour-cap { color: var(--muted); font-size: 1rem; }

.cmp th[scope="row"] { font-weight: 700; width: 26%; }
.cmp thead th { font-size: 1rem; }
.cmp .us { background: var(--teal-soft); }
.cmp td.no { color: var(--muted); }
.ask { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .95rem; }
.ask a { font-weight: 700; }

.privacy3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.privacy3 div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.privacy3 span { color: var(--muted); font-size: .88rem; }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.more div { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--ink); padding-top: 14px; }
.more p { color: var(--muted); }
.pro { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); border-radius: 5px; padding: 0 5px; margin-left: 4px; }

.launch-box { display: grid; gap: 10px; padding: 16px 20px; border-radius: 14px; background: var(--saffron-soft); margin-bottom: 20px; }
.meter { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--saffron) 25%, var(--surface)); overflow: hidden; }
.meter i { display: block; height: 100%; min-width: 2%; background: var(--saffron); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tier { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); }
.tier.main { border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.tier .amount { font-size: clamp(1.8rem, 3.2vw, 2.3rem); }
.tier .amount s { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.tier .btn { justify-content: center; }
.badge { position: absolute; top: -12px; left: 24px; background: var(--saffron); color: #1b1203; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.terms-line { text-align: center; font-weight: 700; margin-top: 24px; }
.fine.center { margin-top: 6px; }
.reqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.reqs div { display: grid; gap: 2px; font-size: .92rem; }
.reqs span { color: var(--muted); }

.referral { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li { color: var(--muted); }
.steps b { color: var(--ink); }

.faq-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.faq-groups .faq { max-width: none; }
.faq h3 { margin-bottom: 4px; }

.closing { padding-block: 72px; }
.closing-in { display: grid; gap: 16px; justify-items: center; text-align: center; }
.closing-in .lede { max-width: 60ch; }

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; font-size: .92rem; color: var(--muted); }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-grid nav b { color: var(--ink); }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand { display: grid; gap: 8px; align-content: start; }

@media (max-width: 900px) {
  .tiers, .faq-groups, .referral, .more { grid-template-columns: minmax(0, 1fr); }
  .reqs, .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sitebar nav { display: none; }
  .sitebar .btn.sm { margin-left: auto; }
  .reqs, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .strip { font-size: .82rem; }
}

/* ---- v3 storefront: config-driven pricing, checkout sheet, key lookup ---- */
[hidden] { display: none !important; }
button.btn { cursor: pointer; font: 700 1rem var(--body); }
button.btn:disabled { opacity: .55; cursor: default; }
.btn.primary:disabled:hover { background: var(--ink); border-color: var(--ink); }
.legal-addr { white-space: pre-line; }
.tiers .tier .btn { width: 100%; }
.tier .ticks { margin-bottom: 4px; align-content: start; }
.pricing-note { color: var(--muted); font-size: .95rem; text-align: center; }

.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 15, .6); overflow-y: auto; }
.sheet-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 16px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sheet-card h2 { font-size: 1.6rem; padding-right: 40px; }
.sheet-card .fine { color: var(--muted); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sheet-x:hover { color: var(--ink); background: var(--paper); }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.field input, .field select, .lookup input { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .lookup input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.lookup-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.lookup-row input { flex: 1 1 200px; }
.lookup-row .btn { padding: 10px 16px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.co-total b { font-family: var(--display); font-size: 1.6rem; }
.co-total s { color: var(--muted); font-weight: 600; margin-right: 8px; }
.co-msg { min-height: 1.3em; color: var(--seg-4); font-weight: 700; font-size: .95rem; }
.co-pay { width: 100%; justify-content: center; }
.co-done { display: grid; gap: 14px; }
.keybox { padding: 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--paper); overflow-wrap: anywhere; }
.keybox code { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.co-done .steps { margin: 0; }
.lookup { display: grid; gap: 8px; max-width: 620px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lookup label { color: var(--muted); font-size: .95rem; }
.lookup label b { color: var(--ink); }

@media (max-width: 560px) {
  .sheet { place-items: end center; padding: 0; }
  .sheet-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 22px 18px 28px; }
  .lookup-row input { flex-basis: 100%; }
}
