/* Shared by the home page, /buy/, /checkout/success/ and /account/. Same tokens as the privacy page (inline there). */
:root {
  --bg: #f5f6f7; --surface: #ffffff; --ink: #16191d; --muted: #5b636d; --rule: #dde1e5;
  --accent: #b85a12; --accent-ink: #ffffff; --accent-soft: #fbeee2; --code: #eef0f2;
  --ok: #1d7a46; --ok-soft: #e4f4ea; --warn: #9a5b00; --warn-soft: #fdf1dc; --bad: #b3261e; --bad-soft: #fbe7e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1215; --surface: #161a1f; --ink: #e6e9ec; --muted: #9aa3ad; --rule: #272d34;
    --accent: #f09a4a; --accent-ink: #1a0f05; --accent-soft: #2a1d12; --code: #1d2228;
    --ok: #6fd39a; --ok-soft: #12261b; --warn: #f2b65a; --warn-soft: #2b2112; --bad: #ff8a80; --bad-soft: #2d1513;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1215; --surface: #161a1f; --ink: #e6e9ec; --muted: #9aa3ad; --rule: #272d34;
  --accent: #f09a4a; --accent-ink: #1a0f05; --accent-soft: #2a1d12; --code: #1d2228;
  --ok: #6fd39a; --ok-soft: #12261b; --warn: #f2b65a; --warn-soft: #2b2112; --bad: #ff8a80; --bad-soft: #2d1513;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
[hidden] { display: none !important; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 60rem; }

header.site { border-bottom: 1px solid var(--rule); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
        font-weight: 700; letter-spacing: .01em; font-size: 1.05rem; }
.mark svg { width: 26px; height: 26px; flex: none; }
header.site nav { display: flex; gap: 18px; font-size: .95rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }

main { padding: 36px 0 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 36px 0 10px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
.lede { font-size: 1.1rem; margin: 0 0 24px; max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
strong { font-weight: 650; }
ol, ul { padding-left: 1.3rem; margin: 8px 0; }
li { margin: 6px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Cards and panels */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.stack > * + * { margin-top: 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

/* Plans: Free, Plus, Pro and Track. One column on a phone, two by two from a small tablet up (four across would
   leave each card too narrow for Pro's and Track's lists in the 60rem page). */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 0; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan > p, .plan > .notice { margin: 0; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .tag { align-self: flex-start; font-size: .8rem; font-weight: 650; letter-spacing: .02em; color: var(--accent);
             background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.price { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price s { font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan ul { padding-left: 1.1rem; margin: 0; flex: 1; }
.plan li { margin: 4px 0; }
.plan .actions { display: grid; gap: 8px; }
.plan .actions .btn { width: 100%; }

/* Notices */
.notice { border-radius: 10px; padding: 12px 16px; border: 1px solid var(--rule); background: var(--surface); }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice.ok { background: var(--ok-soft); border-color: transparent; }
.notice.warn { background: var(--warn-soft); border-color: transparent; }
.notice.bad { background: var(--bad-soft); border-color: transparent; }
.notice.preview { background: var(--accent-soft); border-color: transparent; font-size: .92rem; }

/* The code */
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--code); border-radius: 10px; padding: 14px 16px; }
.code-box code { font: 600 1.45rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em;
                 word-break: break-all; flex: 1 1 14rem; }
.code-box.compact code { font-size: 1.1rem; }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="email"] {
  width: 100%; max-width: 26rem; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); font: inherit;
}
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-row input { flex: 1 1 16rem; }
.field-error { color: var(--bad); font-size: .92rem; margin: 6px 0 0; }

/* Status and lists */
.pill { display: inline-block; font-size: .82rem; font-weight: 650; border-radius: 999px; padding: 2px 10px; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.accent { color: var(--accent); background: var(--accent-soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.devices { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--rule); }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
              padding: 12px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.devices .name { font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 36px; margin: 10px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
                    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem;
                    display: flex; align-items: center; justify-content: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--accent);
           animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
footer.site .wrap { padding-top: 18px; padding-bottom: 28px; }
footer.site p { margin: 0 0 6px; }
footer.site a { color: var(--muted); }
.spaced { margin-top: 24px; }
.spaced-below { margin-bottom: 16px; }
.card h2, .panel-title h1, .panel-title h2 { margin-top: 0; margin-bottom: 0; }
.card > .panel-title, .plan .plan-name { margin-bottom: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* /terms/ */
.terms h2 { padding-top: 18px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.terms .toc { margin: 8px 0 8px; padding: 14px 20px; }
.terms .toc ol { margin: 0; columns: 2 16rem; column-gap: 24px; }
.terms .toc li { margin: 3px 0; break-inside: avoid; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* /docs/ */
.docs .toc-list { columns: 2 14rem; column-gap: 24px; margin: 8px 0 0; }
.docs .toc-list li { margin: 3px 0; break-inside: avoid; }

/* /buy/ currency switch */
.currency-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.currency-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.currency-switch .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.currency-bar #tax-note { margin: 0; }
/* /account/: a DashForge Plus purchase's upgrade to Pro */
.upgrade { background: var(--accent-soft); border-radius: 10px; padding: 16px; }
.upgrade h3 { margin-bottom: 6px; }
.upgrade p { margin: 0 0 10px; }
.upgrade p:last-child { margin-bottom: 0; }
.upgrade .currency-switch { margin: 0 0 12px; }
.upgrade .row { margin: 0 0 10px; }
.upgrade .currency-switch .btn { background: var(--surface); }
@media (max-width: 420px) { .upgrade { margin-left: -8px; margin-right: -8px; padding: 14px 12px; } }
.price .alt { font-weight: 500; }
#price-notice { margin: 0 0 12px; }

/* Home page */
.hero { display: grid; gap: 24px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.05; letter-spacing: -.01em; margin: 10px 0 12px; }
.hero .lede { font-size: 1.2rem; max-width: 36rem; margin-bottom: 18px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; background: #000;
            border: 1px solid var(--rule); }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 8px 0 0; }
.features .card { padding: 18px; }
.features p { margin: 0; color: var(--muted); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 8px 0 0; }
.facts.wide { grid-template-columns: 1fr; gap: 2px; }
.facts.wide dt { color: var(--ink); font-weight: 650; margin-top: 12px; }
.facts.wide dt:first-child { margin-top: 0; }
.facts.wide dd { color: var(--muted); }
@media (min-width: 640px) {
  .facts.wide { grid-template-columns: 11rem 1fr; gap: 12px 20px; }
  .facts.wide dt { margin-top: 0; }
}
.plans.summary .plan p { margin: 0; }
.links { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--rule); }
.links li { margin: 0; border-bottom: 1px solid var(--rule); }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; color: var(--ink); text-decoration: none; }
.links a span:last-child { color: var(--muted); font-size: .95rem; text-align: right; }
.links a:hover span:first-child, .links a:focus-visible span:first-child { color: var(--accent); }
.video { margin: 0; }
.video-play, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px;
                             overflow: hidden; background: #000; border: 1px solid var(--rule); }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
               background: rgba(0, 0, 0, .6); border: 2px solid #fff; }
.video .play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid;
                      border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play, .video-play:focus-visible .play { background: var(--accent); border-color: var(--accent); }
.video figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
/* Google's own badge, unaltered: its PNG has its clear space built in, so it sits 10px left to line up with the text */
.play-badge { display: inline-block; margin-left: -10px; line-height: 0; border-radius: 8px; }
.play-badge img { display: block; height: 64px; width: auto; }
/* Download page */
.hashes code { font-size: .85rem; word-break: break-all; }
details summary { cursor: pointer; color: var(--accent); }
