/* Home page: light hero with the animated paper flow, why it's different, get started, how it works. */

/* -- hero ------------------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 56px;
        background: linear-gradient(180deg, var(--band-2) 0%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .8;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 75%);
          mask: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 20s ease-in-out infinite; }
.b1 { width: 480px; height: 480px; left: -160px; top: -200px; background: color-mix(in srgb, var(--accent-2) 22%, transparent); }
.b2 { width: 420px; height: 420px; right: -60px; top: -40px; background: color-mix(in srgb, var(--accent-3) 14%, transparent); animation-delay: -7s; }
.b3 { width: 360px; height: 360px; left: 42%; bottom: -240px; background: color-mix(in srgb, var(--accent) 10%, transparent); animation-delay: -14s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(36px, 24px) scale(1.06); }
                   66% { transform: translate(-28px, 18px) scale(.96); } }

.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: .92fr 1.08fr; gap: 40px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: 99px;
               font-size: .8rem; font-weight: 600; color: var(--ink-2);
               background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3);
                       box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 22%, transparent); }
.hero h1 { font-weight: 760; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 20px; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--accent); }
.hero h1 em { display: block; }
.hero .lead { font-size: 1.12rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn { padding: 13px 24px; font-size: 1rem; }

/* -- animated flow ----------------------------------------------------------------------------- */
.flow-viz { margin: 0; position: relative; }
.flow-viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.fv-road { fill: none; stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 2.5; stroke-linecap: round; }
.fv-side { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round;
           animation: march 1.4s linear infinite; }
.fv-side.loop { stroke: color-mix(in srgb, var(--accent-3) 60%, var(--line)); }
@keyframes march { to { stroke-dashoffset: -16; } }
.fv-src { font-size: 12px; font-weight: 600; fill: var(--ink-3); letter-spacing: .02em; }

.paper { fill: color-mix(in srgb, var(--ink-3) 45%, var(--card)); stroke: var(--card); stroke-width: 1.2; transition: fill .3s; }
.paper.kept { fill: var(--accent); }
.paper.written { fill: var(--ink); }
.spark { stroke: var(--card); stroke-width: 2; }
.spark.plan { fill: var(--ink-3); }
.spark.crit { fill: var(--accent-2); }
.spark.loop { fill: var(--accent-3); }

.fv-node { cursor: pointer; }
.fv-node .halo { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.fv-node .ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .3s; }
.fv-node .core { fill: var(--card); stroke: var(--line); stroke-width: 1;
                 filter: drop-shadow(0 4px 12px rgba(30, 25, 15, .10)); }
.fv-node .ico { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
                pointer-events: none; transition: stroke .3s; }
.fv-node .nm { font-size: 14px; font-weight: 700; fill: var(--ink); letter-spacing: -.01em; }
.fv-node .sb { font-size: 11.5px; fill: var(--ink-3); font-weight: 500; }
.fv-node.on .halo { opacity: .1; }
.fv-node.on .ring { stroke: var(--accent); }
.fv-node.on .ico { stroke: var(--accent); }
.fv-node.hit .ring { animation: hit .5s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes hit { 40% { transform: scale(1.12); } }

.fv-caption { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
              margin: 6px auto 0; padding: 9px 16px; border-radius: 99px; font-size: .9rem; font-weight: 500;
              color: var(--ink-2); background: var(--card); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.fv-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
          box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* -- why it's different ---------------------------------------------------------------------------- */
.why { padding-bottom: 36px; }
.why .center-head { margin-bottom: 28px; }
.why-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.why-points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.why-points svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* -- get started: the heart of the page ------------------------------------------------------------ */
.start { padding-top: 28px; }
.start-card { display: grid; gap: 36px; padding: 40px; border-radius: 24px; background: var(--card);
              border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.start-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
@media (min-width: 960px) { .start-card { grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 52px; } }
@media (max-width: 560px) { .start-card { padding: 26px 20px; } }
.start-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.start-copy h2 em { display: block; }
.start-steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.start-steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.start-steps span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
                    font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink);
                    background: var(--band); box-shadow: inset 0 0 0 1px var(--line-2); }

.start-try { background: var(--band-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.try-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.try-count { font-size: .8rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.try-count.full { color: var(--accent); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: 99px; cursor: pointer;
        background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2);
        transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.chip:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip:disabled { opacity: .45; cursor: not-allowed; }

.try-preview { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 150px; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px;
           border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tp-title { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); }
.tp-date { font-size: .78rem; color: var(--ink-3); }
.tp-empty { margin: 34px 0 20px; text-align: center; color: var(--ink-3); font-size: .9rem; }
.tp-list { list-style: none; margin: 0; padding: 0; }
.tp-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 10px 0;
           border-bottom: 1px dashed var(--line); animation: tp-in .4s var(--ease) both; }
.tp-item:last-child { border-bottom: 0; }
@keyframes tp-in { from { opacity: 0; transform: translateY(6px); } }
.tp-tag { grid-row: span 2; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; max-width: 150px;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent); background: var(--accent-soft); }
.tp-item.explore .tp-tag { color: var(--accent-3); background: color-mix(in srgb, var(--accent-3) 14%, transparent); }
.tp-bars { display: grid; gap: 5px; }
.tp-bars i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.tp-why { font-size: .76rem; color: var(--ink-3); }
.try-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.try-cta .btn:not(.ghost):not(.ready) { opacity: .55; }

/* -- how it works -------------------------------------------------------------------------------- */
.how { padding-bottom: 72px; }
.steps { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 860px; position: relative; display: grid; gap: 14px; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-2); }
.steps li { position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 18px 22px 18px 0; }
.steps b { display: block; font-size: 1.08rem; margin: 6px 0 4px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.step-n { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
          background: var(--card); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.3rem;
          position: relative; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); transition: background .2s, color .2s; }
.steps li:hover .step-n { background: var(--ink); color: var(--bg); }
.center { text-align: center; }
.home section[id] { scroll-margin-top: 80px; }
