/* BiomeDrive · inner pages (pricing, contact, legal, 404)
   Loaded after style.css and uses its tokens. Same black page, same type: Inter Tight for text,
   Anybody for prices and wordmarks, Newsreader italic for the one quiet word in a heading. */

/* ---------- shell ---------- */
.page .nav { transform: none; }                       /* always shown on inner pages */
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.pg { padding-top: calc(var(--nav) + clamp(56px, 11vh, 130px)); }
.pg-head { padding: 0 var(--gut); }
.pg-k { font-size: 13px; font-weight: 500; color: var(--text-2); }
.pg-h { margin-top: 18px; max-width: 15ch; font-size: clamp(46px, 8.4vw, 164px); font-weight: 500; line-height: .88; letter-spacing: -.06em; }
.pg-h.sm { max-width: 18ch; font-size: clamp(42px, 6.4vw, 124px); }
.pg-h em { font-family: var(--f-serif); font-style: italic; font-weight: 300; letter-spacing: -.04em; color: var(--text-2); }
.pg-lede { margin-top: clamp(26px, 4vh, 44px); max-width: 560px; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--text-2); }
.pg-meta { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }
.todo { background: #f5d76e; color: #111; padding: 0 .25em; border-radius: 2px; font-family: var(--f-mono); font-size: .86em; }

/* headings split into words that rise out of a mask (page.js) */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.wd > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 55ms); }
.ready .wd > span { transform: none; }
/* everything else fades up once, in order */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(.25s + var(--i, 0) * 80ms); }
.ready .rise { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }
.calm .wd > span, .calm .rise, .calm .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }

.sec { padding: clamp(100px, 15vh, 180px) var(--gut) 0; }
.sec-h { max-width: 17ch; font-size: clamp(32px, 4.3vw, 84px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.sec-h em { font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--text-2); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring), box-shadow .3s; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text); }

/* =========================================================
   PRICING
   ========================================================= */
.cur-switch { display: inline-flex; margin-top: clamp(30px, 5vh, 52px); padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.cur-switch button { min-width: 64px; padding: 9px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-2); transition: color .3s, background .35s var(--ease); }
.cur-switch button:hover { color: var(--text); }
.cur-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.plans { margin-top: clamp(56px, 9vh, 110px); border-bottom: 1px solid var(--line); }
.plan { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1.2fr) auto; gap: clamp(20px, 3vw, 52px); align-items: start; padding: clamp(28px, 4.5vh, 50px) var(--gut); border-top: 1px solid var(--line); transition: opacity .45s var(--ease); }
@media (hover: hover) { .plans:hover .plan:not(:hover) { opacity: .42; } }
.plan-name { font-size: clamp(24px, 2.1vw, 36px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.plan-for { margin-top: 12px; max-width: 280px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.price { display: flex; align-items: flex-start; font-family: var(--f-display); font-weight: 850; font-variation-settings: "wdth" 116; font-size: clamp(66px, 8.6vw, 168px); line-height: .8; letter-spacing: -.045em; white-space: nowrap; }
.price .sym { font-size: .4em; margin: .08em .06em 0 0; }
.price .amt { display: inline-block; }
.price-per { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.price-per b { color: var(--text); font-weight: 500; }
.plan-list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.plan-list li:first-child { border-top: 1px solid var(--line); }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1px; background: var(--text-2); }
.plan .btn { margin-top: 2px; }

.small-print { padding: 22px var(--gut) 0; max-width: 820px; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* how paying works: one line that fills as it comes into view */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 8vh, 90px); padding-top: 40px; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.flow::after { background: var(--text); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease) .2s; }
.flow.seen::after { transform: scaleX(1); }
.flow li { position: relative; }
.flow li::before { content: ""; position: absolute; left: 0; top: -40px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--text-2); transition: background .4s, box-shadow .4s; transition-delay: calc(.3s + var(--i, 0) * .4s); }
.flow.seen li::before { background: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.flow h3 { font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.flow p { margin-top: 10px; max-width: 300px; font-size: 15px; line-height: 1.45; color: var(--text-2); }

/* questions */
.qa { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.qa-list details { border-top: 1px solid var(--line); }
.qa-list details:last-child { border-bottom: 1px solid var(--line); }
.qa-list summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 23px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; transition: opacity .3s; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary:hover { opacity: .7; }
.qa-list summary::before, .qa-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 15px; height: 1.5px; background: currentColor; transition: transform .5s var(--spring); }
.qa-list summary::after { transform: rotate(90deg); }
.qa-list details[open] summary::after { transform: rotate(0deg); }
.qa-list .qa-a { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.qa-list .qa-a a { color: var(--text); border-bottom: 1px solid currentColor; }

/* closing call to action */
.ask { margin-top: clamp(110px, 16vh, 200px); padding: clamp(80px, 12vh, 140px) var(--gut); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.ask .pg-h { margin: 0; font-size: clamp(40px, 6.4vw, 124px); }

/* =========================================================
   CONTACT
   ========================================================= */
.reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: start; padding: clamp(60px, 9vh, 110px) var(--gut) 0; }
.next { margin-top: 40px; counter-reset: n; }
.next li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--text-2); counter-increment: n; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 14px; font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--text); }
.next li b { color: var(--text); font-weight: 500; }

.co { margin: clamp(90px, 14vh, 170px) var(--gut) 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); }
.co h2 { font-size: clamp(24px, 2.1vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.co h2 + p { margin-top: 12px; max-width: 360px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.co dl { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); }
.co dt, .co dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.co dt { color: var(--text-2); padding-right: 20px; }
.co dd { overflow-wrap: anywhere; }
.co dd a { border-bottom: 1px solid currentColor; }

/* =========================================================
   LEGAL PAGES: a sticky index on the left, readable text on the right
   ========================================================= */
.doc { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 740px); gap: clamp(40px, 8vw, 150px); padding: clamp(60px, 10vh, 120px) var(--gut) 0; }
.toc { position: sticky; top: calc(var(--nav) + 32px); align-self: start; }
.toc-k { margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.toc a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.3; color: var(--text-2); transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); border-color: var(--text); }
.toc-also { margin-top: 30px; display: grid; gap: 8px; font-size: 14px; }
.toc-also a { padding: 0; border: 0; color: var(--text-2); }
.toc-also a:hover { color: var(--text); }

.tldr { padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.tldr h2 { margin: 0 0 12px !important; font-size: 15px !important; letter-spacing: 0 !important; color: var(--text-2); }
.tldr li { position: relative; padding: 6px 0 6px 22px; font-size: 16px; line-height: 1.45; color: var(--text); }
.tldr li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 9px; height: 1px; background: var(--text-2); }

.doc-body section { scroll-margin-top: calc(var(--nav) + 28px); }
.doc-body h2 { margin: 60px 0 16px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.doc-body h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.65; color: rgba(241, 240, 236, .84); }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { margin-top: 12px; }
.doc-body ul li { position: relative; padding: 4px 0 4px 22px; }
.doc-body ul li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1px; background: var(--text-2); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body a { color: var(--text); border-bottom: 1px solid currentColor; }
.doc-body a:hover { opacity: .7; }
.doc-end { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* =========================================================
   404
   ========================================================= */
.lost { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav) + 40px) var(--gut) 60px; }
.lost-code { font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 128; font-size: clamp(120px, 26vw, 460px); line-height: .78; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--text-2); }
.lost .pg-h { margin-top: 26px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 15px; font-weight: 500; }
.lost-links a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.lost-links a:hover { opacity: .6; }

/* footer links to the legal pages (every page, including home) */
.foot-legal { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 20px; font-size: 13px; color: var(--text-2); }
.foot-legal a:hover { color: var(--text); }
.foot-legal.top { border-top: 1px solid var(--line); padding-top: 20px; }
/* the plan picker on the contact form matches the other fields */
.field select { width: 100%; font: inherit; font-size: 18px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 28px 10px 0; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(-45deg, transparent 50%, var(--text-2) 50%); background-size: 6px 6px; background-position: calc(100% - 10px) 52%, calc(100% - 4px) 52%; background-repeat: no-repeat; transition: border-color .3s; }
.field select:focus { outline: none; border-color: var(--text); }
.field option { background: var(--surface); color: var(--text); }

/* =========================================================
   PHONES AND TABLETS
   ========================================================= */
@media (max-width: 1100px) {
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { display: none; }
  .toc-k { display: none; }
  .toc-also { margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 52px; }
  .flow::before, .flow::after { display: none; }
  .flow li::before { top: -26px; }
  .qa, .reach, .co { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .plan { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plan .btn { grid-column: auto; }
  .price { font-size: clamp(64px, 22vw, 110px); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .ask { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .co dl { grid-template-columns: minmax(0, 1fr); }
  .co dt { padding-bottom: 0; }
  .co dd { border-top: 0; padding-top: 4px; }
  .doc-body p, .doc-body li { font-size: 16px; }
  .tldr { padding: 20px 18px; }
}
