:root {
    /* neutrals — constant across palettes */
    --bg:     #EEF1F0;
    --bg-2:   #E4E9E8;
    --card:   #FBFCFB;
    --ink:    #1E2522;
    --ink-2:  #515B57;
    --ink-3:  #8A938E;
    --hair:   #DBE0DE;
    /* palette — overwritten by JS */
    --c1: #5965E8; --c1d: #4450D4; --c1t: #DFE2FB; --c1L: #B6BEFB;
    --c2: #F0795A; --c2d: #A93B22; --c2t: #FBDDD4;
    --c3: #4F9E7F; --c3t: #DCEDE5;
    --pane: linear-gradient(160deg, #EEF0FE, #E7EFEC);
    --disp: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--body); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background 400ms ease;
  }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(120% 70% at 50% -10%, var(--c1t), transparent 60%);
    opacity: 0.45; transition: background 400ms ease;
  }
  body > * { position: relative; z-index: 1; }
  ::selection { background: var(--c1t); color: var(--ink); }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 4px; }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

  /* ---------- Nav ---------- */
  nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 20px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
  .brand .wm { white-space: nowrap; }
  .brand .mk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; position: relative; flex-shrink: 0; transition: background 300ms ease, border-radius 300ms ease, width 300ms ease, border 300ms ease; }
  .brand .mk .cc { font-size: 13px; font-weight: 700; color: #fff; line-height: 1; }
  .brand .dot { color: var(--c2); display: inline-block; width: 0.19em; height: 0.19em; border-radius: 50%; background: currentColor; overflow: hidden; text-indent: 100%; white-space: nowrap; margin-left: 0.06em; transition: color 300ms ease; }

  [data-logo="dot"] .brand .mk { display: none; }

  nav .links { display: flex; gap: 8px; align-items: center; }
  nav .links a { font-size: 14.5px; color: var(--ink-2); padding: 9px 14px; border-radius: 999px; transition: background 140ms ease, color 140ms ease; }
  nav .links a:hover { background: var(--bg-2); color: var(--ink); }
  nav .links a.cta { background: var(--ink); color: var(--card); }
  nav .links a.cta:hover { background: var(--c1); color: #fff; }

  /* ---------- Hero ---------- */
  .hero { padding: 84px 0 56px; text-align: center; }
  .chip { display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--hair); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--ink-2); margin-bottom: 32px; }
  .chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c3) 22%, transparent); }
  .hero h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 auto; max-width: 16ch; text-wrap: balance; }
  .hero h1 .nb { white-space: nowrap; }
  .hero h1 .u { color: var(--c1); position: relative; white-space: nowrap; transition: color 300ms ease; }
  .hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.14em; background: var(--c1t); border-radius: 3px; z-index: -1; transform-origin: left; }
  .hero h1 .hd, .shead h2 .hd { color: var(--c2); transition: color 300ms ease; }
  /* the edit: "everything" struck out, "one thing" carried in */
  .swap { display: inline-block; white-space: nowrap; position: relative; vertical-align: bottom; }
  .swap .old { display: none; position: relative; }
  html.swap-pre .swap .old { display: inline-block; }
  html.swap-pre .swap .new { display: none; }
  .swap .old::after { content: ""; position: absolute; left: -0.03em; right: -0.03em; top: 55%; height: 0.065em; background: var(--c2); border-radius: 4px; transform: rotate(-1deg) scaleX(0); transform-origin: left center; }
  .swap.anim { transition: width 560ms cubic-bezier(.2,.7,.2,1); }
  .swap.anim .old { display: inline-block; transition: opacity 320ms ease; }
  .swap.anim .new { display: inline-block; position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 420ms ease 180ms; }
  .swap.anim .old::after { transition: transform 420ms cubic-bezier(.2,.7,.2,1); }
  .swap.struck .old::after { transform: rotate(-1deg) scaleX(1); }
  .swap.swapped .old { opacity: 0; }
  .swap.swapped .new { opacity: 1; }
  .swap.done .old { display: none; }
  .swap.done .new { position: static; opacity: 1; }
  .hero .sub { margin: 28px auto 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
  .hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 999px; transition: transform 160ms cubic-bezier(.34,1.4,.64,1), background 140ms ease, box-shadow 160ms ease; }
  .btn.primary { background: var(--c1); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c1) 70%, transparent); }
  .btn.primary:hover { background: var(--c1d); transform: translateY(-2px); }
  .btn.soft { background: var(--card); color: var(--ink); border: 1px solid var(--hair); }
  .btn.soft:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(30,37,34,.4); }
  .btn svg { transition: transform 180ms ease; }
  .btn:hover svg { transform: translate(2px,-2px); }

  /* ---------- Product ---------- */
  .product { background: var(--card); border: 1px solid var(--hair); border-radius: 28px; padding: 12px; margin-top: 28px; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 0; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(30,37,34,.4); }
  .product .info { padding: 44px; }
  .product .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--c2t); color: var(--c2d); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 13px; margin-bottom: 22px; transition: background 300ms ease, color 300ms ease; }
  .product h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 44px; letter-spacing: -0.01em; margin: 0; line-height: 1; }
  .product h3 .dot { color: #7A2218; font-size: 1em; }  /* The Daily Profit's own press-red — fixed, doesn't re-tint with palette */
  .product h3.wordmark { font-weight: 700; letter-spacing: -0.04em; font-size: 44px; color: #0A0A0A; margin: 0 0 2px; }
  .product .tl { font-family: var(--disp); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 18px 0 16px; max-width: 24ch; color: var(--ink); }
  .product .ds { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; max-width: 42ch; margin: 0 0 28px; }
  .product .meta { display: flex; gap: 30px; padding-top: 22px; border-top: 1px solid var(--hair); }
  .product .meta .mk2 { font-size: 12px; color: var(--ink-3); }
  .product .meta .mv { font-family: var(--disp); font-weight: 600; font-size: 19px; margin-top: 4px; }
  .product .meta .mv .c1 { color: var(--c1); }
  .product .link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--c1); font-size: 15px; }
  .product .link svg { transition: transform 180ms ease; }
  .product:hover .link svg { transform: translate(3px,-3px); }
  .product .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
  .product .actions .btn.sm { padding: 12px 20px; font-size: 14px; background: var(--ink); color: var(--card); }
  .product .actions .btn.sm:hover { background: var(--c1); color: #fff; }
  .product .actions .link { margin-top: 0; }
  .product .actions .shopify { color: var(--ink-2); border: 1px solid var(--hair); padding: 9px 15px; border-radius: 999px; background: var(--card); transition: border-color 140ms ease, color 140ms ease; }
  .product .actions .shopify:hover { border-color: var(--c1); color: var(--c1); }

  .product .pane { background: radial-gradient(color-mix(in srgb, var(--c1) 16%, transparent) 1.2px, transparent 1.3px) 0 0 / 19px 19px, var(--pane); border-radius: 18px; padding: 40px; display: flex; align-items: center; justify-content: center; transition: background 400ms ease; }
  .notif { width: 100%; max-width: 340px; background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 24px 48px -22px rgba(40,46,90,.4); }
  .notif .nh { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
  .notif .nh .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: -0.04em; }
  .notif .nh .ic i { color: var(--c2); font-style: normal; font-size: 1.5em; line-height: 0; transition: color 300ms ease; }
  .notif .nh .ic.img { background: #F4F1EA; padding: 0; overflow: hidden; border: 1px solid var(--hair); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
  .notif .nh .ic.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .notif .nh .nt { font-size: 13px; font-weight: 600; line-height: 1.2; }
  .notif .nh .ns { font-size: 11.5px; color: var(--ink-3); }
  .notif .nh .when { margin-left: auto; font-size: 11px; color: var(--ink-3); }
  .notif .greet { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
  .notif .num { font-family: var(--disp); font-weight: 600; font-size: 50px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .notif .num .c { font-size: 0.46em; color: var(--ink-3); vertical-align: 0.5em; }
  .notif .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--c3); background: var(--c3t); border-radius: 999px; padding: 4px 11px; transition: background 300ms ease, color 300ms ease; }
  .notif .ledger { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 14px; }
  .notif .lr { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; font-variant-numeric: tabular-nums; }
  .notif .lr .v { color: var(--ink); font-weight: 500; }

  /* ---------- Rules ---------- */
  section.block { padding: 90px 0 0; }
  .shead { text-align: center; margin-bottom: 48px; }
  .shead .ke { font-size: 13px; font-weight: 600; color: var(--c1); letter-spacing: 0.02em; margin-bottom: 12px; }
  .shead h2 { font-family: var(--disp); font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; margin: 0; line-height: 1.05; }
  .rules { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
  .rule { background: var(--card); border: 1px solid var(--hair); border-radius: 22px; padding: 32px; transition: transform 200ms cubic-bezier(.34,1.3,.64,1), box-shadow 200ms ease; }
  .rule:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(30,37,34,.35); }
  .rule .n { font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--ink-3); letter-spacing: 0.01em; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
  .rule .n::after { content: "."; color: var(--c2); font-size: 1.35em; line-height: 0; transition: color 300ms ease; }
  .rule h4 { font-family: var(--disp); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; margin: 18px 0 12px; }
  .rule p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }

  /* ---------- About ---------- */
  .about { margin-top: 90px; background: var(--ink); color: #EAEFEC; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
  .about .pull { font-family: var(--disp); font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -0.02em; margin: 0; max-width: 24ch; }
  .about .pull .u { color: var(--c1L); transition: color 300ms ease; }
  .about .facts { display: flex; flex-direction: column; }
  .about .facts .f { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .about .facts .f:last-child { border-bottom: 0; }
  .about .facts .fk { font-size: 13px; color: #97A09B; }
  .about .facts .fv { font-weight: 600; font-size: 15px; }
  .about .facts .fv a { border-bottom: 1px solid color-mix(in srgb, var(--c1L) 55%, transparent); transition: color 140ms ease; }
  .about .facts .fv a:hover { color: var(--c1L); }
  .live-link { display: inline-flex; align-items: center; gap: 7px; }
  .live-link .d { width: 7px; height: 7px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 25%, transparent); animation: pulse 2.2s ease infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

  /* ---------- Footer ---------- */
  footer { margin-top: 96px; border-top: 1px solid var(--hair); padding: 48px 0 52px; }
  footer .ftop { display: grid; grid-template-columns: 1.25fr 2fr; gap: 48px; padding-bottom: 40px; }
  footer .fbrand .brand { display: inline-flex; }
  footer .fbio { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; max-width: 34ch; }
  footer .fcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
  footer .fh { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 16px; }
  footer .fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
  footer .fcol a { font-size: 14.5px; color: var(--ink-2); transition: color 140ms ease; }
  footer .fcol a:hover { color: var(--c1); }
  footer .fcol .soon { font-size: 13.5px; color: var(--ink-3); font-style: italic; }
  footer .fbot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
  footer .cr { font-size: 13px; color: var(--ink-3); }
  footer .legal { display: flex; gap: 20px; }
  footer .legal a { font-size: 13px; color: var(--ink-3); transition: color 140ms ease; }
  footer .legal a:hover { color: var(--c1); }

  /* ---------- Entrance ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .fade { opacity: 0; transform: translateY(16px); animation: fadeUp 700ms cubic-bezier(.2,.7,.2,1) forwards; }
    .fade.d1 { animation-delay: 80ms; }
    .fade.d2 { animation-delay: 160ms; }
    .fade.d3 { animation-delay: 240ms; }
    .fade.d4 { animation-delay: 340ms; }
    @keyframes fadeUp { to { opacity: 1; transform: none; } }
    .hero h1 .u::after { transform: scaleX(0); animation: drawLine 600ms cubic-bezier(.2,.7,.2,1) 520ms forwards; }
    @keyframes drawLine { to { transform: scaleX(1); } }
  }

@media (max-width: 860px) {
    .hero { padding: 56px 0 44px; }
    .product { grid-template-columns: 1fr; }
    /* mobile: text first on every card — the flip is a desktop-only rhythm */
    .product .info { padding: 34px; }
    .rules { grid-template-columns: 1fr; }
    section.block { padding: 64px 0 0; }
    .about { grid-template-columns: 1fr; gap: 36px; padding: 40px; margin-top: 64px; }
    footer { margin-top: 64px; }
    footer .ftop { grid-template-columns: 1fr; gap: 36px; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    nav { padding: 18px 0; }
    nav .links a:not(.cta) { display: none; }
    .hero { padding: 40px 0 36px; }
    .chip { margin-bottom: 24px; }
    .hero h1 { font-size: clamp(34px, 10.5vw, 42px); }
    .hero .sub { font-size: 17px; margin-top: 22px; }
    .hero .cta { margin-top: 28px; }
    .hero .cta .btn { width: 100%; justify-content: center; }
    .product { border-radius: 24px; padding: 8px; }
    .product .info { padding: 28px 22px; }
    .product .pane { padding: 26px 16px; }
    .product h3 { font-size: 37px; }
    .product h3.wordmark { font-size: 37px; }
    .product .meta { flex-wrap: wrap; gap: 18px 26px; }
    .rule { padding: 26px 22px; }
    .about { padding: 36px 24px; border-radius: 24px; }
    footer .fcols { grid-template-columns: 1fr 1fr; gap: 22px; }
  }
