/* features.html: every module, one page. Built only from product.css tokens, so light, dark and
   reduced motion follow the rest of the site with nothing new to maintain. */

/* The display serif is defined in story.css, which this page does not load. */
:root { --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino', Georgia, 'Times New Roman', serif; }

.f-hero { padding-top: 60px; padding-bottom: 30px; }
.f-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.025em; line-height: 1.02; max-width: 14em; }
.f-hero .lede { margin-top: 22px; }

/* What it replaces: the tools an agency pays for separately today. */
.replaces { margin-top: 38px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.replaces div {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--edge); outline: 1px solid var(--hair); font-size: 14.5px; color: var(--ink-2);
}
.replaces s { color: var(--muted); text-decoration-thickness: 1px; }
.replaces b { color: var(--ink); font-weight: 600; margin-left: auto; white-space: nowrap; font-size: 13px; }
.replaces-note { margin-top: 14px; }

/* The module index: sticky under the header, one scrollable row on a phone. */
.f-index {
  position: sticky; top: var(--hdr, 68px); z-index: 30; margin-top: 44px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.f-index .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.f-index .wrap::-webkit-scrollbar { display: none; }
.f-index a {
  flex: 0 0 auto; font-size: 13.5px; font-weight: 550; color: var(--ink-2); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-solid);
}
.f-index a:hover, .f-index a.on { color: var(--btn-text); background: var(--btn-ink); border-color: var(--btn-ink); text-decoration: none; }

/* A module. Text on one side, the real screen (or a spec panel) on the other, alternating. */
.mod { padding-top: 84px; padding-bottom: 20px; scroll-margin-top: calc(var(--hdr, 68px) + 40px); }
.mod .row { display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; }
.mod.flip .row > :first-child { order: 2; }
.mod .num { font-family: var(--brand); font-size: 13px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; margin: 0 0 12px; }
.mod h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.06; }
.mod .promise { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; max-width: 34em; line-height: 1.5; }
.mod h3.how { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 26px 0 6px; font-weight: 700; }
.mod ol.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.mod ol.flow li { counter-increment: f; position: relative; padding: 8px 0 8px 40px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.mod ol.flow li::before {
  content: counter(f); position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-wash);
}
.mod ol.flow li b { color: var(--ink); }

.shot {
  margin: 0; border-radius: 18px; overflow: hidden; background: var(--panel-solid);
  border: 1px solid var(--edge); outline: 1px solid var(--hair); box-shadow: var(--shadow-l);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--hair); }

/* Spec panel, for modules we do not have a clean screen of yet: the parts, as a tidy grid. */
.spec { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--edge); outline: 1px solid var(--hair); box-shadow: var(--shadow-s); }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.spec li { padding: 14px 15px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.spec li b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 3px; }

.mod .extra { margin-top: 26px; }

@media (max-width: 900px) {
  .mod { padding-top: 64px; }
  .mod .row { grid-template-columns: 1fr; gap: 26px; }
  .mod.flip .row > :first-child { order: 0; }
}

/* One client, start to finish: which module picks the file up at each step. */
.journey { padding-top: 100px; }
.journey h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.02em; line-height: 1.06; max-width: 18em; }
.jr { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: j; }
.jr li { counter-increment: j; padding: 18px 18px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); outline: 1px solid var(--hair); }
.jr li::before { content: counter(j, decimal-leading-zero); display: block; font-family: var(--brand); font-size: 12px; letter-spacing: .2em; color: var(--accent); margin-bottom: 8px; }
.jr li b { display: block; color: var(--ink); margin-bottom: 4px; }
.jr li span { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: block; }
.jr li i { font-style: normal; display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 650; color: var(--accent); }

.f-close { padding-top: 110px; padding-bottom: 60px; text-align: center; }
.f-close h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; line-height: 1.05; max-width: 15em; margin: 0 auto; }
.f-close .lede { margin: 18px auto 0; }
.f-close .cta { justify-content: center; }

/* Reveal once on entry. Content is visible without JS and under reduced motion. */
.js .fr { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .fr.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fr { opacity: 1; transform: none; transition: none; } }
