/* OvertimeBack page CSS: only what sits inside a visual (phone frames, screen panels), the consent bar,
   store badges, footnotes, the guide and legal article layout. Tokens come from system.css and the :root block. */

body { font-variant-numeric: tabular-nums; }
.nav__logo .brand-icon, .closing .brand-icon { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.nav__logo { gap: var(--s-3); }

/* hero: the disclaimer line under the lead, and the phones in the collage */
.hero--triptych .hero__note { margin-top: var(--s-4); font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.hero--triptych .ly-collage { container-type: size; }
.ly-collage .ob-phone { height: min(80cqh, 88cqw); width: auto; aspect-ratio: 640 / 1387; border-radius: 22px; background: #0d141d;
  border: 6px solid #0d141d; box-shadow: 0 2px 14px rgba(20,32,46,.12); }
.ly-collage .ob-phone > img { border-radius: 16px; object-fit: cover; object-position: top; }
.ly-collage .ob-phone--a { left: 4%; top: 4%; }
.ly-collage .ob-phone--b { right: 4%; bottom: 4%; }

/* screen panels in cards: the phone's screen, cut by the panel's foot */
#how .panel { --p-h: 340px; }
#features .panel { --p-h: 300px; }
.ob-panel { position: relative; overflow: hidden; background: var(--surface); display: flex; justify-content: center; }
.ob-panel .ob-shot { width: min(240px, 76%); margin-top: var(--s-6); border-radius: 22px 22px 0 0; border: 6px solid var(--ink); border-bottom: 0;
  overflow: hidden; align-self: flex-start; }
.ob-panel .ob-shot img { display: block; width: 100%; height: auto; }
.ob-panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.ob-panel--wide .ob-shot { width: min(260px, 60%); }
@media (max-width: 639px) {
  #how .panel { --p-h: 220px; }
  #features .panel { --p-h: 200px; }
  .ob-panel .ob-shot { width: min(200px, 62%); margin-top: var(--s-5); }
}

/* a whole phone in a split frame or beside the form */
.ob-frame { align-items: flex-start; padding: var(--s-7) var(--s-7) 0; overflow: hidden; }
.ob-device { width: min(280px, 100%); aspect-ratio: 640 / 1387; border-radius: 32px; border: 8px solid #0d141d; background: #0d141d; overflow: hidden; flex: none; }
.ob-device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ob-frame .ob-device { height: auto; }
.ob-device--small { width: 200px; }
@media (max-width: 639px) { .ob-device--small { width: 160px; } .ob-frame { padding: var(--s-5) var(--s-5) 0; } }

/* privacy facts and plan lists: plain lines with a small amber tick */
.ob-facts, .ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ob-facts li, .ob-list li { position: relative; padding-left: var(--s-5); font-size: var(--t-body); line-height: 1.55; }
.ob-facts li::before, .ob-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ob-price { font: var(--display-weight) var(--t-h3, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0; }

/* the early-access form */
.ob-form { display: grid; gap: var(--s-4); }
.ob-form select, .ob-form textarea { width: 100%; font: inherit; font-size: 16px; }
.ob-form select { height: 48px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.ob-form textarea { min-height: 72px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); resize: vertical; }
.ob-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.ob-choice legend { width: 100%; padding: 0; margin-bottom: var(--s-2); font-size: 14px; font-weight: 500; }
.ob-choice label { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-size: var(--t-body); }
.ob-choice input { width: 20px; height: 20px; accent-color: var(--action); }

/* store badges: official artwork, one visible height (52px) */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.store-badges[hidden], [data-when-no-store][hidden], [data-when-store][hidden], .trademark[hidden] { display: none !important; }
.store-badge { display: inline-flex; align-items: center; gap: var(--s-2); }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge--soon img { opacity: .55; }
.hero__cta .store-badges { justify-content: flex-end; }

/* footnotes and the trademark lines, in the footer */
.footnotes { margin: var(--s-6) 0 0; padding-left: var(--s-5); display: grid; gap: var(--s-1); font-size: var(--t-label); line-height: 1.5; color: var(--muted); }
.footnotes a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.trademark { margin: var(--s-2) 0 0; font-size: var(--t-label); color: var(--muted); flex-basis: 100%; }
sup .fn { font-size: .72em; text-decoration: none; color: var(--action); padding: 0 1px; }
.ob-textbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ob-textbtn:hover { text-decoration: underline; }

/* the consent bar (fixed at the foot until the visitor chooses) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--p-surface, #fff); color: var(--p-ink, #14202e);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 24px rgba(20,32,46,.10); padding: var(--s-4) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); }
.consent__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; }
.consent__text { margin: 0; font-size: var(--t-body); line-height: 1.5; max-width: 70ch; }
.consent__text a { color: inherit; text-decoration: underline; }
.consent__actions { display: flex; gap: var(--s-3); }
.consent__btn { min-width: 112px; }
@media (max-width: 639px) { .consent__actions { width: 100%; } .consent__btn { flex: 1 1 0; } }

/* articles: guides, privacy, terms, support */
.article { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.article .wrap > * { max-width: 720px; }
.article h1 { font: var(--display-weight) clamp(34px, 2vw + 24px, 52px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); }
.article h2 { font: var(--display-weight) clamp(24px, 1vw + 18px, 30px)/1.25 var(--font-display); letter-spacing: -0.02em; margin: var(--s-8) 0 var(--s-3); }
.article h3 { font-size: var(--t-lead); font-weight: 500; margin: var(--s-6) 0 var(--s-2); }
.article p, .article li { font-size: 17px; line-height: 1.65; }
.article ul, .article ol { padding-left: var(--s-5); }
.article .notice { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--r-sm); font-weight: 500; }
.article .meta { color: var(--muted); font-size: var(--t-small); }
.article a:not(.btn) { color: var(--action); text-underline-offset: 2px; }
.article table { border-collapse: collapse; width: 100%; font-size: 16px; margin: var(--s-4) 0; }
.article th, .article td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.article .guide-list { list-style: none; padding: 0; display: grid; gap: var(--s-5); }
.article .guide-list a { font-size: var(--t-lead); font-weight: 500; }
.site-foot { border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-8); font-size: var(--t-small); color: var(--muted); }
.site-foot .wrap { display: grid; gap: var(--s-3); }
.site-foot a { color: inherit; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-foot nav a, .site-foot .ob-textbtn { min-height: 44px; display: inline-flex; align-items: center; }

/* fixes after the first look */
sup { line-height: 0; }
.card--plan .ob-price { font: var(--display-weight) 32px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.card--plan .ob-price .t-small { font-family: var(--font-text); letter-spacing: 0; }
.footnotes { list-style: decimal; }
.footnotes li { display: list-item; }
#privacy .t-lead + .ob-facts { margin-top: var(--s-5); }
.ob-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
.ob-form > :is(.ob-choice, .field:has(textarea), .btn-row, .form__status, .t-small) { grid-column: 1 / -1; }
.ob-form input[type="email"], .ob-form select { height: 48px; }
@media (max-width: 639px) { .ob-form { grid-template-columns: minmax(0, 1fr); } }
#pricing .ob-device--small { margin-top: var(--s-4); }

/* round 2: one button size, ink for read text, lists on the grid line */
.hero--triptych .hero__cta .btn { height: var(--btn-h, 44px); font-size: var(--t-body); padding-inline: var(--s-6); }
.hero--triptych .hero__note, #premium .mo-la__sub, #early-access p { color: var(--ink); }
sup .fn { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ob-facts li, .ob-list li { padding-left: 0; }
.ob-facts li::before, .ob-list li::before { position: static; display: inline-block; margin-right: var(--s-3); vertical-align: .1em; }
.footnotes { padding-left: 0; list-style-position: inside; }
#how .panel { --p-h: 300px; }
.card--plan .btn { margin-top: auto; }
.card--plan { display: flex; flex-direction: column; }

/* round 3: fit every screen above the consent bar's height too */
.ob-panel { height: var(--p-h); flex: none; }
#how .panel { --p-h: 260px; }
#features .panel { --p-h: 280px; }
.ob-facts li::before, .ob-list li::before { content: none; }
.ob-facts li, .ob-list li { padding-left: 0; }
.footnotes { list-style: none; }
.ob-frame { aspect-ratio: auto; height: 560px; }
@media (max-width: 1023px) { .ob-frame { height: 480px; } }
@media (max-width: 639px) { .ob-frame { height: 400px; } }
.hero--triptych .ly-collage { height: calc(100% - 80px); }
.ob-form .btn { height: var(--btn-h, 44px); }
.ob-form > :is(.field:has(textarea), .btn-row, .form__status, .t-small) { grid-column: 1 / -1; }
.closing .footer__lede { font-size: var(--t-body); }
/* the page can scroll past the consent bar, so it never covers the last line */
body { padding-bottom: var(--consent-h, 0px); }
.footnotes { margin-top: var(--s-5); }
.footer__col .ob-textbtn { display: inline-flex; align-items: center; min-height: 44px; font-size: inherit; }

/* round 4: the worked split under the statement; tablet and phone screens */
.ob-premium { margin-top: var(--s-6); align-items: start; }
.ob-split { margin: 0; }
.ob-split > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.ob-split dt { font-size: var(--t-body); }
.ob-split dd { margin: 0; font-size: var(--t-body); font-weight: 500; white-space: nowrap; }
.ob-split__total dt, .ob-split__total dd { font-weight: 500; color: var(--action); }
@media (min-width: 1024px) and (max-width: 1279px) { #features .panel { --p-h: 260px; } }
@media (min-width: 640px) and (max-width: 1023px) { #how, #pricing, #early-access { --h: 2; } }
@media (max-width: 639px) { #features .panel { --p-h: 150px; } #how .panel { --p-h: 200px; } }
.ob-split__total dt, .ob-split__total dd { color: var(--ink); }
.ob-split__total { border-bottom: 2px solid var(--accent) !important; }
.ob-premium .mo-la__sub { margin-top: 0; }
@media (min-width: 640px) and (max-width: 1023px) { #early-access .ob-frame { height: 800px; } }

/* guides: the closing call to action */
.guide-cta { margin-top: var(--s-8); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.guide-cta h2 { margin-top: 0; }
.article .btn { color: var(--action-ink); }
@media (max-width: 639px) { #how .panel { --p-h: 260px; } #early-access .ob-frame { height: 680px; } }

/* article pages: links in ink with an amber underline (amber text on the grey ground is under 4.5:1) */
.article a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 639px) { body:has(main.article) .nav__bar > .nav__actions { display: none !important; } body:has(main.article) .nav__bar > .nav__toggle { margin-left: auto !important; } }
.article ul:not(.guide-list) { list-style: disc; } .article ul:not(.guide-list) > li { display: list-item; margin-bottom: var(--s-2); }
@media (max-width: 639px) { #how .panel { --p-h: 310px; } }

/* the early-access form stays hidden until site-config.js has a real endpoint */
form[data-when-endpoint][hidden], [data-when-no-endpoint][hidden] { display: none !important; }
.ob-soon { margin: 0; font: var(--display-weight) 28px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
/* without the form the early-access section is one screen everywhere */
@media (min-width: 640px) and (max-width: 1023px) { #early-access { --h: 1; } #early-access .ob-frame { height: 520px; } }
@media (max-width: 639px) { #early-access .ob-frame { height: 400px; } }
