/* Provision — provisiongoals.com
   Palette and type are lifted from the app's Theme.swift so the site and the app
   read as one thing. The app is light-mode pinned, so this is too: every colour is
   stated outright rather than left to the browser.

   The serif is `ui-serif`, which on Apple devices resolves to New York — the same
   face the app uses for its headlines. Georgia is the fallback everywhere else.
   Nothing is loaded from a font service; the site has no external dependencies. */

:root {
  --paper:      #EDF1EE;   /* FR.paper — cool pale sage */
  --paper-deep: #E5EAE7;   /* one step down, for alternating bands */
  --card:       #FBFCFB;   /* FR.card */
  --ink:        #141A1F;   /* FR.ink */
  --muted:      #6B7772;   /* FR.muted */
  --hairline:   #D6DCD7;   /* FR.hairline */
  --signal:     #E0A32E;   /* FR.signal — today / go */
  --rest:       #C3CCC6;   /* FR.rest */

  /* Regime accents, straight from FR.accent(_:) */
  --time:     #3E5C9A;
  --finance:  #2F6F5E;
  --fitness:  #A8452F;
  --reading:  #6B4A8C;
  --study:    #2C7A8C;
  --lectures: #C28A1E;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(20, 26, 31, .04), 0 2px 8px rgba(20, 26, 31, .04);
  --shadow-md: 0 2px 4px rgba(20, 26, 31, .04), 0 12px 28px rgba(20, 26, 31, .07);
  --shadow-lg: 0 8px 20px rgba(20, 26, 31, .08), 0 28px 60px rgba(20, 26, 31, .10);

  --radius: 18px;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------------------------------------------------------------- type ---- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }

h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.06;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.figure { font-family: var(--mono); font-variant-numeric: tabular-nums; }

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 241, 238, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--hairline); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark img { width: 28px; height: 28px; border-radius: 7px; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ------------------------------------------------------ app store button --- */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px 12px 17px;
  background: var(--ink);
  color: #FBFCFB;
  border-radius: 13px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.appstore:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.appstore:active { transform: translateY(0); }
.appstore svg { width: 21px; height: 25px; fill: currentColor; flex: none; }
.appstore .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore .small { font-size: 11px; letter-spacing: .04em; opacity: .78; }
.appstore .big { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

.appstore.compact { padding: 8px 15px 8px 13px; border-radius: 11px; }
.appstore.compact svg { width: 16px; height: 19px; }
.appstore.compact .small { display: none; }
.appstore.compact .big { font-size: 14px; }

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 30px;
}
.download-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- hero ---- */

.hero { padding: clamp(52px, 8vw, 92px) 0 clamp(40px, 5vw, 56px); }

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  display: block;
  margin: 0 0 28px;
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------- plan strip ----- */
/* The signature idea, drawn rather than described: a run of days, some heavier,
   some deliberately empty. Mirrors the preview strip in the app itself. */

.planbox {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-md);
  margin-top: clamp(38px, 5vw, 54px);
}

.planbox-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 20px;
}
.planbox-head h3 { margin: 0; font-size: 17px; }
.planbox-head .when { font-size: 14px; color: var(--muted); }

.strip {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, .9vw, 7px);
  height: 104px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rest);
}
.strip .day { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.strip .bar {
  width: 100%;
  max-width: 22px;
  border-radius: 5px;
  background: var(--reading);
}
/* A day off: a stub on the baseline, not an absence. */
.strip .day.off .bar { height: 5px !important; background: var(--rest); border-radius: 3px; }
/* Held in reserve — drawn as an outline, because nothing is asked of it yet. */
.strip .day.hold .bar {
  background: transparent;
  border: 1.5px dashed var(--rest);
}
/* Today. */
.strip .day.today .bar { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--signal); }

.strip-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  margin-top: 18px;
}
.strip-figures div { min-width: 92px; }
.strip-figures dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.strip-figures dd { margin: 2px 0 0; font-family: var(--mono); font-size: 16px; font-weight: 500; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; flex: none; }
.legend .k-work { background: var(--reading); }
.legend .k-off { background: var(--rest); height: 5px; border-radius: 3px; }
.legend .k-hold { background: transparent; border: 1.5px dashed var(--rest); }
.legend .k-today { background: transparent; box-shadow: 0 0 0 2px var(--signal); }

/* ------------------------------------------------------------ sections ---- */

section { padding: clamp(52px, 7vw, 84px) 0; }
.band { background: var(--paper-deep); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); margin: 0; }

.pull {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.45;
  border-left: 3px solid var(--signal);
  padding-left: 22px;
  margin: 0;
  max-width: 26em;
  text-wrap: pretty;
}

/* A section head that follows a pull quote rather than opening the section. */
.section-head.after-pull { margin-top: clamp(30px, 4vw, 44px); }

/* ------------------------------------------------------------- choices ---- */
/* The six make-up options, worded exactly as the app words them. Numbered,
   because the app always offers the same six in the same order — the point is
   that it's a fixed menu, not a suggestion the app makes up each time. */

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: choice;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.choices li {
  counter-increment: choice;
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px 20px 52px;
  box-shadow: var(--shadow-sm);
}
.choices li::before {
  content: counter(choice);
  position: absolute;
  left: 18px;
  top: 19px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}
.choices h3 { font-family: var(--sans); font-size: 15px; font-weight: 650; letter-spacing: 0; margin: 0 0 5px; }
.choices p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.choices-note {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 46em;
}

/* ---------------------------------------------------------------- grid ---- */

/* Every auto-fit track below wraps its minimum in min(..., 100%). Without it a
   column whose minimum is wider than a narrow phone's content box (380px against
   342px on a 390px screen) pushes the whole page sideways. */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.card.step { position: relative; padding-top: 30px; }
.card.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------- regimes ---- */

.regimes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.regime {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--dot, var(--muted));
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.regime h3 { font-family: var(--sans); font-size: 15px; font-weight: 650; margin: 0 0 3px; letter-spacing: 0; }
.regime p { margin: 0; font-size: 14.5px; color: var(--muted); }
/* Each regime card carries a plain description and then the specific: what unit
   it counts in. The second line is quieter so the six stay scannable. */
.regime p + p.detail {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.45;
}

/* --------------------------------------------------------- screenshots ---- */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

/* These are the App Store tiles, so each one already carries its own headline on
   its own pale ground — which is why they get no caption underneath and only a
   hairline and a soft shadow, not a full card. Two across rather than four: at a
   quarter of the wrap the baked-in headline is too small to read. */
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  background: var(--card);
}

@media (max-width: 900px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-inline: -24px;
    padding-inline: 24px;
    /* Without this the snap points ignore the padding, so the gallery lands
       scrolled 24px right on load and the first card sits flush to the edge. */
    scroll-padding-inline: 24px;
  }
  .shot { flex: 0 0 68%; max-width: 300px; scroll-snap-align: start; }
}

/* --------------------------------------------------------------- price ---- */

.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.tier {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tier.featured { border-color: var(--signal); box-shadow: var(--shadow-md); }
.tier .name { font-family: var(--sans); font-size: 13px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.tier .price { font-family: var(--serif); font-size: 34px; line-height: 1; margin: 0; }
.tier .per { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.tier .pitch { margin: 16px 0 18px; font-size: 15.5px; color: var(--muted); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tier li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.tier li::before {
  content: "";
  position: absolute;
  left: 2px; top: .58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
}
.price-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ----------------------------------------------------------------- faq ---- */
/* Native <details>, so the questions are all present for search and for anyone
   using find-in-page, without the answers making the section a wall of text.
   The default triangle is replaced by a drawn one that can be rotated. */

.faq { max-width: 780px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--ink); }
.faq summary:hover::after { border-color: var(--signal); }

.faq .answer { padding: 0 44px 20px 0; }
.faq .answer p { color: var(--muted); font-size: 15.5px; max-width: 58ch; }


/* ------------------------------------------------------------ closing ----- */

.closing { text-align: center; }
.closing .download-row { justify-content: center; }
.closing .lead { margin-inline: auto; }

/* ------------------------------------------------------------- prose ------ */
/* Privacy and support pages. */

.prose { padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 6vw, 72px); }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.prose h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.prose h2:first-of-type { margin-top: 34px; }
.prose p, .prose li { color: #2C3630; max-width: var(--measure); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 16px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.prose .lead-note {
  font-size: 18.5px;
  line-height: 1.6;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--signal);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 12px;
  box-shadow: var(--shadow-sm);
}
.prose .lead-note p { max-width: none; }

.callout {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.callout p { max-width: none; margin: 0; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 26px;
}
.backlink:hover { color: var(--ink); }

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-right: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copy { font-size: 13.5px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--card);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }
