/* ---------------------------------------------------------------------------
   Rulder marketing site.

   Tokens mirror src/theme in the app so the two read as one product: Palm Leaf
   for headings and buttons, Screamin' Green for accents, white page with a
   single off-white surface, Plus Jakarta Sans throughout.
   --------------------------------------------------------------------------- */

:root {
  --palm-leaf: #063400;
  --palm-leaf-dark: #041f00;
  --screamin-green: #7de86a;
  --screamin-green-dark: #5fcb4b;
  --gunsmoke: #828685;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8f9f7;
  --border: #edefea;
  --border-strong: #dcdfd8;

  --text: #111a0c;
  --text-muted: #828685;
  --text-faint: #aeb2b0;

  --tile-peach: #ffcba4;
  --tile-yellow: #fbe469;
  --tile-mint: #a9e3dd;
  --tile-pink: #fbd2e1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.07);

  --maxw: 1120px;
  --maxw-prose: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--palm-leaf);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.prose-wrap {
  max-width: var(--maxw-prose);
}

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--palm-leaf);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--palm-leaf);
  display: grid;
  place-items: center;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--palm-leaf);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.1px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--palm-leaf);
  color: #fff;
}

.btn-accent {
  background: var(--screamin-green);
  color: var(--palm-leaf);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--palm-leaf);
  background: var(--surface);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--palm-leaf);
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--palm-leaf);
}

.hero p.lede {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

/* Hero visual: the app's need card at full size ------------------------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 46px;
}

.need-stack {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.need-card {
  position: relative;
  width: 300px;
  max-width: 100%;
  /* Same portrait ratio the app pins every need photo to. */
  aspect-ratio: 0.72;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(6, 52, 0, 0.16);
}

/* The card behind, angled so the stack reads as a browsable feed. */
.need-stack .need-card:nth-child(2) {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: rotate(8deg) translate(52px, 26px) scale(0.94);
}

.need-stack .need-card:nth-child(1) {
  transform: rotate(-2deg);
}

.need-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 34%;
}

.need-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 16, 6, 0) 28%,
    rgba(9, 16, 6, 0.35) 55%,
    rgba(9, 16, 6, 0.88) 100%
  );
}

.need-pill {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px;
  background: rgba(9, 16, 6, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.need-body {
  position: relative;
  padding: 14px 16px 18px;
  color: #fff;
}

.need-body h3 {
  margin: 0 0 5px;
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 700;
  color: #fff;
}

.need-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.need-total {
  margin: 0 0 1px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
}

.need-price {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.need-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  margin-bottom: 9px;
}

.need-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--screamin-green);
}

.need-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.need-cat b {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--screamin-green);
  display: grid;
  place-items: center;
  flex: none;
}

.proof-chip {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-62%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--palm-leaf);
  white-space: nowrap;
}

/* --- sections ----------------------------------------------------------- */

section {
  padding: 68px 0;
}

section.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--screamin-green-dark);
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--palm-leaf);
}

.section-head p {
  margin: 0;
  font-size: 16.5px;
  color: var(--text-muted);
}

/* --- cards -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tile {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--palm-leaf);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

/* --- tiers -------------------------------------------------------------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tier {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.tier .emoji {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.tier b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}

.tier span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* --- faq ---------------------------------------------------------------- */

.faq {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

details[open] {
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 20px;
  color: var(--screamin-green-dark);
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: '\2212';
}

details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* --- callout ------------------------------------------------------------ */

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.callout .tile {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  flex: none;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  color: var(--text);
}

.callout p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.cta-band {
  background: var(--palm-leaf);
  border-radius: var(--radius-xl);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 26px;
  max-width: 46ch;
  font-size: 16px;
}

/* --- legal / prose ------------------------------------------------------ */

.page-head {
  padding: 54px 0 26px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 14px;
}

.page-head .lede {
  font-size: 16.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 62ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.version-pill {
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--palm-leaf);
}

.published {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Vertical only, as longhand on purpose: `.doc` always sits on a `.wrap`, and
   the `padding` shorthand used to reset that wrap's 24px sides to zero, so
   every policy page ran text into the screen edge on narrow viewports. */
.doc {
  padding-top: 8px;
  padding-bottom: 72px;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

.doc h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 34px 0 10px;
}

.doc p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}

/* Bullet blocks inside a policy body (e.g. the list of emails we send). */
.doc-list {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.doc-list li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}

.doc-list li::marker {
  color: var(--palm-leaf);
}

.legal-list {
  display: grid;
  gap: 12px;
  padding-bottom: 72px;
}

.legal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.legal-row:hover {
  text-decoration: none;
  border-color: var(--border-strong);
}

.legal-row .tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
}

.legal-row-text {
  flex: 1;
}

.legal-row-text b {
  display: block;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.legal-row-text span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.chev {
  color: var(--text-faint);
  flex: none;
}

/* --- support ------------------------------------------------------------ */

.contact-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 26px;
}

.contact-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-card a {
  font-weight: 700;
}

.steps {
  counter-reset: step;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--screamin-green);
  color: var(--palm-leaf);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--palm-leaf);
  color: rgba(255, 255, 255, 0.72);
  padding: 54px 0 34px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer .brand-mark {
  background: var(--screamin-green);
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-blurb {
  font-size: 13.5px;
  line-height: 1.62;
  max-width: 34ch;
}

/* Registered office. <address> is italic by default in every browser, which
   reads as an aside — this is a legal identifier, so it stays upright. */
.footer-address {
  font-style: normal;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-address b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.company-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
  }

  .nav.open a {
    padding: 8px 0;
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
