/* MySimpleBackup website. Plain CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #526075;
  --border: #e3e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8f0ff;
  --accent-2: #0ea5a4;
  --ok: #16a34a;
  --warn: #c2410c;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .10);
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #111831;
    --bg-elevated: #151d38;
    --text: #e8edf7;
    --text-muted: #9aa7bf;
    --border: #253052;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-soft: #1a2750;
    --accent-2: #2cc5c3;
    --ok: #3ccf6e;
    --warn: #fb923c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, .lede, .section-head p { text-wrap: balance; }
.muted { color: var(--text-muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; margin: -4px -2px -4px -6px; } /* icon image includes a transparent margin */
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { margin-left: 4px; }
.nav .btn + .btn { margin-left: -16px; }   /* Try free and Buy sit together: 8px apart (nav gap is 24px) */
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 38px; color: var(--text); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-lg { padding: 15px 26px; font-size: 1.06rem; border-radius: 13px; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 9px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(1200px 500px at 50% -120px, var(--accent-soft), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 680px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: .92rem; color: var(--text-muted); display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* App screenshot */
.shot { margin: 56px auto 0; max-width: 1000px; }
.shot img { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .12)) drop-shadow(0 18px 40px rgba(15, 23, 42, .18)); }
.shot figcaption { margin-top: 14px; font-size: .85rem; color: var(--text-muted); }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--text-muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elevated); }
.feature .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* Folder tree */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.split ul.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.split ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.tree { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; font: 14px/1.9 var(--mono); overflow-x: auto; }
.tree .f { color: var(--accent); font-weight: 600; }
.tree .c { color: var(--text-muted); }
.tree .i1 { padding-left: 1.5em; } .tree .i2 { padding-left: 3em; } .tree .i3 { padding-left: 4.5em; }

/* Cable callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; background: var(--bg-elevated); border: 1px solid var(--border); border-left: 4px solid var(--accent-2); border-radius: var(--radius); padding: 28px; max-width: 880px; margin: 0 auto; }
.callout .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); }
.callout h3 { font-size: 1.3rem; }
.callout p { color: var(--text-muted); margin-bottom: .6em; }
.callout p:last-child { margin-bottom: 0; }

/* Pricing */
.price-card { max-width: 480px; margin: 0 auto; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 34px; text-align: center; }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 4px; }
.price small { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
/* The price arrives from Polar: keep its space while loading so nothing jumps. */
.price { min-height: 1em; }
.price.is-loading .price-amount { visibility: hidden; }
.price-unavailable { display: none; }
.price.is-unavailable .price-amount { display: none; }
.price.is-unavailable .price-unavailable, .price-noscript { display: inline; font-size: 1.3rem; font-weight: 700; letter-spacing: 0; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--border); }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.price-card .btn { width: 100%; }
.req { font-size: .88rem; color: var(--text-muted); margin-top: 18px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--text-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-right: 30px; }

/* Contact */
.contact { text-align: center; }
.contact .email { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; padding: 14px 22px; border-radius: 13px; border: 1px solid var(--border); background: var(--bg-elevated); margin-top: 8px; }
.contact .email:hover { border-color: var(--accent); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: .92rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: .9rem; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.fineprint { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .82rem; }

.price-card .btn + .btn { margin-top: 10px; }
/* Segmented switch (licence plan) */
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 6px 4px 0; }
.segmented button { font: 600 .9rem var(--font); padding: 6px 14px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.segmented[hidden] { display: none; }
.segmented button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.price-card .segmented:first-of-type { margin-top: 14px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal li { margin-bottom: .4em; }
.legal .updated { font-size: .9rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.legal-nav a { font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.legal-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.legal-nav a:hover { text-decoration: none; border-color: var(--accent); }
.legal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.legal-cards a { display: block; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); color: var(--text); }
.legal-cards a:hover { border-color: var(--accent); text-decoration: none; }
.legal-cards span { display: block; color: var(--text-muted); font-size: .92rem; margin-top: 4px; }
table.oss { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 12px 0; }
table.oss th, table.oss td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
table.oss th { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { gap: 10px; }
  .nav .btn + .btn { margin-left: -2px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1rem; }
  .nav-toggle { display: block; order: 3; margin-left: 0; }
  .nav .brand { margin-right: auto; }
}
@media (max-width: 520px) {
  .nav > .btn { display: none; }
  .nav-toggle { margin-left: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .steps, .features, .legal-cards { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Checkout opening: our own indicator, above Polar's frame until the checkout has loaded.
   Polar's own spinner is placed mid-page rather than mid-screen, so it's hidden. */
.polar-loader-spinner { display: none; }
/* While Polar's checkout is open (it adds body.polar-no-scroll): lock the page completely, with
   no trackpad bounce, and drop the header's blur. The bounce and the blurred sticky header could
   flash the site over the checkout while scrolling. */
html:has(body.polar-no-scroll) { overflow: hidden; overscroll-behavior: none; }
body.polar-no-scroll { overscroll-behavior: none; }
body.polar-no-scroll .site-header {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--bg);
}
.checkout-loading {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
}
.checkout-loading.over-frame { background: transparent; }
.checkout-loading-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.checkout-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: checkout-spin .8s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-spinner { animation-duration: 2.4s; } }

/* Shown on previews and localhost (Polar sandbox), never on the live site. */
.env-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 50;
  background: #f59e0b; color: #111; font: 600 .8rem var(--font);
  padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow);
}
.env-badge:hover { text-decoration: none; filter: brightness(1.05); }

/* Welcome page (after checkout) */
.welcome { padding: 56px 0 80px; }
.welcome .container { max-width: 980px; }
.welcome h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .3em; }
.welcome .lede { color: var(--text-muted); font-size: 1.15rem; margin: 0 0 32px; }
.welcome h2 { font-size: 1.35rem; margin-top: 2.2em; }
.welcome > .container > p { color: var(--text-muted); max-width: 720px; }
.step p + p { margin-top: 12px; }
.step .step-action { margin-top: 18px; }

/* Download section */
.download-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 28px 32px; max-width: 900px; margin: 0 auto;
}
.download-card img { flex: none; }
.download-text { flex: 1 1 320px; min-width: 0; }
.download-text h2 { margin: 0 0 6px; font-size: 1.6rem; }
.download-text p { margin: 0; }
.download-text .small { margin-top: 8px; font-size: .9rem; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.download-trial { font-size: .92rem; }
@media (max-width: 640px) {
  .download-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .download-actions { width: 100%; }
  .download-actions .btn { width: 100%; }
}

/* Guides (/guides/): article pages built on the legal page layout */
.guide .lede { font-size: 1.15rem; color: var(--text-muted); }
.guide .crumbs { margin: 0 0 6px; font-size: .9rem; }
.guide ol li, .guide ul li { margin-bottom: .45em; }
.guide .small { font-size: .9rem; }
.table-scroll { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
table.compare th { color: var(--text); background: var(--bg-soft); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--text); }
.guide-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin: 36px 0 8px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--border);
}
.guide-cta p { margin: 4px 0 0; }
.guide-cta div { flex: 1 1 320px; }
table.compare tr.ours td { background: var(--accent-soft); color: var(--text); }
table.compare.versus td:nth-child(2), table.compare.versus th:nth-child(2) { background: var(--accent-soft); color: var(--text); }
.guide .tip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }

/* Home page: the line under the headline, and the guides row */
.hero-keyline { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--text); max-width: 680px; margin: -4px auto 12px; text-wrap: balance; }
.guide-links a { font-weight: 600; }
.guide-links span { font-weight: 400; }
.guides-more { text-align: center; margin-top: 18px; }
