/* Miser marketing site.
   The palette, radii and type scale are carried over from packages/ui/src/styles.css in the
   miser-app monorepo so getmiser.com and miserapp.com look like one product. This repository is
   deliberately standalone and has no build step, so the tokens are duplicated rather than imported;
   if the app's brand moves, move these with it. */
:root {
  --paper: #f3f0e7;
  --paper-2: #e8e3d5;
  --ink: #18251f;
  --muted: #667168;
  --forest: #173f31;
  --moss: #2e664b;
  --lime: #d9eb78;
  --peach: #ef9d77;
  --sky: #a9dbe2;
  --line: rgba(24, 37, 31, 0.15);
  --shadow: 0 18px 55px rgba(24, 37, 31, 0.1);
  --radius: 24px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ---- header ---- */
.site-header {
  display: flex; align-items: center; gap: 28px; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 18px 24px;
}
.site-header nav { display: flex; gap: 26px; }
.site-header nav a, footer a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-header nav a:hover, footer a:hover { color: var(--ink); }
.brand-link { text-decoration: none; }
.brand {
  display: inline-flex; gap: 9px; align-items: center;
  font-weight: 760; font-size: 21px; letter-spacing: -0.04em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--forest); color: var(--lime); font-family: var(--font-display);
  font-size: 18px; line-height: 1;
}

/* ---- buttons ---- */
.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 750;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(24, 37, 31, 0.15); }
.button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--peach); outline-offset: 3px;
}
.button-accent { background: var(--lime); color: var(--forest); }
.button-dark { background: var(--forest); color: #fff; }
.button-quiet { border-color: var(--line); background: rgba(255, 255, 255, 0.38); }

/* ---- type ---- */
.eyebrow {
  margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--moss); font-size: 12px; font-weight: 800;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 18px; font-weight: 780; }
h1 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--moss); }
h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 0 0 14px; font-weight: 760; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 750; }
p { margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--muted); max-width: 56ch; }

/* ---- hero ---- */
.hero { padding: 46px 0 74px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.phone {
  background: var(--forest); border-radius: 38px; padding: 14px;
  box-shadow: var(--shadow); max-width: 330px; margin-left: auto;
}
.phone-screen { background: var(--paper); border-radius: 26px; padding: 22px 18px; }
.phone-screen small { color: var(--muted); font-size: 12px; }
.phone-screen h2 { font-size: 22px; margin: 4px 0 16px; }
.deal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 10px;
}
.deal-card .merchant { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.deal-card .headline { font-weight: 700; font-size: 15px; margin: 5px 0 9px; line-height: 1.3; }
.deal-card .row { display: flex; align-items: center; justify-content: space-between; }
.deal-card .price { font-weight: 780; font-size: 17px; }
.badge {
  font-size: 11px; font-weight: 750; padding: 4px 10px; border-radius: 999px;
  background: var(--lime); color: var(--forest);
}
.badge-sky { background: var(--sky); }
.badge-peach { background: var(--peach); }

/* ---- sections ---- */
section.band { padding: 74px 0; }
section.band.tint { background: var(--paper-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--lime); color: var(--forest); font-weight: 800; font-size: 14px; margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.plan.featured { background: var(--forest); color: #fff; border-color: var(--forest); }
.plan.featured p, .plan.featured li { color: rgba(255, 255, 255, 0.82); }
.plan .price { font-size: 34px; font-weight: 780; margin: 6px 0 4px; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding-left: 24px; position: relative; margin-bottom: 9px; color: var(--muted); font-size: 15px; }
.plan li::before {
  content: '✓'; position: absolute; left: 0; color: var(--moss); font-weight: 800;
}
.plan.featured li::before { color: var(--lime); }

/* ---- prose pages ---- */
.prose { max-width: 68ch; padding: 56px 0 74px; }
.prose h2 { margin-top: 40px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* ---- download ---- */
.download-wrap { min-height: 78vh; display: grid; place-items: center; padding: 40px 24px; }
.download-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 38px; box-shadow: var(--shadow); max-width: 520px; text-align: center;
}
.download-card .store-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.tiny { font-size: 13px; color: var(--muted); }

/* ---- footer ---- */
footer { background: var(--forest); color: rgba(255, 255, 255, 0.72); padding: 54px 0 34px; margin-top: 20px; }
footer a { color: rgba(255, 255, 255, 0.72); }
footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-grid .brand { color: #fff; }
.footer-grid .brand-mark { background: var(--lime); color: var(--forest); }
.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

@media (max-width: 900px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .site-header nav { display: none; }
  .hero { padding: 26px 0 50px; }
  section.band { padding: 52px 0; }
}
