/* The redesigned UI, shared by every page. Loaded on top of site.css.
   Hairline rails down both sides of the content, sections that sit flush
   against each other, two-tone statements, and product UI cut off at the
   edges so the page feels full. Dark sections re-map the color tokens so
   every rule below works in both. Page-only sections live in their own
   stylesheet (home.css). */


.v2 { --tick: var(--line); --serif: "Instrument Serif", Georgia, "Times New Roman", serif; --accent: var(--ink-2); }
.v2-dark {
  background: var(--dark); color: #fff;
  --line: var(--dark-line); --muted: var(--dark-muted); --ink: #fff;
  --panel: var(--dark-card); --tick: rgba(255, 255, 255, 0.06); --accent: #d4d4d8;
}
.v2-glow { position: relative; }
.v2-glow > .wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%);
}

/* Sections and rails */
.v2s { position: relative; }
.v2s + .v2s { border-top: 1px solid var(--line); }
.v2s > .wrap { padding-block: 0; }
@media (min-width: 900px) { .v2s > .wrap { border-inline: 1px solid var(--line); } }
.v2 .browser { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.25); }
.v2-dark .browser { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }

/* Dot grid: a band of fine dots at the foot of a section, under the bleeds */
.v2-ticks > .wrap { position: relative; }
.v2-ticks > .wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 18px 18px; background-position: 0 bottom;
  -webkit-mask-image: linear-gradient(transparent 50%, #000); mask-image: linear-gradient(transparent 50%, #000);
}
.v2-ticks > .wrap > * { position: relative; z-index: 1; }

/* Type */
.v2-display { font: 500 clamp(40px, 6vw, 76px)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.v2-h2 { font: 500 clamp(28px, 3.4vw, 42px)/1.15 var(--display); letter-spacing: -0.03em; max-width: 26ch; text-wrap: balance; }
.v2-h2--sm { font-size: clamp(26px, 2.8vw, 34px); }
.v2-display span, .v2-h2 span, .v2-state span {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; letter-spacing: -0.01em; color: var(--accent);
}
.v2-display--sm { font-size: clamp(36px, 4.6vw, 60px); }
.v2-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-state { font: 500 clamp(19px, 1.9vw, 25px)/1.35 var(--display); letter-spacing: -0.02em; max-width: 36ch; text-wrap: pretty; }
.v2-sub { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--muted); max-width: 44em; text-wrap: pretty; }

/* A rule under the nav, edge to edge, from the top of the page, in the same color as the page lines */
.header, .header.is-scrolled { border-bottom-color: var(--line); }

.v2-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: clamp(56px, 7vw, 96px); }
.v2-head .btn { margin-top: 4px; }
.v2-head--center { align-items: center; text-align: center; }
.v2-head--center .v2-h2 { margin-inline: auto; }
.v2-head--center .v2-sub { margin-inline: auto; }
.v2-intro { padding-block: clamp(72px, 10vw, 128px); gap: 24px; }
.v2-intro .v2-display { max-width: 18ch; }
.v2-intro .actions { justify-content: center; margin-top: 8px; }
.v2-intro .crumbs { margin-bottom: 8px; }
.v2-intro .badge { margin: 0; }

/* ---------- Panels and paired cells ---------- */

.v2-panel { padding: clamp(28px, 4vw, 56px) var(--gutter); background: var(--panel); border-block: 1px solid var(--line); }
.v2-panel .browser { max-width: 900px; margin-inline: auto; }
/* The whole phone: the keypad and Give button are the point, and they sit at the bottom */
.v2-panel--phone { display: flex; justify-content: center; align-items: flex-start; }
.v2-panel--phone .phone { --phone-w: clamp(240px, 24vw, 290px); flex-shrink: 0; box-shadow: var(--shadow-3), inset 0 0 0 1.5px #2a2a2a; }

.v2-pair { display: grid; }
@media (min-width: 760px) { .v2-pair { grid-template-columns: 1fr 1fr; } }
.v2-mini { display: flex; flex-direction: column; padding: 36px var(--gutter) 0; overflow: hidden; }
.v2-mini + .v2-mini { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .v2-mini + .v2-mini { border-top: 0; border-left: 1px solid var(--line); } }
.v2-mini h3 { font: 600 17px/1.3 var(--display); letter-spacing: -0.015em; }
.v2-mini p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 32em; }
/* The 2px inset keeps the 1px outlines on cards inside from being clipped at the sides */
.v2-mini__viz {
  margin-top: 32px; max-height: 300px; overflow: hidden; padding: 2px 2px 0;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.v2-mini__viz > * { max-width: 460px; margin-inline: auto; }
/* Phones: no fade, just the top of the phone above the cell's bottom line */
.v2-mini__viz--phone {
  display: flex; justify-content: center; align-items: flex-start; margin-top: auto; padding-top: 32px;
  height: 300px; max-height: none; -webkit-mask-image: none; mask-image: none;
}
.v2-mini__viz--phone .phone { --phone-w: clamp(200px, 20vw, 240px); flex-shrink: 0; box-shadow: var(--shadow-2), inset 0 0 0 1.5px #2a2a2a; }
.v2-mini__viz .lockscreen { padding-top: 28px; }
.v2-mini__viz .countdown { text-align: left; }
.v2-mini__viz .countdown__units { justify-content: flex-start; }
.v2-mini__viz .stats { grid-template-columns: repeat(2, 1fr); }

.v2-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.v2-list li:last-child { border-bottom: 1px solid var(--line); }
.v2-list svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Bleeds: product UI cut off at the section's foot ---------- */

.v2-bleed { max-height: clamp(220px, 40vw, 520px); overflow: hidden; padding: 0 clamp(0px, 5vw, 72px); }
.v2-bleed .browser { border-radius: 12px 12px 0 0; }

/* ---------- Icon row: a grid of short points ---------- */

.v2-five { display: grid; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 640px) { .v2-five { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .v2-five { grid-template-columns: repeat(5, 1fr); } }
.v2-five li { padding: 36px var(--gutter) 36px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .v2-five li:nth-child(-n + 2) { border-top: 0; } .v2-five li:nth-child(2n) { border-left: 1px solid var(--line); } }
@media (min-width: 1000px) { .v2-five li { border-top: 0; } .v2-five li + li { border-left: 1px solid var(--line); } }
.v2-five svg { width: 22px; height: 22px; color: var(--dark-muted); }
.v2-five h3 { font: 600 16px/1.3 var(--display); margin-top: 20px; }
@media (min-width: 1000px) { .v2-five h3 { margin-top: 44px; } }
.v2-five p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Split: a heading cell beside a list of linked rows ---------- */

.v2-split { display: grid; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 900px) { .v2-split { grid-template-columns: 2fr 3fr; } }
.v2-split__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(48px, 6vw, 88px) var(--gutter) 32px; }
@media (min-width: 900px) {
  .v2-split__head { padding-bottom: clamp(48px, 6vw, 88px); }
  .v2-split__head > :first-child { position: sticky; top: 120px; }
  .v2-split__body { border-left: 1px solid var(--line); }
  .v2-rows { border-left: 1px solid var(--line); }
}
.v2-rows li + li { border-top: 1px solid var(--line); }
@media (max-width: 899px) { .v2-rows, .v2-split__body { border-top: 1px solid var(--line); } }
.v2-rows a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 20px;
  padding: 28px var(--gutter); color: inherit; text-decoration: none;
  transition: background-color 150ms var(--ease);
}
.v2-rows a:hover { background: var(--panel); }
.v2-rows a > svg { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.v2-rows a > svg:last-child { width: 16px; height: 16px; margin-top: 4px; transition: transform 150ms var(--ease), color 150ms var(--ease); }
.v2-rows a:hover > svg:last-child { color: var(--ink); transform: translateX(3px); }
.v2-rows b { display: block; font: 600 17px/1.3 var(--display); letter-spacing: -0.015em; }
/* Rows without a leading icon */
.v2-rows--plain a { grid-template-columns: 1fr auto; }
.v2-rows__copy > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 36em; }

/* A panel that sits flush at the foot of a section, under its heading */
.v2-panel--flush { margin-inline: calc(var(--gutter) * -1); border-bottom: 0; }
.v2-split .v2-panel { border-block: 0; display: grid; place-items: center; }
.v2-visual { max-width: 560px; margin-inline: auto; }

/* ---------- Cells: a hairline grid of short points ---------- */

/* Each cell draws its own left and bottom line; the outer edges are clipped so
   only the lines between cells show, however many there are in the last row. */
.v2-cells {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin-inline: calc(var(--gutter) * -1); border-top: 1px solid var(--line); overflow: hidden;
}
.v2-cells--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-top: 0; }
.v2-cells li { padding: 32px var(--gutter) 40px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 -1px -1px; }
.v2-cells--wide li { padding-block: clamp(40px, 5vw, 64px); }
.v2-cells h3 { font: 600 17px/1.3 var(--display); letter-spacing: -0.015em; }
.v2-cells p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.v2-note { border-radius: 0; margin-block: 0; padding-block: 28px; border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

/* Cells that link somewhere: the whole cell is the target */
.v2-cells--links li { padding: 0; }
.v2-cells--links a { display: block; height: 100%; padding: 28px var(--gutter) 36px; color: inherit; text-decoration: none; transition: background-color 150ms var(--ease); }
.v2-cells--links a:hover { background: var(--panel); }
.v2-cells--links svg { width: 20px; height: 20px; color: var(--muted); }
.v2-cells--links h3 { margin-top: 20px; }

/* ---------- Steps: a numbered heading beside the product ---------- */

.v2-kicker { margin-bottom: 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-step__text { margin-top: 16px; }
.v2-step__detail { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 34em; }
@media (min-width: 900px) { .v2-step { grid-template-columns: 2fr 3fr; } .v2-step .v2-split__head { justify-content: center; } }
.v2-step .v2-panel { padding-block: clamp(40px, 5vw, 72px); }
.v2-step .browser { width: 100%; }

/* ---------- Pricing ---------- */

.v2-intro--tight { padding-bottom: 40px; }
.v2-intro--full { min-height: 60vh; justify-content: center; }
.v2-pricing { display: grid; justify-items: center; }
.v2-toggle { display: inline-flex; padding: 4px; margin-bottom: clamp(40px, 5vw, 56px); border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.v2-toggle button { border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; transition: color 150ms var(--ease); }
.v2-toggle button:hover { color: var(--ink); }
.v2-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.v2-toggle small { font-size: 12px; opacity: 0.7; margin-left: 4px; }

.v2-plans { display: grid; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .v2-plans { grid-template-columns: repeat(3, 1fr); } }
.v2-plan { display: flex; flex-direction: column; padding: clamp(32px, 3.4vw, 48px) var(--gutter); }
.v2-plan + .v2-plan { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .v2-plan + .v2-plan { border-top: 0; border-left: 1px solid var(--line); } }
.v2-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.v2-plan__top h2 { font: 600 17px/1.3 var(--display); letter-spacing: -0.015em; }
.v2-plan__badge { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.v2-plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.v2-plan__price b { font: 500 clamp(48px, 5vw, 64px)/1 var(--display); letter-spacing: -0.045em; }
.v2-plan__price span, .v2-plan__note { color: var(--muted); }
.v2-plan__note { margin-top: 10px; font-size: 13px; line-height: 1.5; min-height: 3em; }
.v2-plan__summary { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (min-width: 900px) { .v2-plan__summary { min-height: 4.65em; } }
.v2-plan .btn { margin-top: 28px; justify-content: center; }
.v2-checks { display: grid; gap: 12px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.v2-checks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.v2-checks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ink); }
.v2-checks__all { font-weight: 600; }
.v2-pricing__foot { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 20px var(--gutter); border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Blog ---------- */

/* The newest post: copy beside its screenshot, the whole block one link */
.v2-lead-post { display: grid; margin-inline: calc(var(--gutter) * -1); color: inherit; text-decoration: none; }
@media (min-width: 900px) { .v2-lead-post { grid-template-columns: 1fr 1fr; } }
.v2-lead-post__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: clamp(48px, 6vw, 88px) var(--gutter); }
.v2-lead-post .link-arrow { margin-top: 8px; }
.v2-lead-post:hover .link-arrow svg { transform: translateX(3px); }
.v2-lead-post__art { overflow: hidden; padding: clamp(32px, 4vw, 56px) 0 0 clamp(24px, 4vw, 56px); background: var(--panel); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .v2-lead-post__art { border-top: 0; border-left: 1px solid var(--line); } }
.v2-lead-post__art .browser { width: 140%; border-radius: 12px 0 0 0; }
.v2-cells--links .v2-meta { margin-bottom: 20px; }

/* A post's body: one readable column inside the rails */
.v2-article { max-width: 680px; margin-inline: auto; padding-block: clamp(56px, 7vw, 96px); font-size: 18px; line-height: 1.7; }
.v2-article h2 { font: 500 clamp(24px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -0.025em; margin: 56px 0 16px; }
.v2-article > :first-child { margin-top: 0; }
.v2-article ul { padding-left: 1.2em; }
.v2-article strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */

.v2-contact__list { margin-top: 40px; }
.v2-contact__list li { padding: 20px 0; border-top: 1px solid var(--line); }
.v2-contact__list h2 { font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; }
.v2-contact__list p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.v2-contact__list a { color: var(--ink); font-weight: 500; }
.v2-contact__form { padding: clamp(40px, 5vw, 72px) var(--gutter); background: var(--panel); }
.v2-contact__form .field input, .v2-contact__form .field select, .v2-contact__form .field textarea { background: #fff; }

/* FAQ inside a split: the rows run edge to edge of the cell */
.v2-faq { padding-inline: var(--gutter); }
.v2-faq .faq { border-top: 0; }
.v2-faq .faq details:last-child { border-bottom: 0; }

/* ---------- CTA ---------- */

.v2-cta > .wrap { text-align: center; padding-block: clamp(96px, 12vw, 160px); }
.v2-cta .v2-display { font-size: clamp(40px, 5.4vw, 68px); }
.v2-cta .actions { justify-content: center; margin-top: 32px; }
