/* Rollkeep site styles
   Layout: roll-sheet rhythm, in the app's own cream and burnt orange. Split hero (copy + phone), a timed "day" strip,
   feature rows with phone mockups, then privacy and a closing call to action. */

:root {
  --paper: #fbf6ef;
  --surface: #ffffff;
  --ink: #1d2530;
  --muted: #675f57;
  --line: #ebe0d4;
  --brand: #b9470c;
  --brand-ink: #ffffff;
  --brand-soft: #f9e6d6;
  --marigold: #f2b13b;
  --marigold-ink: #2a1c00;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);

  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121821;
    --surface: #1a2230;
    --ink: #eef0f3;
    --muted: #a3abb8;
    --line: #2a3444;
    --brand: #f0803f;
    --brand-ink: #2a1206;
    --brand-soft: #2c211b;
    --marigold: #f5c25c;
    --marigold-ink: #2a1c00;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121821;
  --surface: #1a2230;
  --ink: #eef0f3;
  --muted: #a3abb8;
  --line: #2a3444;
  --brand: #f0803f;
  --brand-ink: #2a1206;
  --brand-soft: #2c211b;
  --marigold: #f5c25c;
  --marigold-ink: #2a1c00;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: var(--brand); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: var(--step--1); }

.btn-store {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
}
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .store-text { display: grid; line-height: 1.15; text-align: left; }
.btn-store small { font-size: 0.72rem; font-weight: 500; opacity: 0.85; }
.btn-store strong { font-size: 1.1rem; font-family: var(--font-display); }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 40px;
}
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 92%, transparent 92%);
  padding-inline: 2px;
}
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: var(--step--1); color: var(--muted); }
.hero-art { justify-self: center; width: min(100%, 340px); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 24px; gap: 36px; }
  .hero-art { width: min(80%, 300px); }
}

/* Day strip */
.day {
  padding-block: 24px 56px;
}
.day-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.day-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.day-head strong { color: var(--ink); font-family: var(--font-display); font-size: var(--step-0); }
.day-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.day-rows li {
  padding: 18px 20px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
  border-left: 1px solid var(--line);
}
.day-rows li:first-child { border-left: 0; }
.day-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--brand);
}
.day-rows h3 { font-size: var(--step-0); font-family: var(--font-body); letter-spacing: 0; }
.day-rows p { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 820px) {
  .day-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-rows li:nth-child(3) { border-left: 0; }
  .day-rows li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .day-rows { grid-template-columns: minmax(0, 1fr); }
  .day-rows li { border-left: 0; }
  .day-rows li:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: 64px; }
.section-head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* Feature rows with phones */
.feature-rows { display: grid; gap: 56px; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.feature-row:nth-child(even) .feature-art { order: -1; }
.feature-copy { display: grid; gap: 14px; min-width: 0; }
.feature-copy h3 { font-size: var(--step-2); }
.feature-copy p { color: var(--muted); }
.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.feature-copy li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
}
.feature-copy li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--brand-soft);
  border: 2px solid var(--brand);
}
.feature-art { justify-self: center; width: min(100%, 300px); }
.feature-art.wide { width: 100%; }
.shot-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 820px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-row:nth-child(even) .feature-art { order: 0; }
  .feature-art { width: min(80%, 280px); }
  .feature-art.wide { width: 100%; }
}

/* More features */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.more-grid article {
  padding: 24px 24px 24px 0;
  display: grid;
  gap: 8px;
  align-content: start;
  border-bottom: 1px solid var(--line);
}
.more-grid h3 { font-size: var(--step-1); }
.more-grid p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid article { padding-right: 0; }
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.audience article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.audience .role {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand);
}
.audience h3 { font-size: var(--step-1); }
.audience p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) {
  .audience { grid-template-columns: minmax(0, 1fr); }
}

/* Privacy band */
.privacy-band { background: var(--brand-soft); }
.privacy-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 64px;
  align-items: start;
}
.privacy-band h2 { font-size: var(--step-3); }
.privacy-band .intro { display: grid; gap: 14px; }
.privacy-band .intro p { color: var(--muted); }
.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.promise-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.promise-list li:first-child { border-top: 1px solid var(--line); }
.promise-list strong { font-family: var(--font-display); }
.promise-list span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) {
  .privacy-band .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Closing CTA */
.cta .wrap {
  padding-block: 72px;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.cta h2 { font-size: var(--step-3); max-width: 18em; }
.cta p { color: var(--muted); max-width: 36em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal .wrap { max-width: 760px; padding-block: 48px 72px; }
.legal h1 { font-size: var(--step-3); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: var(--step-1); margin: 36px 0 12px; }
.legal h3 { font-size: var(--step-0); font-family: var(--font-body); letter-spacing: 0; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 10px 0; display: grid; gap: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Real app screenshots (App Store images) */
.shot {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(60, 30, 10, 0.35);
}
.hero-art .shot { border-radius: 26px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 64px;
}
.gallery figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.gallery figcaption {
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(70%, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    gap: 16px;
  }
  .gallery figure { scroll-snap-align: start; }
}
