/* Life Wrapped site: graphite design language, matching the app.
   Warm paper background, ink text, serif headings, hairline borders, no gradients. */

:root {
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --fill: #EFEFEC;
  --line: #E4E4E0;
  --ink: #111111;
  --ink2: #55554F;
  --on-ink: #FFFFFF;
  --serif: ui-serif, "New York", "Iowan Old Style", "Source Serif Pro", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0B;
    --card: #161616;
    --fill: #202020;
    --line: #2A2A2A;
    --ink: #F3F3F1;
    --ink2: #B4B4AF;
    --on-ink: #0B0B0B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 22px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 16px; }
h2 { font-size: 28px; margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.overline { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--ink2); max-width: 620px; }
.muted { color: var(--ink2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: var(--card); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.icon { width: 24px; height: 24px; color: var(--ink); display: block; }
.card h3 { margin: 14px 0 6px; }
.card p { margin: 0; color: var(--ink2); font-size: 15px; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
section h2:first-child, section .overline + h2 { margin-top: 0; }
.section-ink { background: var(--ink); color: var(--on-ink); border-top: 0 !important; }
.section-ink h2, .section-ink h3 { color: var(--on-ink); }
.section-ink .muted, .section-ink .overline { color: var(--on-ink); opacity: 0.7; }
.section-ink .card { background: transparent; border-color: rgba(128, 128, 128, 0.35); }
.section-ink .card p { color: var(--on-ink); opacity: 0.75; }
.section-ink .icon { color: var(--on-ink); }

/* Hero */
.hero { padding: 88px 0 72px; }
.app-mark { width: 72px; height: 72px; border-radius: 18px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.badge img { height: 48px; display: block; }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; width: 260px; height: auto; border-radius: 28px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--card); }
.shots[hidden] { display: none; }
.shots-ipad img { width: 420px; border-radius: 22px; }
.shots-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shots-controls { display: flex; gap: 8px; align-items: center; }

/* Segmented control, as in the app: a fill track with the chosen segment raised on a card */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--fill); border-radius: 12px; margin-right: 4px; }
.segmented button { height: 34px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink2); font: inherit; font-size: 15px; cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 600; }
.segmented button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Rows (privacy facts, links) */
.rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.row + .row { border-top: 1px solid var(--line); }
.row .value { color: var(--ink2); font-size: 15px; text-align: right; }
a.row:hover { background: var(--fill); }

/* Long-form pages (privacy, support, terms) */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page ul, .page ol { padding-left: 22px; margin: 0 0 16px; }
.page li { margin: 4px 0; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.page strong { font-weight: 600; }
.page code { font-family: var(--mono); font-size: 0.88em; background: var(--fill); border-radius: 6px; padding: 2px 6px; }
.page table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 8px 0 24px; font-size: 15px; }
.page th, .page td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.page thead th { border-top: 0; font-weight: 600; background: var(--fill); }
.page blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 2px solid var(--line); color: var(--ink2); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--ink2); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .brand-name { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .shots img { width: 220px; }
  .shots-ipad img { width: 300px; }
  .shots-controls { width: 100%; }
  .segmented { margin-right: auto; }
  .shots-head { align-items: start; flex-direction: column; }
}
