/* InvoiceDesk website. Design notes: DESIGN.md */
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Mono'; src: url('fonts/mono-400-normal.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  --ground: #F3F4EF;
  --ink: #0F1E1C;
  --muted: #55635E;
  --line: #CCD4CF;
  --accent: #0F766E;
  --curtain: #0F2421;
  --on-curtain: #E6EEEB;
  --on-curtain-muted: #9FB3AD;
  --signal: #C2410C;

  --sans: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --side: clamp(16px, 4vw, 56px);
  --gutter: 24px;
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --fs-display: clamp(56px, 7.4vw, 116px);
  --fs-h1: clamp(40px, 6.4vw, 96px);
  --fs-h2: clamp(32px, 4.4vw, 64px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-small: 13px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'tnum' 0;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
code { font: 400 .88em/1 var(--mono); background: rgba(15, 118, 110, .09); padding: .18em .4em; border-radius: 3px; }
em { font-style: normal; font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--radius); transform: translateY(-150%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#main:focus { outline: none; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  max-width: calc(var(--max) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side);
}
.label { font: 400 var(--fs-small)/1.3 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.sub { color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }

/* ---------- frame (fixed, steps aside on scroll down) ---------- */
.frame {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--side); background: rgba(243, 244, 239, .97);
  border-bottom: 1px solid transparent; transition: border-color .3s, translate .5s var(--ease);
}
.frame.is-scrolled { border-bottom-color: var(--line); }
.frame.is-hidden { translate: 0 -100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
.ul { position: relative; text-decoration: none; padding: 4px 0; }
.ul::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
@media (hover: hover) { .ul:hover::after { transform: scaleX(1); transform-origin: left; } }
.ul:focus-visible::after { transform: scaleX(1); }

/* ---------- buttons: an ink fill wipes in from the pointer's side ---------- */
.btn {
  position: relative; isolation: isolate; overflow: clip; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: var(--radius); background: var(--accent); color: #fff;
  font: 600 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: color .3s, transform .2s;
}
.btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(0 100% 0 0); }
.btn:active { transform: scale(.97); }
.btn:active .btn__fill { clip-path: inset(0); }
.btn--sm { padding: 11px 16px; font-size: 14.5px; }
.btn--light { background: var(--on-curtain); color: var(--curtain); }
.btn--light .btn__fill { background: var(--accent); }
.btn--light.is-filled, .btn--light:active { color: #fff; }
.arrow { display: inline-block; transition: translate .35s var(--ease); }
@media (hover: hover) { .btn:hover .arrow { translate: 5px 0; } }
.btn:focus-visible .btn__fill { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) and (hover: hover) { .btn:hover .btn__fill { clip-path: inset(0); } }

.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-thickness .2s, text-underline-offset .3s var(--ease); }
@media (hover: hover) { .link:hover { text-decoration-thickness: 3px; text-underline-offset: 3px; } }
.inline { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .inline:hover { text-decoration-thickness: 2.5px; } }

/* ---------- hero: copy on the left, the real editor and the finished PDF on the right ---------- */
.hero { padding-top: 120px; padding-bottom: 64px; row-gap: 40px; align-items: center; }
.hero__text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 26px; }
.hero__eyebrow { color: var(--accent); }
.hero__title { font-size: clamp(44px, 5.6vw, 88px); line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.hero__lede { font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 4px; }
.hero__stage { grid-column: 7 / -1; position: relative; margin-right: calc(-1 * var(--side)); padding-bottom: 12%; }
.hero__shot { margin: 0; }
.hero__shot img { width: 100%; aspect-ratio: 2040 / 1275; object-fit: cover; object-position: left top; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.hero__paper { position: absolute; left: -9%; bottom: 0; width: 46%; margin: 0; }
.hero__paper img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: 0 32px 64px -28px rgba(15, 36, 33, .45); }
.facts { grid-column: 1 / -1; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts div { padding: 16px 0 18px; display: flex; flex-direction: column; gap: 6px; }
.facts div + div { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.facts dt { font: 400 var(--fs-small)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.facts dd { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.facts div:first-child dd { font-family: var(--mono); font-weight: 500; color: var(--accent); letter-spacing: -.04em; }

/* ---------- how it works ---------- */
.how { padding-top: 90px; padding-bottom: 20px; row-gap: 40px; }
.how__title { grid-column: 1 / -1; font-size: var(--fs-h2); letter-spacing: -.04em; }
.how__steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.how__steps li { padding-top: 18px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.steps__n { font: 400 var(--fs-small)/1 var(--mono); color: var(--muted); }
.how__steps h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
.how__steps p { color: var(--muted); max-width: 40ch; }


/* ---------- line items ---------- */
.lines { padding-top: 110px; padding-bottom: 120px; position: relative; }
.lines__head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: 40px; row-gap: 16px; }
.lines__head h2 { grid-column: 1 / 9; font-size: var(--fs-h2); letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.lines__head .sub { grid-column: 9 / -1; }
.table { grid-column: 1 / -1; }
.rows { list-style: none; margin: 0; padding: 0; }
.tr { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) 120px; column-gap: var(--gutter); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.th { padding: 10px 0; border-bottom: 2px solid var(--ink); font: 400 var(--fs-small)/1.3 var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.c-n { font: 400 var(--fs-small)/1.3 var(--mono); color: var(--muted); }
.c-item { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.c-detail { color: var(--muted); max-width: 58ch; }
.th .c-detail { color: var(--muted); }
.c-num { text-align: right; font: 500 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.rows .tr { cursor: default; transition: background-color .3s; }
.rows .tr::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--side)); background: var(--accent); opacity: 0; transform: scaleY(.3); transition: opacity .35s, transform .45s var(--ease); z-index: -1; }
@media (hover: hover) {
  .rows .tr:hover::before { opacity: .07; transform: none; }
  .rows .tr:hover .c-num { color: var(--accent); }
}
.tfoot { position: sticky; bottom: 0; z-index: 3; background: var(--ground); border-top: 2px solid var(--ink); border-bottom: 0; padding: 16px 0 18px; margin-top: -1px; }
.tfoot .c-item { font-size: 18px; font-weight: 500; }
.tfoot b { font: 500 22px/1 var(--mono); color: var(--ink); }
.tfoot .c-num b { color: var(--accent); font-size: 24px; }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: min(440px, 34vw); margin: 0; pointer-events: none; opacity: 0; visibility: hidden; }
.peek img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(15, 36, 33, .45); }
.peek.is-tall { width: min(220px, 17vw); }
.thumb { display: none; }

/* ---------- data (dark band) ---------- */
.data { background: var(--curtain); color: var(--on-curtain); padding: 130px 0 140px; }
.data__title { grid-column: 1 / 11; font-size: var(--fs-h1); letter-spacing: -.038em; line-height: .96; text-wrap: balance; }
.data__lede { grid-column: 1 / 6; margin-top: 56px; color: var(--on-curtain-muted); font-size: 19px; }

/* ---------- screens ---------- */
.screens { padding-top: 130px; padding-bottom: 110px; row-gap: 32px; align-items: end; }
.screens__title { grid-column: 1 / 9; font-size: var(--fs-h2); letter-spacing: -.04em; margin-bottom: 20px; }
.screens__wide { grid-column: 1 / 10; grid-row: 2; margin: 0; }
.screens__phone { grid-column: 9 / 13; grid-row: 2; margin: 0 0 -60px; z-index: 2; justify-self: end; width: min(100%, 290px); }
.screens__wide img, .screens__phone img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.screens__phone img { border-radius: 18px; border: 6px solid var(--ink); box-shadow: 0 30px 60px -28px rgba(15, 36, 33, .5); }
.screens figcaption { margin-top: 12px; }
.screens__note { grid-column: 1 / 7; grid-row: 3; color: var(--muted); margin-top: 24px; max-width: 52ch; }

.data__list { grid-column: 7 / -1; margin: 56px 0 0; padding: 0; list-style: none; }
.data__list li { padding: 16px 0; border-bottom: 1px solid rgba(230, 238, 235, .16); color: var(--on-curtain-muted); }
.data__list b { color: #fff; font-weight: 600; }

/* ---------- kinds of invoice (internal links) ---------- */
.kinds { padding-top: 120px; padding-bottom: 40px; row-gap: 36px; }
.kinds__head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; row-gap: 16px; }
.kinds__head h2 { grid-column: 1 / 9; font-size: var(--fs-h2); letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.kinds__head .sub { grid-column: 9 / -1; }
.kinds__list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.kinds__list li { position: relative; isolation: isolate; }
.kinds__list a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 40px; gap: var(--gutter); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.kinds__list a::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--side)); background: var(--accent); opacity: 0; z-index: -1; transition: opacity .35s; }
.kinds__name { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.kinds__desc { color: var(--muted); }
.kinds__go { justify-self: end; font-size: 22px; transition: translate .35s var(--ease), color .3s; }
@media (hover: hover) { .kinds__list a:hover::before { opacity: .07; } .kinds__list a:hover .kinds__go { translate: 6px 0; color: var(--accent); } }

/* ---------- FAQ ---------- */
.faq { padding-top: 110px; padding-bottom: 100px; row-gap: 32px; }
.faq__title { grid-column: 1 / 5; font-size: var(--fs-h2); letter-spacing: -.04em; line-height: .98; align-self: start; }
.faq__list { grid-column: 6 / -1; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 24px/1 var(--mono); color: var(--accent); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq__a em, .prose em { color: var(--ink); }

/* ---------- own copy ---------- */
.own { padding-top: 70px; padding-bottom: 120px; border-top: 1px solid var(--line); row-gap: 18px; align-items: baseline; }
.own__title { grid-column: 1 / 7; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.own__text { grid-column: 7 / 11; color: var(--muted); }
.own__link { grid-column: 11 / -1; justify-self: end; }

/* ---------- inner pages ---------- */
.phero { padding-top: 116px; padding-bottom: 56px; row-gap: 24px; align-items: start; }
.crumbs { grid-column: 1 / -1; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 400 var(--fs-small)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { text-decoration: none; display: inline-block; padding: 6px 0; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.phero__title { grid-column: 1 / 7; font-size: clamp(40px, 5.2vw, 80px); line-height: .96; letter-spacing: -.04em; text-wrap: balance; }
.phero__lede { grid-column: 1 / 7; font-size: 19px; color: var(--muted); max-width: 48ch; }
.phero__actions { grid-column: 1 / 7; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.phero__note { color: var(--muted); font-size: 15px; grid-column: 1 / 8; }
.phero__shot { grid-column: 8 / -1; grid-row: 2 / span 4; margin: 0; }
.phero__shot img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 30px 60px -32px rgba(15, 36, 33, .4); }
.phero__shot figcaption { margin-top: 10px; }
.phero--post .phero__title, .phero--post .phero__lede { grid-column: 1 / 10; }
.postmeta { grid-column: 1 / -1; }

.pbody { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); align-items: start; }
.prose { grid-column: 1 / 8; padding-top: 24px; font-size: 17.5px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin-top: 52px; }
.prose h2:first-child { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose ol.numbered { list-style: none; padding: 0; counter-reset: n; }
.prose ol.numbered > li { counter-increment: n; position: relative; padding: 14px 0 14px 48px; border-top: 1px solid var(--line); margin: 0; }
.prose ol.numbered > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: 400 var(--fs-small)/1 var(--mono); color: var(--accent); }
.prose ul.checks { list-style: none; padding: 0; }
.prose ul.checks li { padding-left: 30px; position: relative; }
.prose ul.checks li::before { content: ''; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }
.prose pre { margin: 18px 0 0; padding: 18px 20px; background: var(--curtain); color: var(--on-curtain); border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font: inherit; font-family: var(--mono); color: inherit; }
.prose .btn { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose thead th { font: 400 var(--fs-small)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.prose tbody th { font-weight: 600; width: 30%; }
.small { font-size: 14.5px; color: var(--muted); }
.cta-box { margin-top: 48px !important; padding: 28px; background: var(--curtain); color: var(--on-curtain); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-box__line { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; max-width: 30ch; }
.cta-box .btn { margin: 0; background: var(--on-curtain); color: var(--curtain); }
.cta-box .btn .btn__fill { background: var(--accent); }
.cta-box .btn.is-filled { color: #fff; }

.side { grid-column: 9 / -1; position: sticky; top: 90px; padding-top: 24px; display: flex; flex-direction: column; gap: 28px; }
.side__box { padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: #fff; }
.side__line { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.side__more ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.side__more a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
@media (hover: hover) { .side__more a:hover { color: var(--accent); } }

.postlist { padding-top: 10px; padding-bottom: 110px; }
.postlist ol { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.postlist a { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr) 110px; gap: var(--gutter); align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.postlist__t { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.postlist__d { color: var(--muted); }
.postlist .label { text-align: right; }
@media (hover: hover) { .postlist a:hover .postlist__t { color: var(--accent); } }

/* ---------- footer ---------- */
.foot { background: var(--curtain); color: var(--on-curtain); padding: 96px 0 36px; }
.foot .label { color: var(--on-curtain-muted); }
.foot__cta { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 72px; border-bottom: 1px solid rgba(230, 238, 235, .16); }
.foot__line { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.04em; line-height: .98; max-width: 16ch; color: #fff; }
.foot__brand { grid-column: 1 / 5; margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.foot__brand p { color: var(--on-curtain-muted); max-width: 36ch; font-size: 15.5px; }
.foot__col { margin-top: 56px; }
.foot__col:nth-of-type(1) { grid-column: 6 / 9; }
.foot__col:nth-of-type(2) { grid-column: 9 / 11; }
.foot__col:nth-of-type(3) { grid-column: 11 / -1; }
.foot__col ul { list-style: none; margin: 14px 0 0; padding: 0; }
.foot__col a, .foot__brand .logo { text-decoration: none; }
.foot__col a { display: inline-block; padding: 7px 0; color: var(--on-curtain); font-size: 15px; transition: color .2s; }
@media (hover: hover) { .foot__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; } }
.foot__base { grid-column: 1 / -1; margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(230, 238, 235, .16); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font: 400 12.5px/1.5 var(--mono); color: var(--on-curtain-muted); }


/* ---------- reveal start states (only with JS and motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal], html.js [data-split] { visibility: hidden; }
  html.js .rows .tr { visibility: hidden; }
}
.split-line { padding-bottom: .06em; }

/* ---------- phone and tablet ---------- */
@media (max-width: 1000px) {
  .hero__text, .hero__stage { grid-column: 1 / -1; }
  .hero__stage { margin-top: 8px; }
  .hero__paper { left: auto; right: calc(var(--side) + 2%); width: 40%; }
  .lines__head h2, .lines__head .sub, .kinds__head h2, .kinds__head .sub, .data__title, .data__lede, .data__list, .screens__title, .screens__note { grid-column: 1 / -1; }
  .data__list { margin-top: 32px; }
  .screens__wide { grid-column: 1 / -1; }
  .screens__phone { grid-column: 6 / -1; grid-row: 3; margin: -90px 0 0; width: min(100%, 240px); }
  .screens__note { grid-row: 4; }
  .faq__title, .faq__list { grid-column: 1 / -1; }
  .own__title, .own__text, .own__link { grid-column: 1 / -1; justify-self: start; }
  .phero__title, .phero__lede, .phero__actions, .phero__note, .phero--post .phero__title, .phero--post .phero__lede { grid-column: 1 / -1; }
  .phero__shot { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }
  .prose, .side { grid-column: 1 / -1; }
  .side { position: static; padding-top: 40px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__col:nth-of-type(1), .foot__col:nth-of-type(2) { grid-column: span 6; margin-top: 40px; }
  .foot__col:nth-of-type(3) { grid-column: 1 / -1; margin-top: 40px; }
}
@media (max-width: 720px) {
  :root { --fs-body: 16.5px; }
  .nav { display: none; }
  .frame { gap: 12px; justify-content: space-between; }
  .hero { padding-top: 100px; row-gap: 28px; }
  .hero__text { gap: 20px; }
  .hero__lede, .phero__lede { font-size: 17.5px; }
  .hero__stage { padding-bottom: 22%; }
  .hero__paper { width: 52%; right: var(--side); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .how__steps { grid-template-columns: 1fr; row-gap: 32px; }
  .tr { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 8px; padding: 20px 0; }
  .tr .c-detail { grid-column: 2 / -1; grid-row: 2; }
  .th .c-detail, .tfoot .c-detail { display: none; }
  .c-num { font-size: 16px; }
  .thumb { display: block; grid-column: 2 / -1; grid-row: 3; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
  .thumb.is-tall { width: 45%; aspect-ratio: 9 / 16; }
  .peek { display: none; }
  .data { padding: 96px 0 100px; }
  .kinds__list a { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 6px; }
  .kinds__desc { grid-column: 1; grid-row: 2; }
  .kinds__go { grid-row: 1; grid-column: 2; }
  .postlist a { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .postlist__d, .postlist .label { grid-column: 2; text-align: left; }
  .prose { font-size: 17px; }
  .prose ol.numbered > li { padding-left: 38px; }
  .foot { padding-top: 72px; }
  .foot__col:nth-of-type(n) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

