/* Blog article template. Builds on styles.css tokens. */
.post-wrap { background: var(--paper); }

/* hero */
.a-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: calc(68px + clamp(2rem, 6vh, 4rem)) var(--gut) clamp(3rem, 8vh, 5rem); border-bottom: var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.a-h { margin-top: 1.2rem; font-size: clamp(2.2rem, 1rem + 3.2vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.a-h em { background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); }
.a-dek { margin-top: 1.4rem; max-width: 62ch; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); color: var(--ink-2); }
.a-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.byline { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(13, 20, 33, .15); }
.byline img { width: 48px; height: 48px; border-radius: 50%; border: var(--line); object-fit: cover; }
.byline p { font-size: .9rem; color: var(--ink-2); }
.byline b { color: var(--ink); }
.byline span { display: block; margin-top: .15rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags span { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; padding: .25rem .6rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }

/* the bill calculator */
.bill { position: sticky; top: 92px; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.bill-top { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.1rem; background: var(--ink); color: var(--paper); font-weight: 800; }
.bill-x { display: inline-flex; align-items: baseline; padding: .1rem .7rem; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 1.5rem; letter-spacing: -.05em; }
.bill-x em { font-style: normal; font-variant-numeric: tabular-nums; }
.bill-x.pop { animation: xpop .45s var(--spring); }
@keyframes xpop { from { transform: scale(1.35) rotate(-6deg); } }
.bill-step { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(13, 20, 33, .12); }
.bill-step img { width: 28px; height: 28px; border-radius: 7px; }
.bill-step p { font-size: .9rem; }
.bill-step span { display: block; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); }
.bill-ctl { display: grid; gap: .55rem; padding: .9rem 1.1rem .4rem; }
.bill-ctl label { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; align-items: center; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bill-ctl output { font-family: var(--f-sans); font-size: .92rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.bill-ctl input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 22px; margin: 0; }
.bill-sw { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .4rem 1.1rem .9rem; }
.sw { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { position: relative; width: 38px; height: 22px; border: var(--line); border-radius: 999px; background: #fff; transition: background-color .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--spring); }
.sw input:checked + i { background: var(--mint); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 3px solid var(--ink); outline-offset: 2px; }
.bill-rows { display: grid; gap: .45rem; padding: 0 1.1rem 1rem; }
.bill-rows li { display: grid; grid-template-columns: 1.6rem 1fr auto; grid-template-rows: auto auto; gap: .15rem .6rem; align-items: center; padding: .55rem .7rem; border: 1.5px solid var(--ink); border-radius: 12px; }
.bill-rows img { grid-row: 1 / 3; width: 24px; height: 24px; border-radius: 6px; }
.bill-rows b { font-size: .88rem; }
.bill-rows em { font-style: normal; font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bill-rows .bar { grid-column: 2 / 4; height: 8px; border-radius: 4px; background: rgba(13, 20, 33, .08); overflow: hidden; }
.bill-rows .bar i { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); }
.bill-rows li.best { background: #d6f7ec; } .bill-rows li.best .bar i { background: var(--mint-d); }
.bill-rows li.claude .bar i { background: #d97757; }
.bill-rows li.terra { opacity: .7; } .bill-rows li.terra b::after { content: " · skip"; font-family: var(--f-mono); font-size: .62rem; color: #c2185b; }
.bill-note { padding: .8rem 1.1rem 1rem; border-top: 1px solid rgba(13, 20, 33, .12); font-size: .8rem; color: var(--ink-2); background: var(--cream); }

/* body + toc */
.a-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 8vh, 5rem) var(--gut); }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-l { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { border-left: 2px solid rgba(13, 20, 33, .15); }
.toc a { position: relative; display: flex; gap: .6rem; padding: .45rem 0 .45rem .9rem; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: color .2s; }
.toc a b { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); padding-top: .15rem; }
.toc a::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; transition: transform .35s var(--spring); }
.toc a.on { color: var(--ink); font-weight: 800; }
.toc a.on::before { transform: scaleY(1); width: 4px; left: -3px; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); }
.toc a.read b { color: var(--mint-d); }
.toc-cta { display: block; margin-top: 1.4rem; padding: .8rem .9rem; border: var(--line); border-radius: 14px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; }
.a-body { max-width: 72ch; }
.a-body a { color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.a-body a:hover { background: var(--yellow); }
.quick { padding: 1.4rem 1.5rem; border: var(--line); border-radius: 18px; background: #fff7d6; box-shadow: 6px 6px 0 var(--ink); }
.q-l { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.quick p:last-child { font-size: 1.02rem; line-height: 1.65; }
.a-sec { padding-top: clamp(3rem, 7vh, 4.5rem); scroll-margin-top: 90px; }
.a-num { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.a-sec h2 { margin: .7rem 0 1.2rem; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.a-sec > p { margin-top: 1rem; font-size: 1.06rem; line-height: 1.72; color: var(--ink-2); }
.a-sec strong { color: var(--ink); }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.6rem; }
.vc { padding: 1.1rem 1.2rem; border: var(--line); border-radius: 16px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.vc > span { display: inline-block; font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; border: 1.5px solid var(--ink); }
.vc h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.vc p { font-size: .92rem; color: var(--ink-2); }
.v-def > span { background: var(--mint); } .v-up > span { background: #ffd9c9; } .v-skip > span { background: #ffe6f0; } .v-rare > span { background: #e3f6ff; }
.v-def { background: #effcf7; }
.v-skip h3 { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.note { margin-top: 1.4rem; padding: 1.1rem 1.2rem 1.1rem 1.3rem; border: var(--line); border-left-width: 6px; border-radius: 14px; background: #fff; }
.note b { display: block; margin-bottom: .35rem; }
.note p { color: var(--ink-2); font-size: .96rem; }
.n-y { border-left-color: var(--ink); background: #fff7d6; } .n-p { background: #efedff; } .n-m { background: #effcf7; }
.tbl { margin-top: 1.4rem; overflow-x: auto; border: var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.cmp caption { caption-side: top; text-align: left; padding: .8rem 1rem; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(13, 20, 33, .12); }
.cmp th, .cmp td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(13, 20, 33, .1); font-variant-numeric: tabular-nums; }
.cmp thead th { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.cmp tbody th { font-weight: 800; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover { background: #fffbea; }
.r-best th::after { content: "cheapest"; margin-left: .5rem; font-family: var(--f-mono); font-size: .56rem; padding: .12rem .4rem; border-radius: 5px; background: var(--mint); vertical-align: 2px; }
.r-skip { color: var(--muted); }
.r-claude th { color: #b0502f; }
.cmp.bars td[style] { position: relative; font-weight: 800; }
.cmp.bars td[style]::before { content: ""; position: absolute; left: .6rem; right: .6rem; top: 50%; height: 26px; margin-top: -13px; border-radius: 6px; background: rgba(13, 20, 33, .07); }
.cmp.bars td[style]::after { content: ""; position: absolute; left: .6rem; top: 50%; height: 26px; margin-top: -13px; width: calc((100% - 1.2rem) * var(--v)); border-radius: 6px; background: var(--yellow); border: 1.5px solid var(--ink); min-width: 6px; }
.cmp.bars td[style] span { position: relative; z-index: 1; padding-left: .3rem; }
.saving { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.saving div { padding: 1rem; border: var(--line); border-radius: 14px; background: #fff; }
.saving span { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.saving b { display: block; font-size: 2.6rem; letter-spacing: -.06em; line-height: 1.05; }
.saving div:first-child b { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 4px; color: var(--muted); }
.saving i { display: block; height: 10px; margin-top: .4rem; border: 1.5px solid var(--ink); border-radius: 5px; background: linear-gradient(90deg, var(--mint) calc(var(--w) * 100%), #fff 0); }
.saving div:first-child i { background: linear-gradient(90deg, #ffe6f0 calc(var(--w) * 100%), #fff 0); }
.moves { display: grid; gap: .7rem; margin-top: 1.4rem; }
.moves li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 1.1rem; border: var(--line); border-radius: 16px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.moves > li > b { display: grid; place-items: center; height: 3rem; border: var(--line); border-radius: 12px; background: var(--yellow); font-family: var(--f-mono); }
.moves li:nth-child(2) > b { background: var(--mint); } .moves li:nth-child(3) > b { background: var(--blue); } .moves li:nth-child(4) > b { background: var(--pink); }
.moves h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.moves p { margin-top: .25rem; color: var(--ink-2); font-size: .94rem; }
.afaq { border-top: var(--line); }
.afaq details { border-bottom: var(--line); }
.afaq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.afaq summary::-webkit-details-marker { display: none; }
.afaq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: var(--line); border-radius: 50%; font-size: 1.2rem; transition: transform .5s var(--spring), background-color .2s; }
.afaq details[open] summary::after { transform: rotate(135deg); background: var(--yellow); }
.afaq details p { padding: 0 3rem 1.2rem 0; color: var(--ink-2); line-height: 1.7; }
.afaq details[open] p { animation: fadeUp2 .4s var(--ease-out); }
@keyframes fadeUp2 { from { opacity: 0; transform: translateY(-6px); } }
.roi { margin-top: 3.4rem; padding: 1.5rem; border: var(--line); border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--yellow); }
.roi .eyebrow { color: var(--yellow); }
.roi p:last-child { color: rgba(255, 253, 247, .82); }
.roi a { color: var(--yellow) !important; background: none !important; }
.bio { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; align-items: start; margin-top: 2.4rem; padding: 1.5rem; border: var(--line); border-radius: 18px; background: #fff; }
.bio img { width: 120px; height: 120px; border-radius: 16px; border: var(--line); object-fit: cover; box-shadow: 4px 4px 0 var(--ink); }
.bio h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.bio-r { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); margin: .2rem 0 .8rem; }
.bio p:not(.eyebrow):not(.bio-r) { color: var(--ink-2); margin-bottom: 1rem; }
.bio .eyebrow { margin-bottom: .4rem; }

/* related */
.related { padding: clamp(4rem, 10vh, 6rem) var(--gut); background: var(--cream); border-top: var(--line); }
.related h2 { margin-top: .6rem; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.rel { display: flex; flex-direction: column; gap: .5rem; padding: .9rem .9rem 1.2rem; background: #fff; border: var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform var(--d-std) var(--spring), box-shadow var(--d-std) var(--spring); }
.rel:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
.rel img { width: 100%; aspect-ratio: 1200 / 630; object-fit: contain; background: var(--cream); border: var(--line); border-radius: 12px; }
.rel span { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-top: .3rem; }
.rel h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.rel p { font-size: .9rem; color: var(--ink-2); }
.rel b { margin-top: auto; }

.page-blog .fin-card h2 { font-size: clamp(2.2rem, 1rem + 3vw, 4.4rem); }
.page-blog .fin-card h2 em { font-size: 1em; transform: rotate(-1.5deg); }

@media (max-width: 1080px) {
  .a-hero { grid-template-columns: minmax(0, 1fr); }
  .bill { position: relative; top: 0; max-width: 560px; }
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: relative; top: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .3rem; border: 0; }
  .toc a { padding: .35rem .6rem; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .8rem; }
  .toc a::before { display: none; }
  .toc a.on { background: var(--yellow); }
  .toc-cta { display: none; }
}
@media (max-width: 700px) {
  .verdicts, .saving, .rel-grid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio img { width: 88px; height: 88px; }
  .afaq details p { padding-right: 0; }
}
