/* Landing page. Builds on site.css. */

/* ---------- Hero: the drive, being read ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(640px, min(100svh, 940px));
  overflow: hidden;
  background: var(--ground);
}

.hero__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Keeps the words readable over the map without hiding it: dense on the left, open on the right. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ground) 88%, transparent) 0, transparent 120px),
    linear-gradient(0deg, color-mix(in srgb, var(--ground) 96%, transparent) 0, transparent 150px),
    linear-gradient(90deg,
      color-mix(in srgb, var(--ground) 94%, transparent) 0%,
      color-mix(in srgb, var(--ground) 80%, transparent) 36%,
      color-mix(in srgb, var(--ground) 40%, transparent) 62%,
      color-mix(in srgb, var(--ground) 8%, transparent) 82%);
}

.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 40px;
}

.hero__title {
  max-width: 12.5ch;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
}
.hero__title em {
  font-style: normal;
  color: var(--signal-text);
}

.hero .lede {
  max-width: 46ch;
  margin: 26px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__meta {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--dim);
}
.hero__meta > span { white-space: nowrap; }
.hero__meta span + span::before { content: "·"; margin: 0 8px; color: var(--line-strong); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 12.5px;
  color: var(--dim);
}
.hero__status { margin: 0; }
.hero__status b { color: var(--ink); font-weight: 600; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  background: var(--cell-read);
}
.swatch--head { background: var(--cell-head); }
.swatch--unread { background: var(--cell-unread); box-shadow: inset 0 0 0 1px var(--control-on); }
.swatch--photos { background: var(--photos); }
.swatch--videos { background: var(--videos); }
.swatch--documents { background: var(--documents); }
.swatch--audio { background: var(--audio); }

@media (max-width: 760px) {
  .hero__scrim {
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--ground) 82%, transparent) 0%,
        color-mix(in srgb, var(--ground) 70%, transparent) 55%,
        color-mix(in srgb, var(--ground) 96%, transparent) 100%);
  }
  .hero .site-nav { display: none; }
  .legend .legend__state { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .hero__actions .button { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .display { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section__head .lede { margin: 18px 0 0; max-width: 58ch; }

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card canvas[data-mini] { width: 100%; }

/* How it works: four squares of one drive, from untouched to recovered. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps .card { display: flex; flex-direction: column; gap: 18px; }
.step__art {
  padding: 6px 4px;
  border-radius: 10px;
  background: var(--sunken);
  border: 1px solid var(--line-soft);
}
.step__num {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--signal-text);
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* What's different: a bento of six. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento .card { display: flex; flex-direction: column; gap: 18px; }
.bento .card > .art { margin-top: auto; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4 { grid-column: span 2; }
  .span-3, .span-2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-4, .span-3, .span-2 { grid-column: span 1; }
}

.art {
  padding: 14px;
  border-radius: 10px;
  background: var(--sunken);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--dim);
}
.art__caption { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }

/* The reading lens: one square magnified into 64 slices. */
.lens {
  display: grid;
  grid-template-columns: repeat(64, minmax(0, 1fr));
  gap: 2px;
  margin-top: 12px;
}
.lens i { display: block; height: 16px; border-radius: 2px; background: var(--lens-idle); }
.lens i.r { background: var(--lens-read); }
.lens i.h { background: var(--cell-head); }
@media (max-width: 480px) { .lens { gap: 1px; } .lens i { border-radius: 1px; } }

/* Quality rows. */
.quality { margin: 0; padding: 0; list-style: none; }
.quality li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.quality li:last-child { border-bottom: 0; }
.quality .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality .label { color: var(--dim); font-size: 12.5px; }
.meter { display: flex; gap: 3px; justify-content: flex-end; }
.meter i { display: block; width: 9px; height: 5px; border-radius: 2px; background: var(--control-on); }
.meter i.on { background: var(--ink); }

/* A preview from the camera's own thumbnail: drawn, not a stock photo. */
.thumbs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: stretch; }
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, #ffe2a3 0 7%, transparent 8%),
    radial-gradient(120% 70% at 30% 110%, #3c4a38 0 45%, transparent 46%),
    radial-gradient(140% 80% at 85% 120%, #56613f 0 45%, transparent 46%),
    linear-gradient(180deg, #f2b84b 0%, #ee7d5c 45%, #8a4b5c 100%);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}
.photo--blocky { image-rendering: pixelated; filter: blur(0.6px) saturate(0.95); }
.photo__tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(18, 18, 16, 0.72);
  color: #ece8df;
  font-size: 11.5px;
  font-weight: 600;
}
.bytes { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bytes__row { display: grid; gap: 4px; }
.bytes__bar { height: 8px; border-radius: 4px; background: var(--control-on); }
.bytes__bar b { display: block; height: 100%; border-radius: inherit; background: var(--signal); }
.bytes__fill--preview { width: 4%; }
.bytes__fill--full { width: 100%; }
.bytes__label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.bytes__label strong { color: var(--ink); font-weight: 600; }

/* Folder tree. */
.tree { margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: 13px; }
.tree ul { margin: 0; padding: 0 0 0 18px; list-style: none; border-left: 1px solid var(--line); margin-left: 5px; }
.tree li { padding: 3px 0; }
.tree .folder::before, .tree .file::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}
.tree .folder::before { background: var(--control-on); }
.tree .file::before { background: var(--photos); }
.tree .file.v::before { background: var(--videos); }
.tree .muted { color: var(--dim); }

/* Copy first: the drive and its image side by side. */
.copy { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.copy figure { margin: 0; }
.copy figcaption { margin-top: 6px; font-size: 12px; color: var(--dim); text-align: center; }
.copy__arrow { width: 28px; height: 28px; color: var(--dim); }

.resume__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 600;
  font-size: 12.5px;
}
.pill--quiet { background: var(--control); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Privacy ---------- */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.privacy__statement { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.privacy__statement span { display: block; color: var(--dim); }
.privacy__points { margin: 0; padding: 0; list-style: none; }
.privacy__points li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.privacy__points li:last-child { border-bottom: 1px solid var(--line); }
.privacy__points .swatch { width: 14px; height: 14px; border-radius: 4px; margin-top: 5px; }
.privacy__points h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; }
.privacy__points p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- FAQ + closing ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 88px);
}
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.closing .display { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 0 auto; }
.closing .lede { max-width: 52ch; margin: 18px auto 0; }
.closing .hero__actions { justify-content: center; }
.closing .cell-strip { justify-content: center; margin: 0 auto 40px; max-width: 760px; }

.faq__title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.faq-layout .lede { margin: 18px 0 0; }
.resume__key { display: inline-flex; align-items: center; gap: 6px; }
.swatch--stop { background: transparent; box-shadow: inset 0 0 0 1.5px var(--videos); }
