/* Download website for My Life Wall.
   Palette and type match the app (App/style.css): warm stone and cream, Georgia
   serif, generous sizes for an older reader. Self-contained, no network calls. */

:root {
  --background: #f6f4ee;
  --panel: #fffefb;
  --stone: #cfc7b6;
  --stone-light: #e9e3d5;
  --stone-dark: #b0a68f;
  --gold-light: #ddb25c;
  --future: #eeebe1;
  --current-light: #d9e2c8;
  --current: #8fa377;
  --current-border: #6c7d54;
  --text: #3a352d;
  --soft-text: #746c5c;
  --focus-ring: #1f1b14;
  --focus-ring-width: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchor jumps clear the sticky nav instead of hiding under it. */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
}

/* Sticky top bar: the brand on the left, a few jump links, and a Download
   button that stays in reach the whole way down the page. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--stone);
}

.nav-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 18px;
  color: var(--soft-text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-download {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 26px;
  background: var(--current);
  border: 2px solid var(--current-border);
  border-radius: 10px;
  color: var(--panel);
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-download:hover {
  background: var(--current-border);
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero-eyebrow {
  margin: 0 0 6px;
  font-size: 20px;
  font-style: italic;
  color: var(--soft-text);
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
}

.tagline {
  margin: 14px 0 0;
  font-size: 22px;
  color: var(--soft-text);
}

/* The home wall, recreated in pure CSS so the page stays self-contained.
   Brick gradients, the gold "holds a memory" stop and its star, the green
   "this year" brick, and the pale "years ahead" bricks all match App/style.css. */
.wall-motif {
  --brick-w: 76px;
  margin: 34px auto 12px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.motif-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* The middle course carries one fewer brick, so it sits inset like a real
   staggered brick wall without any row ever wrapping. */

.motif-brick {
  position: relative;
  width: var(--brick-w);
  height: 54px;
  border-radius: 7px;
  border: 1px solid rgba(120, 112, 90, 0.85);
  padding: 7px 9px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 35%),
    linear-gradient(145deg, var(--stone-light), var(--stone));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -7px 12px rgba(100, 92, 68, 0.14),
    0 2px 5px rgba(90, 84, 66, 0.13);
}

.motif-year {
  font-size: 13px;
  color: rgba(55, 47, 40, 0.72);
}

.motif-brick.has-memories {
  border-color: #9b6f31;
  background:
    radial-gradient(circle at 42% 22%, rgba(255, 238, 184, 0.7), transparent 52%),
    linear-gradient(145deg, #edca82, #d0a155);
  box-shadow:
    inset 0 0 12px rgba(255, 222, 138, 0.5),
    0 3px 8px rgba(120, 80, 30, 0.14);
}

.motif-star {
  position: absolute;
  right: 6px;
  bottom: 5px;
  font-size: 12px;
  line-height: 1;
  color: rgb(46, 32, 12);
}

.motif-brick.current {
  border-color: var(--current-border);
  background:
    radial-gradient(circle at 42% 18%, rgba(240, 246, 230, 0.75), transparent 48%),
    linear-gradient(145deg, var(--current-light), var(--current));
}

.motif-brick.future {
  border-color: #ddd7c8;
  color: #635c4d;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.4), transparent 35%),
    linear-gradient(145deg, #f8f6ef, var(--future));
}

.motif-brick.future .motif-year {
  color: #635c4d;
}

.wall-caption {
  margin: 4px 0 0;
  font-size: 17px;
  color: var(--soft-text);
}

.lead p {
  font-size: 20px;
  margin: 0 0 20px;
}

/* Marketing sections: the story, the three ways, the Life Book. */
.ways,
.lifebook {
  margin: 44px 0;
}

.ways h2,
.lifebook h2,
.private h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 20px;
  text-align: center;
}

.way-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.way-card {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--stone);
  border-radius: 14px;
}

.way-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.way-card p {
  margin: 0;
  font-size: 19px;
}

.lifebook p {
  font-size: 20px;
  margin: 0;
  text-align: center;
}

.private {
  margin: 44px 0;
  padding: 28px 30px;
  background: var(--panel);
  border: 1px solid var(--stone);
  border-radius: 14px;
  text-align: center;
}

.private .offline-line {
  margin: 0;
  font-size: 20px;
}

.downloads {
  text-align: center;
  margin: 48px 0 8px;
}

.downloads h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 500;
}

.downloads-help {
  margin: 0 0 24px;
  font-size: 19px;
  color: var(--soft-text);
}

.buy-panel {
  margin: 0 auto 40px;
  max-width: 560px;
  padding: 28px;
  background: var(--panel);
  border: 2px solid var(--gold-light);
  border-radius: 16px;
  text-align: center;
}

.buy-help {
  margin: 0 0 20px;
  font-size: 19px;
  color: var(--text);
}

.buy-button {
  display: inline-block;
  min-height: 56px;
  padding: 16px 40px;
  background: var(--gold-light);
  border: 2px solid var(--stone-dark);
  border-radius: 12px;
  color: var(--text);
  font-size: 22px;
  text-decoration: none;
}

.buy-button:hover {
  background: var(--stone-dark);
  color: var(--panel);
}

.buy-button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 3px;
}

.buy-price {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--soft-text);
}

.buy-email-note {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--soft-text);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.download-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 260px;
  min-height: 72px;
  padding: 16px 28px;
  background: var(--current);
  border: 2px solid var(--current-border);
  border-radius: 12px;
  color: var(--panel);
  text-decoration: none;
}

.download-button:hover {
  background: var(--current-border);
}

.download-title {
  font-size: 22px;
}

.download-note {
  font-size: 16px;
  opacity: 0.9;
}

.downloads-note {
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--soft-text);
}

.foot {
  margin-top: 56px;
  text-align: center;
  font-size: 18px;
  color: var(--soft-text);
}

/* Install guide (install.html) */
.back-link {
  margin: 16px 0 0;
  font-size: 18px;
}

.tutorial p,
.install li {
  font-size: 20px;
}

.install h2,
.tutorial h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 40px 0 16px;
}

.steps {
  padding-left: 28px;
}

.steps li {
  margin: 0 0 16px;
}

.shot {
  margin: 24px 0;
}

.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
  background: var(--stone-light);
  border: 2px dashed var(--stone-dark);
  border-radius: 12px;
  color: var(--soft-text);
  font-size: 18px;
  font-style: italic;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 17px;
  color: var(--soft-text);
}

.guide-link {
  text-align: center;
  margin: 8px 0 0;
  font-size: 19px;
}

a:focus-visible,
.download-button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 3px;
}

/* On a narrow phone, shrink the bricks and drop the stagger so the wall still
   reads as a wall and never pushes the page sideways. */
@media (max-width: 600px) {
  /* Keep the bar to brand + Download on a phone; the jump links would crowd it. */
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .wall-motif {
    --brick-w: 60px;
  }
}
