/* The Y.E.T.I. Method page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Letter colors, shared by every section */
.ftile--y, .fq[data-l="Y"] { --lc: var(--glow); }
.ftile--e, .fq[data-l="E"] { --lc: var(--mint); }
.ftile--t, .fq[data-l="T"] { --lc: var(--ice-2); }
.ftile--i, .fq[data-l="I"] { --lc: #ffd36b; }

/* Hero: the four letters as tiles */
.fhero .hero__center h1 { max-width: none; }
.ftiles { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); width: min(100%, 880px); }
.ftile { display: grid; justify-items: center; align-content: center; gap: 8px; padding: clamp(14px, 2vw, 22px) 10px clamp(16px, 2vw, 22px); background: var(--ink); color: var(--on-dark); border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--lc); }
.ftile:nth-child(odd) { transform: rotate(-2deg); }
.ftile:nth-child(even) { transform: rotate(1.6deg) translateY(6px); }
.ftile b { font: 900 clamp(3rem, 2rem + 4vw, 5.2rem)/.9 var(--display); font-variation-settings: "SOFT" 100; color: var(--lc); }
.ftile b i { font-style: normal; color: var(--on-dark); }
.ftile span { font-weight: 800; font-size: clamp(.82rem, .7rem + .4vw, 1rem); line-height: 1.2; }
.fhero .ridges { margin-top: clamp(-10px, 1vw, 20px); }
@media (max-width: 640px) {
  .ftiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftile:nth-child(even) { transform: rotate(1.6deg); }
}

/* Four letters, every plan: sticky word + steps */
.fsteps__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fsteps__rail { position: sticky; top: calc(50vh - 190px); }
.frail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.frail li { display: grid; grid-template-columns: 1.1em minmax(0, 1fr); align-items: center; gap: 18px; font: 900 clamp(3.6rem, 2rem + 4vw, 6.4rem)/1 var(--display); font-variation-settings: "SOFT" 100; color: rgba(22, 47, 57, .16); transition: color .35s ease, transform .35s ease; }
.frail b { font-weight: 900; }
.frail b i { font-style: normal; }
.frail span { font: 800 var(--step-1)/1.2 var(--body); opacity: 0; transform: translateX(-10px); transition: opacity .35s ease, transform .35s ease; color: var(--ink); }
.frail li.is-on { color: var(--ink); transform: translateX(8px); }
.frail li.is-on b i { color: var(--glow); }
.frail li.is-on span { opacity: 1; transform: none; }
.fsteps__list { display: grid; gap: clamp(28px, 4vw, 48px); }
.fstep { display: grid; gap: clamp(16px, 2.4vw, 24px); padding: 0 clamp(20px, 3vw, 34px) clamp(22px, 3vw, 34px); background: var(--snow); border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.fstep__old { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 calc(-1 * clamp(20px, 3vw, 34px)); padding: 12px clamp(20px, 3vw, 34px); background: var(--paper-2); border-bottom: 2px dashed #cdbf9f; color: var(--ink-soft); font-size: .95rem; }
.fstep__old small { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--glow-ink); }
.fstep__old small::before { content: "\2715"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--glow); color: var(--ink); font-size: .62rem; letter-spacing: 0; }
.fstep__old span { text-decoration: line-through; text-decoration-color: rgba(180, 80, 42, .55); text-decoration-thickness: 1.5px; }
.fstep__main { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(16px, 3vw, 30px); align-items: center; }
.fstep__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.fstep__letter { position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(7rem, 4rem + 7vw, 12rem)/1 var(--display); font-variation-settings: "SOFT" 100; color: var(--ice); }
.fstep__art img { position: relative; width: 86%; height: 86%; object-fit: contain; }
.fstep__n { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; color: var(--mint-ink); }
.fstep h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: var(--step-3); line-height: 1.05; margin-bottom: 6px; }
.fstep h3 b { color: var(--glow-ink); font-weight: 900; }
.fstep__short { font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.fstep__copy p:last-child { color: var(--ink-soft); margin: 0; }
.fdet { border-top: 1.5px dashed #d9ccb4; padding-top: 16px; }
.fdet h4 { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--glow-ink); margin: 0 0 12px; }
.fdet__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fdet__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: #e8f8f1; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.fdet__chips li::before { content: "\2713"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); font-size: .66rem; font-weight: 900; }
.fdet__build li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; background: var(--paper); border: 2px solid #e2d6c0; border-radius: 14px; }
.fdet__build b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--glow); font: 900 1rem/1 var(--display); }
.fdet__build span { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }
.fdet__build strong { display: block; color: var(--ink); font-size: .98rem; }
.fdet__locked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fdet__locked li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; background: var(--ink); border: 2px solid var(--ink); border-radius: 14px; }
.fdet__locked b { font: 900 1.5rem/1 var(--display); font-variation-settings: "SOFT" 100; color: var(--glow); }
.fdet__locked svg { width: 18px; height: 18px; fill: none; stroke: var(--on-dark-soft); stroke-width: 2.2; stroke-linecap: round; }
.fdet__locked i { width: 70%; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(168, 191, 192, .45) 0 6px, transparent 6px 9px); }
.fdet__tease { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.fdet__tease p { flex: 1 1 280px; margin: 0; color: var(--ink-soft); }
.fdet__tease strong { color: var(--ink); }
.fdet__build { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (max-width: 960px) {
  .fsteps__grid { grid-template-columns: minmax(0, 1fr); }
  .fsteps__rail { display: none; }
}
@media (max-width: 600px) {
  .fstep__main { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; }
  .fstep__copy { display: contents; }
  .fstep__art { grid-row: 1 / span 2; }
  .fstep__letter { font-size: 5.4rem; }
  .fstep__n, .fstep h3 { grid-column: 2; align-self: end; }
  .fstep h3 { align-self: start; margin: 0; }
  .fstep__short { grid-column: 1 / -1; margin-top: 14px; }
  .fstep__copy p:last-child { grid-column: 1 / -1; }
  .fdet__chips li { font-size: .88rem; }
  .fdet__locked { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fstep__n { font-size: .64rem; letter-spacing: .07em; white-space: nowrap; }
  .fdet__tease .btn { width: 100%; }
}

/* Same four steps, every line */
.fevery__table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--snow); border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.fevery__table th, .fevery__table td { padding: 18px 20px; text-align: left; vertical-align: top; border-top: 1.5px dashed #d9ccb4; }
.fevery__table thead th { border-top: 0; background: var(--ink); color: var(--on-dark); }
.fevery__table thead a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 var(--step-1)/1.1 var(--display); font-variation-settings: "SOFT" 100; }
.fevery__table thead a:hover { color: var(--glow); }
.fevery__table thead img { width: 42px; height: 42px; object-fit: contain; background: var(--snow); border-radius: 50%; border: 2px solid var(--night); }
.fevery__table tbody th { width: 22%; }
.fevery__table tbody th b { display: block; font: 900 2.4rem/1 var(--display); font-variation-settings: "SOFT" 100; color: var(--glow-ink); }
.fevery__table tbody th span { font-weight: 800; }
.fevery__table td { color: var(--ink-soft); }
@media (max-width: 860px) {
  .fevery__table, .fevery__table tbody, .fevery__table tr, .fevery__table th, .fevery__table td { display: block; width: auto !important; }
  .fevery__table thead { display: none; }
  .fevery__table tbody tr + tr { border-top: var(--line); }
  .fevery__table tbody th { display: flex; align-items: baseline; gap: 10px; background: var(--ink); color: var(--on-dark); border-top: 0; }
  .fevery__table tbody th b { color: var(--glow); font-size: 1.8rem; }
  .fevery__table td { border-top: 1.5px dashed #d9ccb4; }
  .fevery__table tbody th + td { border-top: 0; }
  .fevery__table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-ink); margin-bottom: 4px; }
}

/* Does your plan pass? */
.ftest__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ftest__grid .head { margin-bottom: 0; }
.ftest__yeti { width: clamp(140px, 13vw, 190px); margin-top: 6px; }
.ftest__card { background: var(--snow); border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--glow); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.ftest__score { display: flex; gap: 10px; justify-content: center; }
.ftest__score span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; border: var(--line); background: var(--paper); color: rgba(22, 47, 57, .25); font: 900 2rem/1 var(--display); font-variation-settings: "SOFT" 100; transition: background .3s ease, color .3s ease, transform .3s ease; }
.ftest__score span.is-yes { background: var(--ink); color: var(--mint); transform: rotate(-4deg); }
.ftest__score span.is-no { background: #fbe1d4; color: var(--glow-ink); text-decoration: line-through; }
.ftest__qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fq { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 2px solid #e2d6c0; border-radius: 14px; }
.fq__l { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--lc); font: 900 1.3rem/1 var(--display); }
.fq p { margin: 0; font-weight: 600; line-height: 1.4; }
.fq__btns { display: flex; gap: 6px; }
.fq__btns button { font: 800 .9rem/1 var(--body); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--snow); color: var(--ink); cursor: pointer; }
.fq__btns button[aria-pressed=true][data-a=yes] { background: var(--mint); }
.fq__btns button[aria-pressed=true][data-a=no] { background: var(--glow); }
.fq__btns button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.ftest__result { display: grid; gap: 6px; justify-items: start; padding: 18px 20px; background: var(--ink); color: var(--on-dark); border-radius: 16px; }
.ftest__result[hidden] { display: none; }
.ftest__result b { font: 800 var(--step-2)/1.1 var(--display); font-variation-settings: "SOFT" 100; color: var(--glow); }
.ftest__result p { margin: 0 0 8px; color: var(--on-dark-soft); }
@media (max-width: 900px) { .ftest__grid { grid-template-columns: minmax(0, 1fr); } .ftest__yeti { display: none; } }
@media (max-width: 520px) {
  .fq { grid-template-columns: auto minmax(0, 1fr); }
  .fq__btns { grid-column: 1 / -1; }
  .fq__btns button { flex: 1; }
  .ftest__score span { width: 48px; height: 48px; }
}
