/* Retention Rules site. Design system taken from flows.retentionrules.com. */
@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/InterDisplay-Medium.woff2?v=4.1") format("woff2");
}

:root {
  --ink: #101817;
  --muted: #55645f;
  --teal: #0f766e;
  --teal-dark: #0b4f49;
  --bright: #17b8a6;
  --panel: #f3fffc;
  --line: rgba(15, 118, 110, 0.16);
  --shadow: 0 18px 50px rgba(11, 79, 73, 0.09);
  --white: #ffffff;
  --display: "Inter Display", Inter, ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.mid { width: min(760px, 100% - 48px); margin-inline: auto; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 20px; text-decoration: none; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a.btn { color: #fff; min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-links { position: absolute; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 24px; }
.menu-links a { display: block; padding: 14px 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-links a.btn { display: flex; margin-top: 20px; border: 0; color: #fff; }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; text-wrap: balance; }
h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--bright); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -0.02em; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* Sections */
.sec { position: relative; padding: 104px 0; }
.sec.panel { background: linear-gradient(180deg, var(--panel), #fff); }
.sec.tight { padding: 64px 0; }
.head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.head .label, .label { display: block; margin-bottom: 14px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.head p { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 19px; }
.action { margin-top: 52px; text-align: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(23, 184, 166, 0.2), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.pill { display: inline-block; margin: 0 0 24px; color: var(--teal); font-family: var(--serif); font-size: 23px; font-style: italic; line-height: 1.25; }
.hero h1 { max-width: 1000px; margin-inline: auto; }
.sub { max-width: 690px; margin: 26px auto 0; color: var(--muted); font-size: 20px; }
.hero .btn { margin-top: 34px; }
.trustline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 15px; font-weight: 500; }
.trustline span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--bright); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 1px solid rgba(23, 184, 166, 0.74); border-radius: 8px; background: var(--teal); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background 0.18s ease; }
.btn:hover { background: var(--teal-dark); }
a:focus-visible, summary:focus-visible, .door:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Trust band */
.trust { padding: 56px 0; background: var(--panel); border-block: 1px solid var(--line); text-align: center; }
.trust h2 { margin-bottom: 36px; font-size: clamp(30px, 3.6vw, 44px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 52px; }
.lg { display: inline-flex; align-items: center; gap: 9px; color: #27322f; }
.lg img { height: 38px; width: auto; max-width: 190px; filter: grayscale(1) brightness(0); opacity: 0.74; }
.lg.pass { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.lg.pass img { height: 30px; border-radius: 7px; filter: grayscale(1); opacity: 1; }
.lg.word { font-family: var(--serif); font-size: 31px; font-style: italic; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.badges span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.logostrip { padding: 40px 0; border-block: 1px solid var(--line); text-align: center; }
.logostrip .label { margin-bottom: 22px; }

/* Self-identify cards */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.door { display: flex; flex-direction: column; padding: 38px 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.18s ease, box-shadow 0.18s ease; cursor: pointer; }
.door:hover { border-color: var(--bright); box-shadow: 0 22px 60px rgba(11, 79, 73, 0.17); }
.door .who { display: block; margin-bottom: 18px; color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.door .prob { flex: 1; margin-bottom: 28px; color: var(--muted); font-size: 18px; }
.door .go { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 14px; border-radius: 8px; background: var(--teal); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 500; transition: background 0.18s ease; }
.door:hover .go { background: var(--teal-dark); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 30px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.stat b { display: block; color: var(--teal-dark); font-family: var(--display); font-size: clamp(34px, 3.8vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* Screenshots */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 22px; }
.shot { margin: 0; }
.shot .frame { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.shots .frame { max-height: 620px; }

/* Testimonial wall */
.wall { columns: 2; column-gap: 24px; }
.wall figure { break-inside: avoid; margin: 0 0 24px; }
.wall.one { columns: 1; max-width: 780px; margin-inline: auto; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(2, 1fr); }
.card { padding: 30px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card .tag { display: block; margin-bottom: 12px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.col { padding: 34px 30px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.col.good { background: var(--teal-dark); border-color: var(--teal-dark); color: #eafaf7; }
.col h3 { margin-bottom: 20px; }
.col.good h3 { color: #fff; }
.col ul { margin: 0; padding: 0; list-style: none; }
.col li { position: relative; padding: 0 0 14px 28px; }
.col li:last-child { padding-bottom: 0; }
.col li::before { content: "\00d7"; position: absolute; left: 2px; top: -1px; color: #a33; font-weight: 700; }
.col.good li::before { content: "\2713"; color: var(--bright); }

/* Bars */
.chart { padding: 32px 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.chart h3 { margin-bottom: 22px; font-size: 20px; }
.bar { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.bar:last-of-type { margin-bottom: 0; }
.bar i { display: flex; align-items: center; justify-content: flex-end; min-width: 92px; height: 42px; padding: 0 12px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--bright)); color: #fff; font-style: normal; white-space: nowrap; }
.chart small { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Timeline */
.line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.line div { position: relative; padding: 34px 20px 0; border-top: 3px solid var(--bright); }
.line div::before { content: ""; position: absolute; top: -10px; left: 20px; width: 17px; height: 17px; border-radius: 50%; background: var(--teal); }
.line b { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 20px; font-weight: 500; }
.line span { color: var(--muted); font-size: 16px; }

/* Founder */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 28px; max-width: 780px; margin-inline: auto; align-items: start; }
.founder img { width: 120px; height: 120px; border-radius: 50%; }
.founder h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 40px); }
.founder strong { display: block; margin-top: 18px; }

/* Case cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.18s ease; }
a.case:hover { border-color: var(--bright); }
.case .pic { height: 210px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.case .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case .pic.logo { display: flex; align-items: center; justify-content: center; }
.case .pic.logo img { width: auto; height: 62px; object-fit: contain; filter: grayscale(1) brightness(0); opacity: 0.75; }
.case .pic.logo .lg.word { font-size: 40px; }
.lg.multi img, .case .pic.logo.multi img { filter: grayscale(1); mix-blend-mode: multiply; opacity: 0.9; }
.prose .shots { width: min(1040px, 100vw - 48px); margin: 36px 0; position: relative; left: 50%; transform: translateX(-50%); }
.prose .shots .shot { margin: 0; }
.cases.two { grid-template-columns: repeat(2, 1fr); max-width: 768px; }
.wide { max-width: 900px; margin: 0 auto; }
.case .txt { display: flex; flex: 1; flex-direction: column; padding: 26px 24px; }
.case b { display: block; margin-bottom: 8px; color: var(--teal-dark); font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.case h3 { margin-bottom: 8px; font-size: 19px; }
.case p { flex: 1; color: var(--muted); font-size: 16px; }
.case .more { margin-top: 16px; color: var(--teal); font-weight: 600; }
.group { margin-bottom: 72px; }
.group:last-child { margin-bottom: 0; }
.group > h3 { margin-bottom: 24px; font-size: 26px; }

/* Long copy */
.prose h2 { margin: 72px 0 24px; font-size: clamp(28px, 3.2vw, 38px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 20px; padding: 0; list-style: none; }
.prose li { position: relative; padding: 0 0 14px 28px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--bright); }
.prose .shot, .prose .chart { margin: 36px 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 40px 22px 0; font-family: var(--display); font-size: 20px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; color: var(--teal); font-size: 26px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* Closing band */
.close { position: relative; overflow: hidden; padding: 104px 0; background: var(--panel); text-align: center; }
.close::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 1100px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(23, 184, 166, 0.22), transparent); pointer-events: none; }
.close .wrap { position: relative; }
.close h2 { max-width: 820px; margin-inline: auto; }
.close p { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 19px; }
.close .btn { margin-top: 32px; }
.close .fine { margin-top: 20px; font-size: 14px; }
.close .doors { margin-top: 48px; text-align: left; }

/* Footer */
.site-foot { padding: 64px 0 44px; background: var(--ink); color: #c8d6d2; font-size: 15px; }
.site-foot .brand { color: #fff; }
.site-foot .brand img { padding: 3px; border-radius: 8px; background: #fff; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.foot-brand p { max-width: 340px; margin-top: 16px; }
.foot-col h2 { margin-bottom: 14px; color: #fff; font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-col a { display: block; padding: 5px 0; color: #e6efec; text-decoration: none; }
.foot-col a:hover { color: var(--bright); }
.foot-legal { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; line-height: 1.6; }
.foot-legal p { max-width: 900px; margin-bottom: 10px; }
.foot-legal strong { color: #fff; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
  .doors, .stats, .cards, .cases, .cases.two, .compare, .split, .shots { grid-template-columns: 1fr; }
  .cases.two { max-width: none; }
  .split { gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .cards.four, .cards.two { grid-template-columns: 1fr; }
  .wall { columns: 1; }
  .line { grid-template-columns: 1fr; gap: 28px; }
  .line div { padding: 0 0 0 30px; border-top: 0; border-left: 3px solid var(--bright); }
  .line div::before { top: 2px; left: -10px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .mid { width: calc(100% - 40px); }
  .sec, .close { padding: 72px 0; }
  .hero { padding: 64px 0 60px; }
  .head { margin-bottom: 40px; }
  .pill { font-size: 20px; }
  .sub, .head p { font-size: 18px; }
  .btn { width: 100%; padding: 12px 18px; }
  .nav a.btn, .menu-links a.btn { width: auto; }
  .logos { gap: 22px 30px; }
  .lg img { height: 28px; max-width: 130px; }
  .lg.pass { font-size: 20px; }
  .lg.pass img { height: 24px; }
  .lg.word { font-size: 25px; }
  .founder { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Buttons: raised and pressable, modelled on dropkickcopy.com. Cards: flat, ruled, no shadows. Set November 7, 2026. */
.btn, .door .go {
  min-height: 52px;
  padding: 12px 31px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.btn:hover, .door:hover .go { background: #128a80; }
.btn:active, .door:active .go { border-bottom-width: 2px; transform: translateY(2px); }
.nav a.btn { min-height: 42px; padding: 8px 16px; font-size: 13px; }

.door, .card, .col, .chart, .case, .stat {
  border: 0;
  border-top: 3px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.door, .card, .col, .chart { padding: 22px 0 0; }
.stat { padding: 20px 8px 0; }
.door:hover { border-color: var(--teal); box-shadow: none; }
.door:hover .who { color: var(--teal); }
.case:hover { box-shadow: none; }
.shot .frame { border-color: rgba(16, 24, 23, 0.18); border-radius: 4px; box-shadow: none; }
.badges span { border-radius: 4px; }
.door .who { font-size: 26px; }
.col.good { padding: 22px 26px 12px; border-top-color: var(--teal-dark); }
.case .txt { padding: 20px 0 0; }
a.case:hover { border-color: var(--teal); }
.case .pic img { object-position: left top; }
