/* Driff site: the quieter pages (Pricing, Download, Help, Privacy, Log in). On top of
   site.css: plans and their table, the download rows, questions that open, and legal
   reading. Same rules as the rest: hairlines over boxes, colour only where it means
   something, words few and plain. */

.page-head .meta { margin-top: 18px; font-size: 13px; color: var(--ink-4); }
.page-head h1.two { max-width: 13em; margin-inline: auto; }
.section { padding-top: clamp(96px, 16vh, 160px); }
.section > .head + * { margin-top: 56px; }
.section.near { padding-top: clamp(64px, 10vh, 110px); }
.section.nearer { padding-top: clamp(40px, 7vh, 80px); }

/* ---- Pricing ------------------------------------------------------------------- */
.period { display: inline-flex; gap: 2px; margin-top: 36px; padding: 4px; border-radius: 99px; background: rgba(22, 19, 16, .55); box-shadow: inset 0 0 0 1px var(--line-2); }
.period button { height: 36px; padding: 0 18px; border-radius: 99px; font-size: 14px; color: var(--ink-3); transition: background .35s var(--ease), color .35s var(--ease); }
.period button:hover { color: var(--ink); }
.period button[aria-checked="true"] { background: var(--ink); color: #15120f; }
.period button span { margin-left: 6px; font-size: 12px; opacity: .7; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: 80px auto 0; padding: 0 var(--gutter); }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 40px 8px; border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; padding-left: 0; }
.plan .name { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.plan .amt { margin-top: 16px; font-size: clamp(44px, 4.6vw, 60px); font-weight: 400; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .per { margin-top: 10px; font-size: 14px; color: var(--ink-3); min-height: 1.6em; }
.plan .pitch { margin: 18px 0 30px; font-size: 15px; line-height: 1.6; color: var(--ink-3); max-width: 19em; flex: 1; }
.plan .btn { height: 44px; padding: 0 22px; font-size: 14px; }
/* Plus: the plan most people should take, marked by light rather than a box */
.plan.plus { position: relative; isolation: isolate; }
.plan.plus::before { content: ""; position: absolute; inset: -40px -10px -30px; z-index: -1; background: radial-gradient(closest-side, rgba(243, 178, 94, .10), transparent); pointer-events: none; }
.plan .tag { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 450; color: var(--amber); box-shadow: inset 0 0 0 1px rgba(243, 178, 94, .35); vertical-align: 1px; }
@media (max-width: 760px) {
  .period button { height: 40px; }
  .topics a { height: 40px; }
  .plans { grid-template-columns: 1fr; margin-top: 56px; }
  .plan, .plan:first-child { padding: 30px 0; border-left: 0; border-top: 1px solid var(--line); }
  .plan:last-child { border-bottom: 1px solid var(--line); }
  .plan .pitch { margin-bottom: 22px; }
}

.compare { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.compare table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare thead th:first-child { width: 40%; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; color: var(--ink-2); }
.compare thead th { padding-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.compare tbody th { text-align: left; padding-left: 0; color: var(--ink); width: 40%; }
.compare .yes svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.compare .no { color: var(--ink-5); }
.compare .group th { padding-top: 34px; font-size: 13px; color: var(--ink-3); }
.compare .group td, .compare .group th { border-bottom-color: var(--line-2); }
.compare tbody th .soon-tag { margin-left: 8px; }
.table-note { max-width: 1040px; margin: 18px auto 0; padding: 0 var(--gutter); }
@media (max-width: 600px) {
  .compare table { font-size: 13px; }
  /* A long table on a phone: the plan names stay in sight, just under the nav. */
  .compare thead th { position: sticky; z-index: 1; top: calc(66px + env(safe-area-inset-top)); background: var(--bg); box-shadow: 0 1px 0 var(--line-2); }
  .compare th, .compare td { padding: 14px 6px; }
  .compare tbody th { width: 34%; }
}

/* Sync, on stone */
.sync-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.sync-how h2 { text-align: left; font-size: clamp(30px, 3.4vw, 46px); }
.sync-how .sub { margin: 22px 0 0; }
.steps-3 { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps-3 li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.steps-3 li:first-child { border-top: 0; }
.steps-3 li::before { content: "0" counter(s); font-size: 12px; padding-top: 3px; color: var(--ink-4); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .sync-how { grid-template-columns: 1fr; gap: 28px; } }

/* A single fact on its own line, title left and words right */
.aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 40px; max-width: 1040px; margin: 0 auto; padding: 36px var(--gutter); }
.aside > * { border-top: 1px solid var(--line); padding-top: 28px; }
.aside h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.2; }
.aside p { color: var(--ink-3); font-size: 16px; line-height: 1.65; }
.aside p + p { margin-top: 12px; }
@media (max-width: 760px) { .aside { grid-template-columns: 1fr; } .aside > p { border-top: 0; padding-top: 0; } }

/* ---- Questions that open (Help, and Pricing's few) ------------------------------- */
.qs { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.qs details { border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 19px); letter-spacing: -.01em; color: var(--ink); transition: color .25s; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after {
  content: ""; flex: none; width: 12px; height: 12px; transform: translateY(-1px);
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease);
}
.qs details[open] > summary::after { transform: translateY(-1px) rotate(45deg); }
.qs summary:hover { color: #fff; }
.qs .answer { padding: 0 44px 26px 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.qs .answer p + p, .qs .answer p + ol, .qs .answer ol + p, .qs .answer p + ul, .qs .answer ul + p { margin-top: 12px; }
.qs .answer ol, .qs .answer ul { padding-left: 1.2em; }
.qs .answer li { margin: 4px 0; }
.qs .answer li::marker { color: var(--ink-4); }
.qs .answer strong { color: var(--ink); font-weight: 500; }
.qs .answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.qs .answer a:hover { text-decoration-color: var(--ink-2); }
.qs code { font-size: .92em; color: var(--ink); }
@media (max-width: 600px) { .qs .answer { padding-right: 0; } }

/* Help: topics and their groups */
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px auto 0; padding: 0 var(--gutter); max-width: 920px; list-style: none; }
.topics a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, box-shadow .25s; }
.topics a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-4); }
.group { padding-top: clamp(72px, 12vh, 120px); scroll-margin-top: 40px; }
.group > h2 { max-width: 760px; margin: 0 auto 24px; padding: 0 var(--gutter); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
.group > h2 span { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.contact { max-width: 760px; margin: 0 auto; }
.contact .vault { text-align: left; }
.contact h2 { text-align: left; }
.contact .sub { margin: 18px 0 0; max-width: 30em; }
.contact .actions { justify-content: flex-start; margin-top: 30px; }

/* ---- Download ---------------------------------------------------------------- */
.here { max-width: 880px; margin: 72px auto 0; padding: 0 var(--gutter); }
.here .vault { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px 36px; }
.here .mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(10, 9, 8, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.here .mark svg { width: 30px; height: 30px; fill: var(--ink); }
.here .label { font-size: 13px; color: var(--ink-3); }
.here h2 { margin-top: 4px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.1; }
.here .req { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
@media (max-width: 760px) {
  .here .vault { grid-template-columns: auto minmax(0, 1fr); }
  .here .vault > .btn { grid-column: 1 / -1; justify-self: stretch; }
}

.rows { list-style: none; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr) 112px; align-items: center; gap: 4px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows li > .btn { justify-self: end; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .mark { width: 22px; height: 22px; color: var(--ink-2); }
.rows .mark svg { width: 100%; height: 100%; fill: currentColor; }
.rows .mark svg[fill="none"], .here .mark svg[fill="none"] { fill: none; stroke: currentColor; }
.here .mark { color: var(--ink); }
.rows .name { font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -.02em; line-height: 1.3; }
.rows .name small { display: block; margin-top: 2px; font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
.rows .req { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.rows .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.rows .later .name, .rows .later .mark { color: var(--ink-3); }
@media (max-width: 760px) {
  .rows li { grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; padding: 20px 0; }
  .rows li > .btn { justify-self: end; }
  .rows .mark { margin-top: 4px; }
  .rows .req { grid-column: 2 / -1; grid-row: 2; }
  .rows .btn { grid-column: 3; grid-row: 1; }
}
.notes { max-width: 640px; margin: 48px auto 0; padding: 0 var(--gutter); text-align: center; }
.notes p + p { margin-top: 6px; }

/* ---- Privacy -------------------------------------------------------------------- */
.summary { list-style: none; max-width: 680px; margin: 56px auto 0; padding: 0 var(--gutter); }
.summary li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.summary li:last-child { border-bottom: 1px solid var(--line); }
.summary svg { width: 15px; height: 15px; margin-top: 5px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prose .effective { color: var(--ink-4); font-size: 14px; }
.prose table td:first-child { width: 42%; color: var(--ink); padding-right: 24px; }

/* ---- Log in -------------------------------------------------------------------- */
.holding { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; }
.holding h1.two { font-size: clamp(38px, 5.2vw, 72px); }

/* Read by screen readers, not shown */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
