/* Seventy5 site. Ink & Lime: the tokens are the app's own, from Shared/Theme.swift.
   Lime is for progress, the current moment and nothing else. Coral is for a missed day. */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/SpaceGrotesk-Regular.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/SpaceGrotesk-Medium.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/SpaceGrotesk-Bold.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url(fonts/SpaceMono-Bold.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F3EAD8; --surface: #FBF6EA; --text: #16130F; --mid: #4A453D; --dim: #6B655B; --hair: rgba(0, 0, 0, .15);
  --accent: #4F6B0A; --low: #9DB45A; --on-accent: #F3EAD8; --coral: #B03A22;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0A09; --surface: #16130F; --text: #F3EAD8; --mid: #B5AFA6; --dim: #8E887E; --hair: rgba(255, 255, 255, .12);
    --accent: #C8FF3A; --low: #6A8422; --on-accent: #10120A; --coral: #D8674F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--display); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--dim); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.label { font: 700 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.label.now-c { color: var(--accent); }
.label.miss-c { color: var(--coral); }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

/* Header and footer */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; }
.brand { font-weight: 700; font-size: 21px; letter-spacing: -.01em; text-decoration: none; }
.top nav, .foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--mid); }
.foot { border-top: 1px solid var(--hair); padding-block: 28px 48px; font-size: 15px; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }

/* Landing */
.hero { display: grid; gap: 48px; align-items: center; padding-block: 36px 72px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
h1 { font-size: clamp(42px, 7.2vw, 80px); line-height: .98; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; color: var(--mid); max-width: 44ch; }

.band { border-top: 1px solid var(--hair); padding-block: 64px; }
.band h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.feat { display: grid; gap: 36px; align-items: center; }
.copy { display: flex; flex-direction: column; gap: 16px; }
.copy p { color: var(--mid); max-width: 50ch; }
.vis { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-block: 64px 104px; }
  .band { padding-block: 96px; }
  .feat { grid-template-columns: 1fr 1fr; gap: 72px; }
  .vis { justify-self: end; }
}

/* Rows divided by hairlines: tiers, prices, the day */
.rows > li { border-top: 1px solid var(--hair); }
.rows > li:last-child { border-bottom: 1px solid var(--hair); }
.costs { margin-top: 32px; }
.costs > li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 22px 0; }
.costs h3 { font-size: 22px; font-weight: 700; }
.costs p { color: var(--mid); max-width: 44ch; }
.fig { font-size: clamp(38px, 7vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.fine { margin-top: 20px; font-size: 15px; color: var(--dim); max-width: 60ch; }
.day > li { display: grid; grid-template-columns: 82px 1fr auto; align-items: baseline; gap: 10px; padding: 11px 0; }
.day .label { letter-spacing: .04em; }

/* Pieces of the app, drawn in CSS */
.now { border: 1px solid var(--accent); border-radius: 16px; padding: 11px 14px 13px; display: flex; flex-direction: column; gap: 6px; }
.cd { font-size: 32px; line-height: 1; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.sub { font-size: 15px; color: var(--mid); }
.drain { height: 5px; border-radius: 3px; background: var(--hair); position: relative; }
.drain::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 60%; border-radius: 3px; background: var(--accent); }
.drain.near::after { width: 82%; }
.lock { border-color: var(--hair); background: var(--surface); border-radius: 22px; padding: 16px 18px 18px; gap: 8px; }

.pray5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pray5 span { font: 700 10.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 10px 0; border-radius: 12px; border: 1px solid var(--low); color: var(--accent); }
.pray5 .on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pray5 .next { border-color: var(--accent); border-width: 2px; padding: 9px 0; }

.dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
.dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--dim); opacity: .5; }
.dots .k { background: var(--accent); border-color: var(--accent); opacity: 1; }
.dots .t { border-color: var(--accent); border-width: 2.5px; opacity: 1; }
.dots .m { background: var(--coral); border-color: var(--coral); opacity: 1; }

.pledge { gap: 6px; }
.pledge .fig { font-size: clamp(96px, 20vw, 150px); }

/* The phone in the hero: the Today screen */
.ph { width: min(100% - 16px, 304px); margin: 8px auto; border-radius: 40px; border: 1px solid var(--hair); box-shadow: 0 0 0 7px var(--surface), 0 0 0 8px var(--hair); background: var(--bg); padding: 22px 18px 16px; display: flex; flex-direction: column; gap: 13px; line-height: 1.35; }
.ph .label { font-size: 11px; }
.ph-hero { display: flex; align-items: center; gap: 16px; }
.ph-hero div { display: flex; flex-direction: column; gap: 2px; }
.ph-hero b { font-size: 21px; line-height: 1.15; }
.ring { width: 108px; height: 108px; flex: none; }
.ring .trk { fill: none; stroke: var(--low); stroke-opacity: .5; stroke-width: 9; }
.ring .arc { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.ring text { fill: var(--text); font: 700 38px var(--display); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 9px 13px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile b { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.tile.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile.on .label { color: inherit; }
.tabs { align-self: center; margin-top: 4px; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); }
.tabs span { width: 58px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: var(--dim); }
.tabs .on { background: var(--accent); color: var(--on-accent); }
.tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* Privacy, terms, support */
.doc { max-width: 720px; padding-block: 32px 80px; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.02; }
.doc h2 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin-top: 30px; }
.doc h3 { font-size: 19px; font-weight: 700; margin-top: 10px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .muted { color: var(--mid); }
.draft { border: 1px solid var(--coral); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.todo { background: none; color: var(--coral); font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-top: 1px solid var(--hair); }
thead th { border-top: 0; font: 700 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
tbody th { font-weight: 700; white-space: nowrap; }

.lost { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 48px; }
.lost .fig { font-size: clamp(110px, 30vw, 220px); }
