/* Inner pages on the v2 system: the shared components, restyled to match the homepage. Load after h3x.css. */

.t-dark, .t-light { background: var(--bg); color: var(--fg); }
.t-light { background: var(--bg-2); }
.t-light .card, .t-light .price { background: var(--bg-3); }

/* page hero with the homepage's emerald light */
.phero { position: relative; padding: calc(var(--nav-h) + clamp(70px, 11vw, 160px)) 0 clamp(70px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.phero::before { content: ""; position: absolute; z-index: -1; width: min(1100px, 120vw); aspect-ratio: 1; right: -18%; top: -55%; border-radius: 50%; background: radial-gradient(circle, rgba(31,224,141,.20), rgba(8,80,60,.08) 38%, transparent 62%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.phero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.08); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.crumbs a { color: var(--mute); } .crumbs a:hover { color: var(--fg); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.kicker--plain::before { display: none; }
.display { font-weight: 500; font-size: clamp(3rem, 7.6vw, 8.4rem); line-height: .9; letter-spacing: -.058em; max-width: 14em; }
.display--long { font-size: clamp(2.5rem, 5.6vw, 6rem); line-height: .94; letter-spacing: -.05em; max-width: 17em; }
.display--close { font-size: clamp(2.4rem, 5.4vw, 5.8rem); }
.display em, .h2 em, .h3 em, .drawer em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.h2 { font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.8rem); line-height: .96; letter-spacing: -.05em; }
.h3 { font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1.05; letter-spacing: -.035em; }
.h4 { font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.phero .lede { margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.phero .actions { margin-top: 38px; }
.lnk .arr, .btn .arr { display: inline-block; }
.tick-inline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.tick-inline span { display: inline-flex; align-items: center; gap: 10px; }
.tick-inline span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tick-inline:empty { display: none; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: clamp(52px, 6vw, 84px) 0 0; border-top: 1px solid var(--line); }
.phero-meta > div { padding: 22px 34px 0 0; margin-right: 34px; display: grid; gap: 8px; }
.phero-meta > div + div { padding-left: 34px; border-left: 1px solid var(--line); margin-right: 0; }
.phero-meta dt { font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.phero-meta dd { margin: 0; font-weight: 500; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.04em; }
@media (max-width: 640px) { .phero-meta > div, .phero-meta > div + div { padding: 18px 0; margin: 0; border-left: 0; width: 100%; border-bottom: 1px solid var(--line); } }

.sec--tight { padding-block: clamp(64px, 8vw, 110px); }
.rule-top { border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: clamp(44px, 6vw, 84px); }
.head .lede { margin-top: 22px; }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; } }
.split2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.split2 > .stick { position: sticky; top: calc(var(--nav-h) + 36px); }
.split2 .lede { margin-top: 24px; }
.split2 .actions { margin-top: 30px; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; } .split2 > .stick { position: static; } }

/* numbered rows */
.rows > li { display: grid; grid-template-columns: 60px 1fr; gap: 6px 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows .n { font: 500 12px/1 var(--mono); color: var(--green); padding-top: 10px; }
.rows h3 { font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.1; letter-spacing: -.035em; }
.rows p { grid-column: 2; margin-top: 8px; color: var(--mute); max-width: 34em; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg-2); border-radius: 22px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; transition: background-color .35s, transform .6s var(--ease); }
.card .n { font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.card h3 { font-weight: 500; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.08; letter-spacing: -.035em; }
.card p { margin: 0; color: var(--mute); font-size: 15.5px; }
.card ul { display: grid; gap: 8px; margin-top: 6px; }
.card ul li { position: relative; padding-left: 20px; color: var(--mute); font-size: 15px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
a.card:hover { background: var(--bg-3); transform: translateY(-4px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* old process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.step { background: var(--bg-2); border-radius: 22px; padding: clamp(26px, 3vw, 38px); }
.t-light .step { background: var(--bg-3); }
.step .n { font: 500 clamp(2.6rem, 4vw, 4rem)/.8 var(--sans); letter-spacing: -.06em; color: var(--green); font-style: normal; }
.step h3 { margin: 40px 0 12px; }
.step p { color: var(--mute); margin: 0; }
.step .when { margin-top: 18px; font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.drawn::after { display: none; }

/* product proof figure */
.figproof { margin-top: clamp(56px, 8vw, 110px); }
.figproof figure, figure.figproof { margin-left: 0; margin-right: 0; }
.frame { border-radius: 16px; overflow: hidden; background: var(--bg-3); box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.frame img { width: 100%; }
.figproof figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 16px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }

/* closing call to action: the green moment */
.close { background: var(--green); color: var(--green-ink); text-align: center; --mute: rgba(4,20,12,.72); --faint: rgba(4,20,12,.5); --line: rgba(4,20,12,.15); }
.close .display { margin-inline: auto; }
.close .lede { margin: 26px auto 0; color: var(--mute); }
.close .actions { justify-content: center; margin-top: 36px; }
.close .btn { background: var(--green-ink); color: var(--green); }
.close .btn .ar { background: var(--green); color: var(--green-ink); }
.close .lnk { color: var(--green-ink); }
.close .kicker { color: var(--mute); }
.close .kicker::before { background: var(--green-ink); box-shadow: none; }

/* related links */
.rel { border-top: 1px solid var(--line); }
.rel li a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.035em; transition: padding .5s var(--ease), color .3s; }
.rel li a:hover { padding-left: 10px; color: var(--green); }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 22px 20px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.compare thead th { border-top: 0; font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.compare tbody th { font-weight: 500; width: 26%; }
.compare td { color: var(--mute); }
.compare tr:last-child > * { border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th { color: var(--green); }
@media (max-width: 700px) { .compare { min-width: 620px; } }

/* prose */
.prose { max-width: 46rem; font-size: 17px; }
.prose h2 { font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-weight: 500; font-size: 1.12rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--mute); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose .tldr { background: var(--bg-3); border-radius: 18px; padding: 26px 28px; margin-bottom: 2em; }
.prose .tldr p { margin: 0; color: var(--fg); }
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); }
.toc { position: sticky; top: calc(var(--nav-h) + 36px); align-self: start; display: grid; gap: 12px; }
.toc a { color: var(--faint); font-size: 14px; transition: color .2s; }
.toc a:hover { color: var(--fg); }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }

/* forms */
.book .split2 { align-items: start; }
.form-wrap { background: var(--bg-2); border-radius: 24px; padding: clamp(26px, 3.4vw, 48px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: grid; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { padding: 0; font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.field .opt { color: var(--faint); }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg-3); border: 1px solid transparent; border-radius: 14px; padding: 15px 16px; transition: border-color .25s, background-color .25s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); background: var(--bg-4); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%231fe08d' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; }
.select option { color: #111; background: #fff; }
fieldset.field { border: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.checks label { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; font: 400 15px/1 var(--sans); color: var(--fg); }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 99px; background: var(--bg-3); transition: background-color .25s, color .25s; }
.checks input:checked + span { background: var(--green); color: var(--green-ink); }
.checks input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.form .submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form .submit p { margin: 0; color: var(--faint); font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.aside-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--mute); }
.aside-list li strong { display: block; color: var(--fg); font-weight: 500; margin-bottom: 4px; }
.note { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* work page */
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(46px, 6vw, 90px) clamp(18px, 2.4vw, 34px); }
.wcard > a:first-child { display: block; border-radius: 16px; }
.wcard .screen { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--bg-3); transition: transform .9s var(--ease); }
.wcard .screen > img, .wcard .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.wcard .screen > .is-hidden { opacity: 0; }
.wcard:hover .screen { transform: scale(.985); }
.wcard--wide { grid-column: 1 / -1; }
.wcard--wide .screen { aspect-ratio: 16 / 8; }
.wcard .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.wcard h3 { font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.045em; }
.wcard .tag { font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); text-align: right; }
.wcard p { margin-top: 12px; color: var(--mute); max-width: 36em; font-size: 15.5px; }
.wcard .built { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wcard .built li { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); background: var(--bg-2); padding: 9px 12px; border-radius: 99px; }
.wcard .lnk { margin-top: 6px; color: var(--mute); }
@media (max-width: 800px) { .wgrid { grid-template-columns: 1fr; } .wcard--wide .screen { aspect-ratio: 16 / 10; } .wcard .meta { flex-direction: column; gap: 8px; } .wcard .tag { text-align: left; } }

/* app strip (about) */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.apps .app { background: var(--bg-2); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; transition: background-color .3s, transform .6s var(--ease); }
.apps .app:hover { background: var(--bg-3); transform: translateY(-4px); }
.apps .app .ic { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; background: #000; }
.apps .app .ic--light { background: #fff; } .apps .app .ic--pad { object-fit: contain; padding: 6px; }
.apps .app h3 { font-weight: 500; font-size: 1.7rem; letter-spacing: -.045em; margin-top: 10px; }
.apps .app p { color: var(--mute); font-size: 15px; margin: 0; }
.apps .app .st { margin-top: auto; display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
@media (max-width: 1000px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }

/* apps page */
.appx { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: center; padding: clamp(60px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.appx .txt .ic { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; background: #000; margin-bottom: 30px; }
.appx .txt .ic--light { background: #fff; } .appx .txt .ic--pad { object-fit: contain; padding: 8px; }
.appx .kicker { margin-bottom: 16px; }
.appx .lede { margin-top: 20px; }
.appx .ticks { margin-top: 26px; display: grid; }
.appx .ticks li { padding: 13px 0 13px 24px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.appx .ticks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.appx .price-line { margin-top: 22px; font: 400 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.appx .actions { margin-top: 28px; }
.appx .vis { background: radial-gradient(circle at 50% 60%, rgba(31,224,141,.16), transparent 60%), var(--bg-2); border-radius: 26px; aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 7% 6%; overflow: hidden; }
.appx .vis .ph { height: 100%; width: auto; max-width: 46%; object-fit: contain; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); transition: transform .9s var(--ease); }
.appx .vis .ph:nth-child(2) { transform: translateY(6%); }
.appx:hover .vis .ph { transform: translateY(-3%); }
.appx:hover .vis .ph:nth-child(2) { transform: translateY(3%); }
.appx .vis--wide { padding: 0; aspect-ratio: auto; background: transparent; border-radius: 16px; box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.appx .vis--wide img { width: 100%; }
.appx:nth-of-type(even) .vis { order: -1; }
@media (max-width: 900px) { .appx { grid-template-columns: 1fr; } .appx:nth-of-type(even) .vis { order: 0; } }

/* blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 99px; background: var(--bg-3); font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); transition: background-color .25s, color .25s; }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }
.post-groups { display: grid; gap: clamp(70px, 9vw, 120px); }
.post-group .lnk { margin-top: 12px; }
.posts { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post h3 { font-weight: 500; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.03em; transition: color .3s; }
.post .tag { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); white-space: nowrap; }
.post p { grid-column: 1 / -1; color: var(--mute); font-size: 15px; }
.post:hover h3 { color: var(--green); }

.big-404 { font-weight: 500; font-size: clamp(8rem, 30vw, 24rem); line-height: .78; letter-spacing: -.08em; color: var(--green); margin-bottom: 20px; }
.mt-0 { margin-top: 0 !important; }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.price-note { margin-top: 22px; color: var(--faint); font-size: 14px; }

/* ---------- Type v2.1 ---------- */
.display, .h2, .h3, .rows h3, .card h3, .wcard h3, .rel li a, .phero-meta dd, .post h3, .big-404, .prose h2, .apps .app h3, .step .n { font-family: var(--display); font-weight: 700; }
.display { letter-spacing: -.045em; }
.display--long { letter-spacing: -.04em; }
.h2 { letter-spacing: -.04em; }
.h3, .rows h3, .card h3, .wcard h3 { letter-spacing: -.03em; }
.phero::after { display: none; }

/* ---------- v2.2: calmer type ---------- */
.display, .h2, .h3, .rows h3, .card h3, .wcard h3, .rel li a, .phero-meta dd, .apps .app h3 { font-weight: 500; }
.display { font-size: clamp(2.5rem, 5.4vw, 5.8rem); letter-spacing: -.035em; }
.display--long { font-size: clamp(2.1rem, 4vw, 4.3rem); letter-spacing: -.03em; }
.display--close { font-size: clamp(2rem, 3.8vw, 4rem); }
.h2 { font-size: clamp(1.8rem, 3.2vw, 3.3rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); letter-spacing: -.02em; }
.rows h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
.card h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); }
.wcard h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.03em; }
.rel li a { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.phero-meta dd { font-size: clamp(1.2rem, 1.6vw, 1.6rem); }
.phero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) 0 clamp(56px, 7vw, 96px); }
.big-404 { font-size: clamp(7rem, 22vw, 17rem); }
