/* Fruit Up clean brand layer for standalone pages (promo, Blitz, plans, join,
   welcome, reset, install). Same palette as clean-app.css and the sixty Today
   cards: warm paper, forest type, one calm photo, one idea per section.
   Watermelon red (from the logo) is reserved for Blitz actions and live
   badges so it keeps its meaning. Load after any page-specific styles. */
:root {
  --fu-canvas: #f5f4ef;
  --fu-paper: #fffefa;
  --fu-soft: #f0f1eb;
  --fu-line: #dedfd7;
  --fu-line-strong: #c9cbc1;
  --fu-ink: #26352e;
  --fu-forest: #1f3d2d;
  --fu-muted: #5d675f;
  --fu-green: #365b49;
  --fu-green-strong: #2b4a3b;
  --fu-green-text: #31543f;
  --fu-green-tint: #edf2eb;
  --fu-watermelon: #cf2638;
  --fu-watermelon-strong: #b01e2f;
  --fu-watermelon-text: #a91d2d;
  --fu-watermelon-tint: #fbeced;
  --fu-radius-card: 16px;
  --fu-radius-control: 10px;
  --fu-radius-chip: 8px;
  --fu-shadow: 0 2px 10px rgba(29, 37, 32, .035);
  --fu-shadow-raised: 0 12px 30px rgba(29, 37, 32, .08);
  --fu-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Bridge for shared components that read the app's variable names. */
  --ink: var(--fu-ink);
  --muted: var(--fu-muted);
  --line: var(--fu-line);
  --surface: var(--fu-paper);
  --surface-soft: var(--fu-soft);
  --orange: var(--fu-green);
  --lime: var(--fu-green);
  --fu-hero-paper: #f7f7ef;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --fu-canvas: #171c19;
  --fu-paper: #202722;
  --fu-soft: #29312b;
  --fu-line: #39413a;
  --fu-line-strong: #4d584f;
  --fu-ink: #eeefe7;
  --fu-forest: #f4f5f0;
  --fu-muted: #b3bcb3;
  --fu-green: #365b49;
  --fu-green-strong: #426e58;
  --fu-green-text: #bdd2c1;
  --fu-green-tint: #26382e;
  --fu-watermelon: #cf2638;
  --fu-watermelon-strong: #df3548;
  --fu-watermelon-text: #ff9da7;
  --fu-watermelon-tint: #3a1f24;
  --fu-shadow: 0 2px 10px rgba(0, 0, 0, .22);
  --fu-shadow-raised: 0 12px 30px rgba(0, 0, 0, .34);
  --fu-hero-paper: #202722;
}

html body.fu-clean {
  margin: 0;
  min-height: 100vh;
  color: var(--fu-ink);
  background: var(--fu-canvas);
  font-family: var(--fu-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fu-clean *, .fu-clean *::before, .fu-clean *::after { box-sizing: border-box; }
/* Base element colors use :where() (zero specificity) so component classes
   such as .fu-btn--blitz always win. */
:where(.fu-clean) :where(h1, h2, h3) { color: var(--fu-forest); letter-spacing: -.025em; }
:where(.fu-clean) :where(a) { color: var(--fu-green-text); }
.fu-clean strong { color: inherit; }
.fu-clean ::selection { background: var(--fu-green-tint); }

/* Layout */
.fu-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 18px 72px; }
.fu-wrap--narrow { max-width: 640px; }
.fu-stack { display: grid; gap: 18px; }
.fu-brandbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 6px 0 18px;
}
.fu-logo { display: block; height: 76px; width: auto; }
.fu-logo--sm { height: 52px; }

/* Hero: the Today-card layout. Copy on the left, one photo on the right that
   fades into paper exactly like the daily artwork. */
.fu-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(340px, 40vw, 460px);
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--fu-hero-paper);
  border: 1px solid var(--fu-line);
  border-radius: 20px;
}
/* The v2 scenes keep their left side as open paper for type, so the photo
   fills the whole hero and the copy sits on the open side. */
.fu-hero-media { position: absolute; inset: 0; }
.fu-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.fu-hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--fu-hero-paper) 0%, color-mix(in srgb, var(--fu-hero-paper) 94%, transparent) 34%, color-mix(in srgb, var(--fu-hero-paper) 55%, transparent) 50%, transparent 66%);
}
.fu-hero-copy { position: relative; z-index: 2; width: min(580px, 58%); padding: 38px 36px; }
.fu-hero--poster { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.fu-hero--poster .fu-hero-copy { width: auto; }
.fu-hero--poster .fu-hero-media { position: relative; inset: auto; display: grid; place-items: center; padding: 26px; }
.fu-hero--poster .fu-hero-media::before { content: none; }
.fu-hero--poster .fu-hero-media img { position: static; width: 100%; max-width: 360px; height: auto; border-radius: 14px; border: 1px solid var(--fu-line); box-shadow: var(--fu-shadow-raised); }

.fu-title {
  margin: 10px 0 12px;
  color: var(--fu-forest);
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.fu-title--md { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.fu-lead { margin: 0 0 18px; color: var(--fu-muted); font-size: clamp(1.02rem, 1.8vw, 1.16rem); line-height: 1.55; max-width: 34em; }
.fu-lead strong { color: var(--fu-ink); }
.fu-eyebrow {
  display: inline-block; margin: 0;
  color: var(--fu-green-text);
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.fu-section-title { margin: 30px 0 12px; font-size: 1.32rem; font-weight: 720; }
.fu-muted { color: var(--fu-muted); }
.fu-small { font-size: .88rem; }

/* Badges: neutral by default; watermelon only for Blitz and live. */
.fu-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  color: var(--fu-green-text);
  background: var(--fu-green-tint);
  border: 1px solid var(--fu-line);
  border-radius: var(--fu-radius-chip);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.3;
}
.fu-badge--neutral { color: var(--fu-muted); background: var(--fu-soft); }
.fu-badge--blitz,
.fu-badge--live { color: var(--fu-watermelon-text); background: var(--fu-watermelon-tint); border-color: color-mix(in srgb, var(--fu-watermelon) 22%, var(--fu-line)); }
.fu-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fu-watermelon); }

/* Buttons */
.fu-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 18px;
  color: var(--fu-ink); background: var(--fu-paper);
  border: 1px solid var(--fu-line); border-radius: var(--fu-radius-control);
  font: 650 .95rem/1.2 var(--fu-font);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--motion-duration-quick) var(--motion-ease-standard), border-color var(--motion-duration-quick) var(--motion-ease-standard), color var(--motion-duration-quick) var(--motion-ease-standard), transform var(--motion-duration-quick) var(--motion-ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.fu-btn:hover { border-color: var(--fu-line-strong); background: var(--fu-soft); }
.fu-btn:active { transform: scale(.98); }
.fu-btn--primary { color: #fff; background: var(--fu-green); border-color: var(--fu-green); }
.fu-btn--primary:hover { color: #fff; background: var(--fu-green-strong); border-color: var(--fu-green-strong); }
.fu-btn--blitz { color: #fff; background: var(--fu-watermelon); border-color: var(--fu-watermelon); }
.fu-btn--blitz:hover { color: #fff; background: var(--fu-watermelon-strong); border-color: var(--fu-watermelon-strong); }
.fu-btn--ghost { background: transparent; border-color: transparent; color: var(--fu-green-text); }
.fu-btn--block { width: 100%; }
.fu-btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; }
.fu-clean :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--fu-green-text);
  outline-offset: 3px;
}
.fu-clean .fu-btn--blitz:focus-visible { outline-color: var(--fu-watermelon-text); }

/* Cards and grids */
.fu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.fu-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.fu-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  color: var(--fu-ink);
  background: var(--fu-paper);
  border: 1px solid var(--fu-line);
  border-radius: var(--fu-radius-card);
  box-shadow: var(--fu-shadow);
}
.fu-card > :last-child { margin-bottom: 0; }
.fu-card h2, .fu-card h3 { margin: 0; font-size: 1.16rem; font-weight: 720; line-height: 1.25; }
.fu-card p { margin: 0; }
.fu-card--soft { background: var(--fu-soft); box-shadow: none; }
.fu-card--featured { border-color: var(--fu-green); box-shadow: 0 0 0 1px var(--fu-green) inset, var(--fu-shadow); }
.fu-card--blitz { border-color: color-mix(in srgb, var(--fu-watermelon) 35%, var(--fu-line)); box-shadow: inset 4px 0 0 var(--fu-watermelon), var(--fu-shadow); }
.fu-card-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.fu-price { margin: 4px 0 0; color: var(--fu-forest); font-size: 2.2rem; font-weight: 760; letter-spacing: -.03em; line-height: 1; }
.fu-price small { color: var(--fu-muted); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.fu-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fu-list li { position: relative; padding-left: 24px; }
.fu-list li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--fu-green); border-bottom: 2px solid var(--fu-green);
  transform: rotate(-45deg);
}

/* Copy-ready message boxes */
.fu-copy {
  margin: 4px 0 6px; padding: 14px 16px;
  color: var(--fu-ink); background: var(--fu-soft);
  border: 1px solid var(--fu-line); border-radius: 12px;
  font: 500 .92rem/1.6 var(--fu-font);
  white-space: pre-wrap; word-break: break-word;
}

/* Numbered steps */
.fu-steps { margin: 0 0 20px; padding: 6px 20px; background: var(--fu-paper); border: 1px solid var(--fu-line); border-radius: var(--fu-radius-card); }
.fu-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.fu-step + .fu-step { border-top: 1px solid var(--fu-line); }
.fu-step-num {
  flex: 0 0 30px; width: 30px; height: 30px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fu-green-text); background: var(--fu-green-tint);
  border: 1px solid color-mix(in srgb, var(--fu-green) 30%, var(--fu-line));
  border-radius: 50%;
  font-size: .86rem; font-weight: 750;
}
.fu-step-title { margin: 0 0 3px; color: var(--fu-forest); font-weight: 700; }
.fu-step-desc { margin: 0; color: var(--fu-muted); font-size: .94rem; }
.fu-step-desc strong { color: var(--fu-ink); }

/* Callouts */
.fu-callout { padding: 18px 20px; background: var(--fu-green-tint); border: 1px solid var(--fu-line); border-radius: var(--fu-radius-card); }
.fu-callout--blitz { background: var(--fu-watermelon-tint); border-color: color-mix(in srgb, var(--fu-watermelon) 22%, var(--fu-line)); }
.fu-callout-title { margin: 0 0 6px; color: var(--fu-forest); font-weight: 720; }
.fu-quote { margin: 0 0 8px; color: var(--fu-forest); font-size: 1.08rem; font-weight: 680; line-height: 1.4; }
.fu-note { margin-top: 16px; color: var(--fu-muted); font-size: .88rem; line-height: 1.5; text-align: center; }
.fu-toast { margin-top: 10px; color: var(--fu-green-text); font-weight: 650; }

/* Form fields */
.fu-field { display: grid; gap: 7px; margin-bottom: 16px; }
.fu-field label { color: var(--fu-ink); font-size: .88rem; font-weight: 650; }
.fu-field :is(input, select, textarea) {
  width: 100%; min-height: 48px; padding: 12px 14px;
  color: var(--fu-ink); background: var(--fu-paper);
  border: 1px solid var(--fu-line-strong); border-radius: var(--fu-radius-control);
  font: 500 1rem/1.4 var(--fu-font);
  transition: border-color var(--motion-duration-quick) var(--motion-ease-standard), box-shadow var(--motion-duration-quick) var(--motion-ease-standard);
}
.fu-field :is(input, select, textarea):focus { outline: none; border-color: var(--fu-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fu-green) 20%, transparent); }

/* Shared return navigation, restyled only on clean pages. */
html .fu-clean .fu-return-nav,
html .fu-clean .fruit-up-return-nav { max-width: 1040px; padding-inline: 18px; }
html .fu-clean .fruit-up-return-nav a,
html .fu-clean .fruit-up-return-nav button,
html[data-theme="dark"] .fu-clean .fruit-up-return-nav a,
html[data-theme="dark"] .fu-clean .fruit-up-return-nav button {
  min-height: 38px; padding: 7px 13px;
  color: var(--fu-ink); background: var(--fu-paper);
  border: 1px solid var(--fu-line); border-radius: var(--fu-radius-control);
  box-shadow: none;
  font: 650 .82rem/1.25 var(--fu-font);
}
html .fu-clean .fruit-up-return-nav a:hover,
html .fu-clean .fruit-up-return-nav button:hover { background: var(--fu-soft); border-color: var(--fu-line-strong); transform: none; }
html .fu-clean .fruit-up-return-nav a.fruit-up-back-btn,
html .fu-clean .fruit-up-return-nav button.fruit-up-back-btn,
html[data-theme="dark"] .fu-clean .fruit-up-return-nav a.fruit-up-back-btn,
html[data-theme="dark"] .fu-clean .fruit-up-return-nav button.fruit-up-back-btn { background: var(--fu-soft); border-color: var(--fu-line); }
html .fu-clean .fruit-up-return-nav a:focus-visible,
html .fu-clean .fruit-up-return-nav button:focus-visible { outline: 3px solid var(--fu-green-text); outline-offset: 2px; }

.fu-footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--fu-line); color: var(--fu-muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fu-footer a { color: var(--fu-muted); }

/* Keep .fu-rise as a no-op hook so heroes render at full contrast on first paint. */
.fu-rise { opacity: 1; }

@media (max-width: 760px) {
  .fu-hero { grid-template-columns: 1fr; min-height: 0; }
  .fu-hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .fu-hero-media img { object-position: 88% 50%; }
  .fu-hero-media::before { background: linear-gradient(0deg, var(--fu-hero-paper) 0%, color-mix(in srgb, var(--fu-hero-paper) 50%, transparent) 18%, transparent 42%); }
  .fu-hero-copy { width: auto; padding: 4px 22px 26px; }
  .fu-hero--poster { grid-template-columns: 1fr; }
  .fu-hero--poster .fu-hero-media { aspect-ratio: auto; padding: 0 22px 24px; }
  .fu-hero--poster .fu-hero-copy { padding-top: 26px; }
  .fu-logo { height: 58px; }
  .fu-clean .fruit-up-return-nav { flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
  .fu-clean .fruit-up-return-nav :is(a, button) { min-height: 34px; padding: 6px 11px; font-size: .78rem; max-width: 100%; }
  .fu-card { padding: 18px; }
  .fu-steps { padding: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fu-rise { animation: none; }
  .fu-btn, .fu-field :is(input, select, textarea) { transition: none; }
  .fu-btn:active { transform: none; }
}
@media print {
  html body.fu-clean { background: #fff; }
  .fruit-up-return-nav, .fu-btn-row { display: none !important; }
  .fu-card, .fu-hero, .fu-steps { box-shadow: none; break-inside: avoid; }
}
