/* Record: styles for the pages behind the home page (pricing, checkout, download, comparison, help, legal)
   and for the parts the home page shares with them (price card, footer columns).
   It uses the colors and sizes defined in site.css. */

/* Footer columns (all pages) */
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.footer-cols h2 { margin: 0 0 10px; font-size: 14px; font-weight: 400; color: var(--mut); }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { overflow-wrap: anywhere; }
@media (max-width: 733px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* --- The top band of an inner page: where you are, the title, one sentence ------------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 2vw, 20px); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.page-head .lead { max-width: 34em; margin-top: 14px; font-size: 19px; line-height: 1.45; letter-spacing: 0; }
.crumbs { margin-bottom: 20px; font-size: 13px; color: var(--mut); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- Reading text -------------------------------------------------------- */
.sheet { padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 9vw, 112px); }
.prose { width: min(760px, 100% - 40px); margin-inline: auto; font-size: 17px; line-height: 1.6; color: #3a3832; }
.prose.wide { width: min(1000px, 100% - 40px); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; scroll-margin-top: 72px; }
.prose h3 { margin-top: 1.7em; font-size: 18px; line-height: 1.35; color: var(--ink); scroll-margin-top: 72px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(182, 57, 26, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.button { color: var(--bg); text-decoration: none; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--mut); }
.prose .key { font-size: .76em; }
.prose code { font-size: .88em; }
.prose .meta { font-size: 14px; color: var(--mut); }
.prose .answer { padding: 18px 20px; border-radius: var(--r); background: var(--card); font-size: 18px; line-height: 1.5; color: var(--ink); }
.prose .note { padding: 14px 18px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; color: var(--ink); }
.prose .warn { padding: 14px 18px; border-radius: var(--r); background: #f5ecd3; box-shadow: inset 0 0 0 1px #e3d3a0; font-size: 16px; color: #574300; }
.prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.toc { padding: 16px 20px; border-radius: var(--r); background: var(--card); font-size: 16px; }
.toc strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 400; color: var(--mut); }
.toc ol { padding-left: 1.2em; }
.toc li + li { margin-top: .3em; }

/* Tables: facts and comparisons */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); background: var(--card); }
.prose table, .facts table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td, .facts th, .facts td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .facts thead th { border-top: 0; font-size: 14px; font-weight: 400; color: var(--mut); white-space: nowrap; }
.prose tbody tr:first-child th, .prose tbody tr:first-child td, .facts tbody tr:first-child th, .facts tbody tr:first-child td { border-top: 0; }
.prose thead + tbody tr:first-child th, .prose thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.prose tbody th, .facts tbody th { width: 34%; font-weight: 500; color: var(--ink); }
.prose td.yes::before { content: "\2713\00a0"; color: #2f7a41; font-weight: 700; }
.prose td.no::before { content: "\2014\00a0"; color: var(--mut); }
.compare-wide tbody th { width: 24%; }
.prose td.us, .prose thead th.us { background: var(--surface); color: var(--ink); }
@media (max-width: 733px) { .compare-wide table { min-width: 640px; } }

/* --- Price card (home page and pricing page) ------------------------------ */
.price-card { position: relative; width: min(520px, 100%); margin: 0 auto; padding: 28px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; }
.split .price-card { margin-right: 0; }
.price-top { display: flex; align-items: center; gap: 14px; }
.price-top img { flex: none; width: 48px; height: 48px; border-radius: 22.5%; }
.price-top h2, .price-top h3 { font-size: 18px; line-height: 1.3; }
.price-top p { font-size: 14px; color: var(--mut); }
.price-amount { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.price-amount b { font-size: clamp(48px, 6vw, 64px); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.price-amount span { font-size: 15px; line-height: 1.35; color: var(--mut); }
.price-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.price-list li { position: relative; padding-left: 28px; }
.price-list li + li { margin-top: 10px; }
.price-list li strong { font-weight: 600; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9.500 3.200 3.200L14 5.800' fill='none' stroke='%231f1e1a' stroke-width='1.700' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.price-card .button { display: flex; margin-top: 26px; padding: 13px 20px; font-size: 16px; }
.price-fine { margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--mut); }
.price-fine a { color: var(--ink); text-underline-offset: 3px; }
.buy-note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r); background: #f5ecd3; box-shadow: inset 0 0 0 1px #e3d3a0; font-size: 15px; line-height: 1.45; color: #574300; }
.buy-note a { color: inherit; }
.buy-again { margin-top: 14px; text-align: center; font-size: 14px; color: var(--mut); }
.buy-again a { color: var(--accent); text-underline-offset: 3px; }
.buying [data-buy] { cursor: progress; }

/* Thank-you page */
.thanks-box { width: min(620px, 100% - 40px); margin: 0 auto; padding: 32px; border-radius: var(--r); background: var(--card); text-align: center; }
.thanks-box h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.thanks-box p { margin-top: 10px; color: var(--mut); }
.thanks-box .button { margin-top: 22px; padding: 13px 26px; font-size: 16px; }
.spinner { width: 30px; height: 30px; margin: 0 auto 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* 404 */
.lost { padding: clamp(80px, 13vw, 170px) 0; text-align: center; }
.lost h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
.lost .lead { margin: 16px auto 0; font-size: 18px; line-height: 1.45; letter-spacing: 0; }
.lost .actions { justify-content: center; margin-top: 28px; }

/* Space between blocks of reading text that follow each other */
.prose + .prose, .prose + .wrap, .wrap + .prose { margin-top: clamp(40px, 5vw, 60px); }
.prose + .wrap.narrow .faq { margin-top: 20px; }

/* Phones and tablets: "Record is a Mac app" */
.phone-note { display: none; margin-top: 24px; padding: 14px 18px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); }
@media (max-width: 733px) { .phone-note { display: block; } .phone-note + .button { margin-top: 14px; } }
.mac-only { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(31, 30, 26, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mac-only[hidden] { display: none; }
.mac-only-box { width: min(380px, 100%); padding: 28px 24px 20px; border-radius: 12px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(31, 30, 26, .35); }
.mac-only-box img { display: block; margin: 0 auto 16px; border-radius: 22.5%; }
.mac-only-box h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.mac-only-box p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--mut); }
.mac-only-box .mac-only-link { margin-top: 12px; font-size: 17px; font-weight: 500; color: var(--ink); }
.mac-only-box .button { display: flex; width: 100%; margin-top: 20px; padding: 13px 20px; font-size: 16px; }
.mac-only-close { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px; border: 0; border-radius: 999px; background: transparent; color: var(--mut); font-size: 15px; cursor: pointer; }
.mac-only-close:hover { color: var(--ink); }
.mac-only-box .mac-only-fine { margin-top: 6px; font-size: 13px; color: var(--mut); }

/* --- Checkout page: the order on the left, the Paddle payment form on the right --- */
.checkout-sheet { padding-top: clamp(24px, 4vw, 44px); }
.checkout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--gap); align-items: start; width: min(1040px, 100% - 40px); margin: 0 auto; }
.checkout-summary, .checkout-frame { border-radius: var(--r); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.checkout-summary { position: sticky; top: 72px; padding: 28px; background: var(--surface); }
.checkout-summary h2 { font-size: 18px; line-height: 1.3; }
.checkout-lines { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.checkout-lines div { display: flex; justify-content: space-between; gap: 16px; }
.checkout-lines div + div { margin-top: 10px; }
.checkout-lines dt { color: var(--mut); }
.checkout-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.checkout-lines .checkout-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 500; }
.checkout-lines .checkout-total dt { color: var(--ink); }
.checkout-summary .price-list { margin-top: 22px; font-size: 15px; }
.checkout-summary .price-fine { text-align: left; }
/* The payment form is drawn by Paddle on white: its box is white too. */
.checkout-frame { min-height: 460px; padding: 24px; background: #fff; }
.checkout-loading { padding: 120px 20px; text-align: center; color: var(--mut); }
.checkout-pay .buy-note, .checkout-pay .phone-note { display: block; margin-top: 0; }
.checkout-pay .buy-note[hidden], .checkout-pay .phone-note[hidden] { display: none; }
.checkout-pay .buy-again { margin-top: 18px; }
.checkout-off .checkout-frame { display: none; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; width: min(620px, 100% - 32px); }
  .checkout-summary { position: static; padding: 24px; }
  .checkout-frame { padding: 16px; }
  .checkout-off .checkout-pay { order: -1; } /* the note comes first on a phone */
}

/* Shown on /checkout the moment Paddle says the payment is complete, until /thanks opens. */
.checkout-done { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(246, 245, 241, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .25s var(--ease); }
.checkout-done.show { opacity: 1; }
.checkout-done[hidden] { display: none; }
.checkout-done-box { width: min(420px, 100%); padding: 32px 28px 28px; border-radius: 12px; background: var(--surface); text-align: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(31, 30, 26, .16); transform: translateY(8px) scale(.98); transition: transform .35s var(--ease); }
.checkout-done.show .checkout-done-box { transform: none; }
.checkout-done h2 { margin-top: 18px; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.checkout-done p { margin-top: 6px; color: var(--mut); }
.done-check { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: #2f8a4b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='m17 29 7.500 7.500L39.500 21' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 52px no-repeat; }
.done-bar { height: 4px; margin: 22px auto 0; width: 70%; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.done-bar span { display: block; height: 100%; width: 35%; border-radius: 4px; background: var(--ink); animation: done-bar 1.1s var(--ease) infinite; }
@keyframes done-bar { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.done-fine { margin-top: 18px !important; font-size: 13px; color: var(--mut) !important; }
.done-fine a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .checkout-done, .checkout-done-box { transition: none; } .done-bar span { animation-duration: 3s; } }
