/* =====================================================================
   FLOWS.LAND — visual system
   Monochrome. Black field, white particles, hairlines, editorial spacing.
   ===================================================================== */

:root {
  --ink: #f5f5f4;
  --dim: rgba(245, 245, 244, 0.5);
  --faint: rgba(245, 245, 244, 0.32);
  --hairline: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.07);
  --bg: #050505;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Cormorant Garamond", "New York", ui-serif, Georgia, "Times New Roman", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body { margin: 0; padding: 0; background: var(--bg); height: 100%; }
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; padding: 0; }

/* ---------- app root ---------- */
.fl-app {
  position: fixed; inset: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sf); font-size: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.fl-app ::-webkit-scrollbar { display: none; }

/* (responsive rules live at the end of this file so they win the cascade) */

/* ---------- screen shell ---------- */
.fl-screen { position: absolute; inset: 0; display: flex; flex-direction: column; animation: fl-rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); background: var(--bg); }
@keyframes fl-rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes fl-fade { from { opacity: 0.01; } to { opacity: 1; } }
.fl-screen-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fl-screen-inner.scroll { overflow-y: auto; display: block; }
.fl-screen-inner.padded { padding: calc(24px + var(--safe-top)) 22px calc(120px + var(--safe-bottom)); }
.fl-center .fl-screen-inner { align-items: center; justify-content: center; }

/* ---------- typography ---------- */
.fl-h1 {
  font-size: 27px; line-height: 1.18; font-weight: 600; letter-spacing: -0.02em;
  margin: 10px 0 12px; color: var(--ink); text-wrap: balance;
}
.fl-p { font-size: 13.5px; line-height: 1.6; color: var(--dim); margin: 0 0 8px; text-wrap: pretty; }
.fl-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
}
.fl-micro { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.fl-small-dim { font-size: 12px; color: var(--dim); line-height: 1.5; }
.fl-display-tracked { font-size: 19px; letter-spacing: 0.38em; font-weight: 400; padding-left: 0.38em; }
.fl-hairline { height: 1px; background: var(--hairline); flex: 1; }

/* ---------- buttons ---------- */
.fl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 26px;
  background: #fff; color: #000; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.fl-btn:active { transform: scale(0.97); }
.fl-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.fl-btn.small { height: 38px; padding: 0 18px; font-size: 12px; }
.fl-btn.block { width: 100%; }
.fl-textbtn {
  display: block; width: 100%; text-align: center; padding: 14px 0 6px;
  font-size: 12px; color: var(--dim); letter-spacing: 0.02em;
}
.fl-pill-solid, .fl-pill-ghost {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.fl-pill-solid { background: #fff; color: #000; }
.fl-pill-ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: var(--ink); }

/* ---------- chips / segmented ---------- */
.fl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-chip {
  height: 36px; padding: 0 16px; border-radius: 19px; font-size: 12px;
  color: var(--dim); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}
.fl-chip.on { background: #fff; color: #000; font-weight: 600; box-shadow: none; }
.fl-seg {
  display: flex; background: rgba(255, 255, 255, 0.055); border-radius: 10px; padding: 2px; gap: 2px;
}
.fl-seg-item {
  flex: 1; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11.5px;
  color: var(--dim); white-space: nowrap; transition: all 0.2s ease;
}
.fl-seg-item.on { background: #fff; color: #000; font-weight: 600; }

/* ---------- artifact option cards ---------- */
.fl-artcard {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 7px 7px 9px; border-radius: 14px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--hairline); background: transparent;
  transition: all 0.25s ease; text-align: center;
}
.fl-artcard.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.03); }
.fl-artcard-vis { width: 100%; border-radius: 9px; overflow: hidden; background: #030303; }
.fl-artcard-label { font-size: 11px; font-weight: 500; color: var(--ink); }
.fl-artcard-sub { font-size: 9px; color: var(--faint); }
.fl-dot-ind { width: 4px; height: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.fl-dot-ind.on { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }

/* ---------- top bar ---------- */
.fl-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.fl-topbar-title { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.fl-topbar-side { min-width: 36px; display: flex; }
.fl-topbar-side.right { justify-content: flex-end; }
.fl-iconbtn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s ease;
}
.fl-iconbtn:active { background: rgba(255, 255, 255, 0.08); }
.fl-wordmark { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.26em; font-weight: 500; color: var(--ink); }

/* ---------- dotted progress ---------- */
.fl-dotprog { display: flex; gap: 4px; align-items: center; }
.fl-dotprog-dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); flex-shrink: 0; }
.fl-dotprog-dot.on { background: #fff; }

/* ---------- cards ---------- */
.fl-card {
  display: block; width: 100%; background: var(--card); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--card-border); color: var(--ink); text-align: left;
}
.fl-card.pad { padding: 16px; }
.fl-card.clickable { transition: background 0.15s ease; }
.fl-card.clickable:active { background: rgba(255, 255, 255, 0.06); }
.fl-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- stat ---------- */
.fl-stat-value { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
.fl-stat-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.fl-stat-sub { font-size: 10px; color: var(--faint); margin-top: 3px; }

/* ---------- tab bar ---------- */
.fl-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; padding: 18px 10px calc(16px + max(14px, var(--safe-bottom)));
  background: linear-gradient(to top, rgba(5, 5, 5, 0.96) 55%, rgba(5, 5, 5, 0));
}
.fl-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}
.fl-tab.on { color: #fff; }

/* ---------- list rows / switch ---------- */
.fl-list { overflow: hidden; }
.fl-listrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 13.5px; border-bottom: 1px solid var(--hairline);
}
.fl-listrow:last-child { border-bottom: none; }
.fl-listrow.clickable { cursor: pointer; }
.fl-listrow-label.danger { color: rgba(255, 255, 255, 0.45); }
.fl-listrow-right { display: flex; align-items: center; gap: 10px; }
.fl-listrow-value { font-size: 12px; color: var(--dim); }
.fl-switch {
  width: 42px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.14);
  position: relative; transition: background 0.2s ease; flex-shrink: 0;
}
.fl-switch.on { background: #fff; }
.fl-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #060606; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); transition: transform 0.2s ease;
}
.fl-switch:not(.on) .fl-switch-knob { background: #fff; box-shadow: none; }
.fl-switch.on .fl-switch-knob { transform: translateX(16px); }

/* ---------- splash ---------- */
.fl-splash-vis { position: absolute; inset: 0 0 25% 0; }
.fl-splash-word {
  position: absolute; bottom: calc(110px + var(--safe-bottom)); left: 0; right: 0; text-align: center;
  display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(8px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.fl-splash-word.show { opacity: 1; transform: none; }
.fl-splash-tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* ---------- onboarding ---------- */
.fl-onboarding .fl-screen-inner { display: flex; flex-direction: column; }
.fl-ob-vis { flex: 1; min-height: 0; position: relative; }
.fl-ob-body { padding: 0 28px calc(24px + var(--safe-bottom)); }
.fl-ob-dots { display: flex; gap: 7px; margin: 18px 0 22px; }
.fl-ob-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background 0.3s; }
.fl-ob-dot.on { background: #fff; }

/* ---------- auth ---------- */
.fl-auth-vis { position: absolute; top: 0; left: 0; right: 0; height: 42%; }
.fl-auth-body { margin-top: auto; width: 100%; padding: 0 28px calc(30px + var(--safe-bottom)); position: relative; }
.fl-auth-form { display: flex; flex-direction: column; gap: 12px; }
.fl-auth-or { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.fl-input {
  height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1); color: var(--ink); padding: 0 16px;
  font-size: 14px; font-family: var(--sf); outline: none; width: 100%;
  -webkit-user-select: auto; user-select: auto;
}
.fl-input:focus { border-color: rgba(255, 255, 255, 0.4); }
.fl-input::placeholder { color: var(--faint); }
.fl-fineprint { font-size: 10px; color: var(--faint); text-align: center; margin: 18px 0 0; }

/* ---------- first session ---------- */
.fl-first .fl-screen-inner { display: flex; flex-direction: column; }
.fl-first-vis { flex: 1; min-height: 0; position: relative; }
.fl-first-body { padding: 0 28px calc(24px + var(--safe-bottom)); }
.fl-first-streak { display: flex; gap: 26px; margin: 20px 0 24px; }
.fl-first-day { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.fl-first-daydot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.fl-first-daydot.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.fl-first-daylabel { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ---------- home ---------- */
.fl-home-streak { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.fl-home-streaknum { font-size: 58px; font-weight: 200; line-height: 1; letter-spacing: -0.02em; }
.fl-home-streaknum.big { font-size: 76px; }
.fl-home-streaklabel { font-size: 11px; color: var(--dim); margin-top: 6px; letter-spacing: 0.04em; }
.fl-home-week { display: flex; gap: 9px; padding-bottom: 6px; }
.fl-home-day { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 8px; color: var(--faint); }
.fl-home-daydot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.fl-home-daydot.on { background: #fff; }
.fl-home-daydot.today { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.fl-today { margin-top: 18px; }
.fl-quickstart { margin-top: 10px; overflow: hidden; }
.fl-quickstart-vis { height: 168px; background: #030303; }
.fl-quickstart-body { padding: 14px 16px 16px; }
.fl-quickstart-title { font-size: 21px; font-weight: 600; margin: 4px 0 2px; }
.fl-quickstart-cta { display: flex; gap: 8px; margin-top: 14px; }
.fl-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fl-card-bignum { font-size: 26px; font-weight: 300; margin: 10px 0 4px; }
.fl-superflow-dots { display: flex; gap: 9px; margin: 12px 0 8px; }
.fl-sf-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.fl-sf-dot.on { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.55); }
.fl-milestone { margin-top: 10px; }

/* ---------- start session ---------- */
.fl-hscroll { display: flex; gap: 9px; overflow-x: auto; margin: 10px -22px 0; padding: 2px 22px 4px; }
.fl-soundrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px !important; }
.fl-soundrow-vis { width: 56px; height: 56px; border-radius: 11px; overflow: hidden; background: #030303; flex-shrink: 0; }
.fl-soundrow-name { font-size: 14px; font-weight: 600; }
.fl-start-footer { margin-top: 30px; }

/* ---------- active flow ---------- */
.fl-active .fl-screen-inner { position: relative; }
.fl-active-vis { position: absolute; inset: 0; }
.fl-active-top { position: absolute; top: calc(44px + var(--safe-top)); left: 0; right: 0; text-align: center; }
.fl-active-top .fl-eyebrow { color: var(--dim); }
.fl-active-state { font-size: 9px; letter-spacing: 0.3em; color: var(--faint); margin-top: 8px; }
.fl-active-mid { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-58%); text-align: center; pointer-events: none; }
.fl-active-timer {
  font-size: 66px; font-weight: 200; letter-spacing: 0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.fl-active-controls {
  position: absolute; bottom: calc(138px + var(--safe-bottom)); left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.fl-roundbtn {
  width: 66px; height: 66px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.15s ease;
}
.fl-roundbtn:active { transform: scale(0.94); }
.fl-roundbtn.small { width: 46px; height: 46px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.fl-active-footer {
  position: absolute; bottom: calc(44px + var(--safe-bottom)); left: 26px; right: 26px;
  display: flex; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 14px;
}
.fl-active-footval { font-size: 12.5px; margin-top: 5px; }
.fl-active-done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 34px; animation: fl-rise 0.8s ease;
}

/* ---------- shape ---------- */
.fl-shape-section { margin-top: 24px; }
.fl-shape-head { display: flex; gap: 12px; align-items: baseline; }
.fl-shape-num { font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
.fl-shape-head .fl-small-dim { margin-top: 4px; }
.fl-shape-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.fl-shape-options .fl-artcard { width: auto; }
.fl-mod-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.fl-mod-name { font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint); flex-shrink: 0; }
.fl-mod-row .fl-seg { flex: 0 1 248px; }
.fl-mod-row .fl-seg-item { padding: 0 8px; font-size: 10.5px; }
.fl-shape-tip {
  display: flex; flex-direction: column; gap: 5px; margin-top: 24px;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hairline); padding: 13px 14px;
}
.fl-forms-card {
  margin-top: 14px; border-radius: 16px; padding: 14px 16px 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-border);
}

/* ---------- stats ---------- */
.fl-stats-hero { margin-top: 24px; }
.fl-stats-hours { font-size: 42px; font-weight: 200; letter-spacing: -0.01em; margin: 8px 0 4px; }
.fl-dotbars { display: flex; gap: 12px; margin-top: 14px; }
.fl-dotbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fl-dotbar-stack { display: flex; flex-direction: column; gap: 3.5px; }
.fl-dotbar-dot { width: 4.5px; height: 4.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); }
.fl-dotbar-dot.on { background: #fff; }
.fl-dotbar-label { font-size: 8.5px; color: var(--faint); letter-spacing: 0.08em; }
.fl-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.fl-stats-streakcard { margin-top: 10px; }

/* ---------- streak ---------- */
.fl-streak-hero { position: relative; text-align: center; padding-top: 6px; }
.fl-streak-vis { height: 168px; margin: 0 -22px; }
.fl-streak-hero .fl-home-streaknum { margin-top: -52px; position: relative; }
.fl-cal { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.fl-cal-row { display: flex; gap: 9px; }
.fl-cal-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: inline-block; }
.fl-cal-dot.on { background: #fff; }
.fl-cal-dot.today { background: transparent; box-shadow: inset 0 0 0 1px #fff; }
.fl-milestones { margin-top: 4px; }
.fl-milestone-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.fl-milestone-row:last-child { border-bottom: none; }
.fl-milestone-label { flex: 1; font-size: 13px; }
.fl-milestone-row:not(.done) .fl-milestone-label { color: var(--dim); }

/* ---------- friends ---------- */
.fl-challenge { margin-top: 14px; }
.fl-challenge-title { font-size: 19px; font-weight: 600; margin-top: 8px; }
.fl-leaderboard { margin-top: 6px; }
.fl-lead-row { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-bottom: 1px solid var(--hairline); }
.fl-lead-row:last-child { border-bottom: none; }
.fl-lead-row.you { background: rgba(255, 255, 255, 0.045); border-radius: 12px; border-bottom-color: transparent; }
.fl-lead-rank { width: 16px; font-size: 11px; color: var(--faint); text-align: center; }
.fl-lead-avatar {
  width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fl-lead-avatar span { width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0.8; }
.fl-lead-name { flex: 1; font-size: 13.5px; }
.fl-lead-streak { font-size: 11px; color: var(--faint); }
.fl-lead-hours { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- paywalls ---------- */
.fl-paywall .fl-screen-inner { position: relative; }
.fl-paywall-vis { position: absolute; inset: 0 0 38% 0; }
.fl-paywall-body { margin-top: auto; padding: 0 26px calc(28px + var(--safe-bottom)); position: relative; width: 100%; }
.fl-paywall-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.fl-paywall-list span { font-size: 13px; color: var(--dim); padding-left: 16px; position: relative; }
.fl-paywall-list span::before { content: ''; position: absolute; left: 1px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0.7; }
.fl-plan-row { display: flex; gap: 10px; margin: 18px 0 16px; }
.fl-plan {
  flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left;
  border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  position: relative; transition: all 0.2s ease;
}
.fl-plan.on { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.04); }
.fl-plan-name { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.fl-plan-price { font-size: 17px; font-weight: 600; margin-top: 2px; }
.fl-plan-sub { font-size: 10.5px; color: var(--dim); }
.fl-plan-badge {
  position: absolute; top: -9px; left: 12px; background: #fff; color: #000;
  font-size: 7.5px; font-weight: 700; letter-spacing: 0.14em; padding: 4px 8px; border-radius: 9px;
}
.fl-close {
  position: absolute; top: calc(34px + var(--safe-top)); right: 20px; z-index: 30; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fl-paywall2 .fl-screen-inner.padded { padding-bottom: calc(30px + var(--safe-bottom)); }
.fl-trial-timeline { margin: 22px 0 6px; }
.fl-trial-step { display: flex; gap: 14px; }
.fl-trial-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.fl-trial-line { width: 1px; flex: 1; min-height: 26px; background: rgba(255, 255, 255, 0.14); }
.fl-trial-day { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.fl-trial-step > div:last-child { padding-bottom: 16px; }

/* ---------- settings ---------- */
.fl-profile { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.fl-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--card-border); background: #030303; flex-shrink: 0;
}
.fl-profile-name { font-size: 16px; font-weight: 600; margin-bottom: 3px; }

/* ---------- web entry ---------- */
.fl-web-banner {
  display: flex; align-items: center; gap: 10px; padding: calc(11px + var(--safe-top)) 16px 11px;
  background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--hairline);
  font-size: 11px; color: var(--dim);
}
.fl-web-banner > span:nth-child(2) { flex: 1; }
.fl-web-get { background: #fff; color: #000; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 12px; }
.fl-web-hero { height: 250px; }
.fl-web-body { padding: 6px 24px calc(12px + var(--safe-bottom)); }
.fl-web-feats { display: flex; flex-direction: column; gap: 14px; }
.fl-web-feat { display: flex; gap: 13px; align-items: center; }
.fl-web-feat-vis { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #030303; box-shadow: inset 0 0 0 1px var(--hairline); flex-shrink: 0; }
.fl-web-feat-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }

/* ---------- screens menu ---------- */
.fl-menu {
  position: absolute; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.fl-menu.open { opacity: 1; pointer-events: auto; }
.fl-menu-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: 262px; overflow-y: auto;
  background: #0a0a0a; border-left: 1px solid var(--hairline);
  padding: calc(34px + var(--safe-top)) 18px calc(30px + var(--safe-bottom));
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.fl-menu.open .fl-menu-sheet { transform: none; }
.fl-menu-group { margin-bottom: 16px; }
.fl-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 8px; border-radius: 8px; font-size: 12.5px; color: var(--dim);
}
.fl-menu-item.on { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* =====================================================================
   Editorial display typography — serif, as in the reference art direction
   (timer stays sans for tabular digits).
   ===================================================================== */
.fl-h1, .fl-shape-headline, .fl-quickstart-title, .fl-challenge-title,
.fl-home-streaknum, .fl-stats-hours, .fl-card-bignum, .fl-display-tracked {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em;
}
.fl-h1 { font-size: 31px; line-height: 1.14; }
.fl-shape-headline { font-size: 31px; line-height: 1.14; margin: 8px 0 10px; color: var(--ink); text-wrap: balance; }
.fl-quickstart-title { font-size: 26px; margin: 6px 0 3px; }
.fl-challenge-title { font-size: 24px; }
.fl-home-streaknum { font-weight: 500; }
.fl-stats-hours { font-weight: 500; font-size: 46px; }
.fl-card-bignum { font-weight: 500; font-size: 30px; }
.fl-display-tracked { font-size: 22px; letter-spacing: 0.34em; padding-left: 0.34em; }

/* =====================================================================
   Artifact cards — reference style: tall visual, left-aligned caption, air
   ===================================================================== */
.fl-artcard {
  align-items: stretch; text-align: left; gap: 0;
  padding: 8px 8px 14px; border-radius: 18px;
}
.fl-artcard-vis { border-radius: 12px; }
.fl-artcard-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 14px 8px 0;
}
.fl-artcard-sub { font-size: 10.5px; color: var(--faint); margin: 5px 8px 0; }
.fl-artcard .fl-dot-ind { margin: 12px 8px 0; }
.fl-shape-section { margin-top: 40px; }
.fl-shape-options { gap: 10px; margin-top: 16px; grid-template-columns: 1fr 1fr; }
.fl-shape-options .fl-artcard:nth-child(3) { grid-column: 1 / -1; }
.fl-hscroll { gap: 10px; }

/* =====================================================================
   Responsive. Phone is the baseline; larger screens stretch.
   Full-bleed scenes (splash, active flow, onboarding, paywall) keep their
   canvases edge-to-edge; text and controls settle into a centered column.
   ===================================================================== */
@media (min-width: 700px) {
  .fl-screen-inner.padded {
    max-width: 680px; margin: 0 auto; width: 100%;
    padding-top: 48px; padding-left: 28px; padding-right: 28px;
  }
  .fl-ob-body, .fl-first-body { max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }
  .fl-auth-body, .fl-paywall-body { max-width: 480px; margin-left: auto; margin-right: auto; }
  .fl-web-body { max-width: 640px; margin: 0 auto; }
  .fl-web-hero { height: 340px; }
  .fl-quickstart-vis { height: 230px; }
  .fl-hscroll { flex-wrap: wrap; overflow-x: visible; margin: 10px 0 0; padding: 2px 0 4px; }
  .fl-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .fl-shape-options { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fl-shape-options .fl-artcard:nth-child(3) { grid-column: auto; }
  .fl-shape-options .fl-artcard-vis { height: 150px !important; }
  .fl-tabbar { justify-content: center; gap: 10px; }
  .fl-tab { flex: 0 0 96px; }
  .fl-active-footer {
    left: max(26px, calc(50% - 320px));
    right: max(26px, calc(50% - 320px));
  }
  .fl-splash-word { left: 50%; right: auto; transform: translateX(-50%) translateY(8px); width: 100%; max-width: 560px; }
  .fl-splash-word.show { transform: translateX(-50%); }
}

/* desktop (macbook): near-full-width canvas, roomier everything */
@media (min-width: 1100px) {
  .fl-screen-inner.padded {
    max-width: 1180px; padding-left: 48px; padding-right: 48px; padding-top: 56px;
  }
  .fl-h1 { font-size: 36px; }
  .fl-shape-headline { font-size: 40px; }
  .fl-active-timer { font-size: 84px; }
  .fl-home-streaknum { font-size: 72px; }
  .fl-quickstart-vis { height: 340px; }
  .fl-quickstart-body { padding: 20px 24px 22px; }
  .fl-shape-options { gap: 14px; }
  .fl-shape-options .fl-artcard-vis { height: 220px !important; }
  .fl-shape-section { margin-top: 52px; }
  .fl-hscroll { gap: 14px; }
  .fl-hscroll .fl-artcard { width: 205px !important; }
  .fl-hscroll .fl-artcard-vis { height: 160px !important; }
  .fl-home-grid, .fl-stats-grid { gap: 14px; }
  .fl-card.pad { padding: 20px; }
  .fl-ob-body, .fl-first-body { max-width: 640px; }
  .fl-web-body { max-width: 760px; }
  .fl-active-footer {
    left: max(48px, calc(50% - 540px));
    right: max(48px, calc(50% - 540px));
  }
}

/* tv / very large screens: scale the whole world up uniformly */
@media (min-width: 1700px) { .fl-app { zoom: 1.35; } }
@media (min-width: 2600px) { .fl-app { zoom: 2; } }

/* pointer devices: hover states (touch is unaffected) */
@media (hover: hover) {
  .fl-btn:hover { opacity: 0.88; }
  .fl-btn.ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
  .fl-card.clickable:hover { background: rgba(255, 255, 255, 0.06); }
  .fl-chip:hover:not(.on), .fl-seg-item:hover:not(.on) { color: var(--ink); }
  .fl-pill-solid:hover { opacity: 0.88; }
  .fl-pill-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
  .fl-artcard:hover:not(.on) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
  .fl-iconbtn:hover, .fl-roundbtn:hover { background: rgba(255, 255, 255, 0.08); }
  .fl-listrow.clickable:hover, .fl-menu-item:hover { background: rgba(255, 255, 255, 0.05); }
  .fl-tab:hover:not(.on) { color: rgba(255, 255, 255, 0.75); }
  .fl-textbtn:hover, .fl-plan:hover { color: var(--ink); }
  .fl-plan:hover:not(.on) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
}
