/* Prune marketing + legal pages. Plain CSS, no build step.
   Sizes follow the old Carrd site: everything is in rem, and the root
   font size steps down at each breakpoint, so the whole page scales. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-italic-latin.woff2") format("woff2");
}

:root {
  --orange: #ff5722;
  --ink: #1d1d1f;
  --black: #000;
  --link: #0071e3;
  --muted-on-dark: rgba(255, 255, 255, 0.64);
  --pad-x: 4rem;
  --pad-y: 6rem;
  --spacing: 2rem;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { font-size: 15pt; -webkit-text-size-adjust: 100%; }
@media (min-width: 1681px) { html { font-size: 20pt; } }
@media (max-width: 980px) { html { font-size: 13pt; } }
@media (max-width: 736px) {
  html { font-size: 12pt; }
  :root { --pad-x: 2rem; --pad-y: 3.5rem; }
}
@media (max-width: 480px) { :root { --spacing: 1.75rem; } }
@media (max-width: 360px) { :root { --pad-x: 1.5rem; --pad-y: 2.625rem; --spacing: 1.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
strong { font-weight: 600; }
a { color: inherit; transition: color 0.25s ease, opacity 0.25s ease; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.75rem 1rem; border-radius: 0.5rem;
  background: var(--ink); color: #fff; font-size: 0.8rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Whole page fades in once loaded (Carrd's "is-loading"). */
.js .page { transition: opacity 0.5s ease-in-out; }
.js body.is-loading .page { opacity: 0; }

/* ---------- Shared pieces ---------- */

.stack > * + * { margin-top: var(--spacing); }

.button {
  display: inline-flex; align-items: center; gap: 0.55em;
  height: 3.75rem; padding: 0 1.875rem;
  border-radius: 2rem;
  background: var(--orange); color: #fff;
  font-size: 1em; font-weight: 400; letter-spacing: 0.025rem; text-decoration: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.17);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.button:hover { transform: scale(1.025); box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2); }
.button:active { transform: scale(0.98); }
.button svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.button--small { font-size: 0.75em; }

.store-icons { display: flex; gap: 1.125rem; font-size: 1.75em; margin: 3rem 0 !important; }
.store-icons a { display: block; width: 1em; height: 1em; color: #fff; transition: transform 0.25s ease; }
.store-icons a:hover { transform: translateY(-11.25%); }
.store-icons svg { width: 100%; height: 100%; fill: currentColor; }
@media (max-width: 736px) { .store-icons { font-size: 2.25em; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Dark band at the bottom of every page. */
.site-footer { background: var(--ink); color: var(--muted-on-dark); }
.site-footer__inner {
  width: 40rem; max-width: 100%; margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  line-height: 2;
}
.site-footer h2 {
  color: #fff; font-size: 3.125em; font-weight: 600; line-height: 1.125; letter-spacing: -0.1rem;
}
.site-footer p + p { margin-top: 1rem; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { color: var(--orange); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
@media (max-width: 736px) {
  .site-footer h2 { font-size: 2.5em; line-height: 1.25; letter-spacing: -0.0875rem; }
}

/* ---------- Home ---------- */

.home { background: var(--orange); }

.hero { padding: 0.625rem var(--pad-x) 0; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: 62rem; margin: 0 auto;
}
.hero__media img { width: 100%; padding: 0.5rem; border-radius: 1rem; }
.hero h1 {
  color: #fff; font-size: 3.375em; font-weight: 600; line-height: 1.125; letter-spacing: -0.1rem;
}
.tagline { color: var(--black); font-weight: 500; line-height: 1.125; }
.lede { color: var(--black); line-height: 2; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; }
.badges a { display: block; border-radius: 0.65rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.badges a:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.18); }
.badges img { height: 3.3rem; width: auto; }

.home .site-footer { margin-top: 6rem; }

@media (max-width: 980px) {
  .hero { padding-top: var(--pad-y); }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__copy { order: -1; }
  .hero__media { max-width: 26rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 736px) {
  .hero h1 { font-size: 3em; letter-spacing: -0.0875rem; }
  .hero__media { margin-top: -0.25rem; }
  .home .site-footer { margin-top: 2.625rem; }
}

/* ---------- Legal pages ---------- */

.legal { background: #fff; color: var(--black); }
.legal-main {
  width: 40rem; max-width: 100%; margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.legal-main > * + *, .legal-main section > * + * { margin-top: var(--spacing); }
.legal h1 {
  color: var(--ink); font-size: 2.375em; font-weight: 600; line-height: 1.125; letter-spacing: -0.1rem;
}
.legal h2 { font-size: 1.5em; font-weight: 600; line-height: 1.33; scroll-margin-top: 1.5rem; }
.legal h2 a.anchor {
  margin-left: 0.4rem; color: #b0b0b5; text-decoration: none; opacity: 0;
}
.legal h2:hover a.anchor, .legal h2 a.anchor:focus-visible { opacity: 1; }
.legal section { margin-top: 3rem; }
.legal-main p, .legal-main li, .legal td, .legal th { line-height: 1.625; }
.legal section > p + p, .legal section > ul + p, .legal section > p + ul { margin-top: 1rem; }
.legal-main ul li { position: relative; padding-left: 1.1rem; }
.legal-main ul li + li { margin-top: 0.5rem; }
.legal-main ul li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.7em;
  width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--orange);
}
.legal-main a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
.legal-main a:hover { text-decoration: none; }
.legal-main .button { color: #fff; text-decoration: none; }
.effective { color: #555; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 30rem; border-collapse: collapse; text-align: left; }
.legal th { font-weight: 600; vertical-align: bottom; }
.legal td { vertical-align: top; }
.legal th, .legal td { padding: 0.5rem 0.6875rem; }
.legal th:first-child, .legal td:first-child { padding-left: 0; }
.legal th:last-child, .legal td:last-child { padding-right: 0; }
.legal thead { border-bottom: 2px solid #e3e3e6; }
.legal tbody tr + tr { border-top: 1px solid #eeeef0; }
.legal td:first-child { font-weight: 500; }

.legal .site-footer__inner { padding-top: calc(var(--pad-y) * 0.75); padding-bottom: calc(var(--pad-y) * 0.75); }

/* Narrow screens: each table row becomes a labelled card. */
@media (max-width: 736px) {
  .legal h1 { font-size: 2.5em; line-height: 1.25; letter-spacing: -0.0875rem; }
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal tr { display: block; padding: 1rem 0; }
  .legal tbody tr + tr { border-top: 1px solid #e3e3e6; }
  .legal td { display: block; padding: 0.15rem 0 !important; }
  .legal td::before {
    content: attr(data-label); display: block;
    font-size: 0.75em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #6e6e73;
  }
  .legal td:first-child { font-size: 1.1em; font-weight: 600; }
  .legal td:first-child::before { display: none; }
}

/* ---------- Scroll reveal ----------
   site.js tags elements with data-reveal and adds .is-visible when they
   scroll a quarter into view. Without JS, nothing is hidden. */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--speed, 0.75s) var(--ease) var(--delay, 0s),
    transform var(--speed, 0.75s) var(--ease) var(--delay, 0s);
  backface-visibility: hidden;
}
.js [data-reveal="fade-left"] { transform: translateX(var(--shift, 1.6875rem)); }
.js [data-reveal="fade-right"] { transform: translateX(calc(var(--shift, 1.6875rem) * -1)); }
.js [data-reveal="fade-up"] { transform: translateY(var(--shift, 1.425rem)); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .page, .button, .badges a, .store-icons a { transition: none; }
}

.site-footer__inner > .store-icons:first-child { margin-top: 0 !important; margin-bottom: 1.5rem !important; }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--pad-y) var(--pad-x); text-align: center; }
.notfound h1 { color: #fff; font-size: 3.375em; font-weight: 600; letter-spacing: -0.1rem; }
.notfound p { color: var(--black); line-height: 2; }
.notfound .button { background: var(--ink); }
