/* FreeMe.com v2. Layout idea: a calm, left-aligned page that reads like a straight answer, with one deep green for
   money moving toward you and one marker yellow for the single phrase that matters in each headline. */
:root {
  color-scheme: light;
  --paper: #f4f7f5;
  --card: #ffffff;
  --ink: #10201a;
  --soft: #4d5f57;
  --green: #0b6b48;
  --green-deep: #074a32;
  --mint: #dff0e8;
  --mark: #ffd84a;
  --rule: #d5dfda;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  --shadow: 0 1px 2px rgba(16, 32, 26, .06), 0 12px 32px rgba(16, 32, 26, .08);
}
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--green); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 10px 14px; border-radius: 10px; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 76px); }
h2 { font-weight: 800; font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 94%, transparent 94%); color: inherit; padding-inline: 2px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 58ch; }
.fine { font-size: 14.5px; color: var(--soft); max-width: 70ch; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--mint); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 247, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: block; width: 150px; flex: none; }
.logo svg { display: block; width: 100%; height: auto; }
.nav { display: none; gap: 26px; margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-left: 0; } }

/* hero */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(48px, 6vw, 84px); }
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.hero__go span { font-size: 15.5px; color: var(--soft); }

.what { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.what__q { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips button { min-height: 52px; border: 2px solid var(--rule); border-radius: 14px; background: var(--card); font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.5vw, 18px); cursor: pointer; }
.chips button:hover { border-color: var(--green); }
.chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.what__a { min-height: 5.4em; background: var(--mint); border-radius: 14px; padding: 18px 20px; font-size: 19px; line-height: 1.45; color: var(--green-deep); font-weight: 600; }

/* sections */
.sec { padding-block: clamp(56px, 7vw, 100px); }
.sec--card { background: var(--card); border-block: 1px solid var(--rule); }
.sec__head { display: grid; gap: 14px; margin-bottom: 40px; }

.two { display: grid; gap: 22px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.way { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.way__tag { justify-self: start; font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 5px 12px; border-radius: 999px; }
.way--earn .way__tag { background: var(--green); }
.way h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.apps { display: grid; gap: 0; }
.apps li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-top: 1px solid var(--rule); }
.apps svg { width: 44px; height: 44px; }
.apps b { font-family: var(--font-head); font-weight: 700; display: block; line-height: 1.25; }
.apps span { font-size: 15.5px; color: var(--soft); line-height: 1.35; display: block; }
.pill { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--soft); }
.pill--on { background: var(--mint); border-color: transparent; color: var(--green-deep); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks svg { width: 22px; height: 22px; margin-top: 3px; color: var(--green); }

/* calculator */
.calc { display: grid; gap: 26px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.calc__in { display: grid; gap: 26px; }
.slide { display: grid; gap: 8px; }
.slide label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.slide output { font-size: 28px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.slide input[type=range] { width: 100%; accent-color: var(--green); height: 32px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.plans legend { padding: 0; margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; }
.plans label { position: relative; display: block; cursor: pointer; }
.plans input { position: absolute; opacity: 0; inset: 0; }
.plans span { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 14px; background: var(--card); font-size: 15px; line-height: 1.3; }
.plans b { font-family: var(--font-head); font-size: 17px; }
.plans input:checked + span { border-color: var(--green); background: var(--mint); }
.plans input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.calc__out { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.calc__rows { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.calc__rows li { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 16.5px; }
.calc__rows span:last-child { font-weight: 700; white-space: nowrap; }
.calc__sum { display: grid; gap: 2px; }
.calc__sum b { font-family: var(--font-head); font-weight: 800; font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--mark); font-variant-numeric: tabular-nums; }
.calc__sum span { font-family: var(--font-head); font-weight: 600; }
.calc__out .fine { color: rgba(255, 255, 255, .78); }

/* where the money comes from */
.flow { display: grid; gap: 14px; counter-reset: flow; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.flow li { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.flow b { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4vw, 48px); line-height: 1; color: var(--green); letter-spacing: -0.03em; }
.flow h3 { font-size: 19px; }
.flow p { font-size: 16.5px; color: var(--soft); }

/* never */
.never { background: var(--green-deep); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.never h2 mark { color: var(--ink); background: var(--mark); padding: 0 8px; border-radius: 6px; }
.never__grid { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 720px) { .never__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .never__grid { grid-template-columns: repeat(5, 1fr); } }
.never__grid li { border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.never__grid svg { width: 26px; height: 26px; color: var(--mark); }
.never__grid b { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; }
.never__grid span { font-size: 15.5px; color: rgba(255, 255, 255, .82); line-height: 1.45; }

/* steps */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.steps p { color: var(--soft); font-size: 17px; }

/* faq */
.faq { display: grid; gap: 30px; }
@media (min-width: 900px) { .faq { grid-template-columns: .7fr 1.3fr; gap: 56px; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 18.5px; line-height: 1.3; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; color: var(--soft); max-width: 62ch; }

/* last + footer */
.last { background: var(--mint); padding-block: clamp(56px, 7vw, 96px); }
.last__in { display: grid; gap: 20px; justify-items: start; }
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding-block: 40px; font-size: 14.5px; }
.foot__in { display: grid; gap: 18px; }
.foot .logo { width: 130px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-head); font-weight: 600; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { max-width: 80ch; }

/* dialog */
.dlg { border: 0; padding: 0; border-radius: 24px; width: min(560px, 100% - 24px); max-height: calc(100% - 24px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.dlg::backdrop { background: rgba(16, 32, 26, .6); }
.dlg__in { padding: clamp(22px, 4vw, 34px); display: grid; gap: 20px; }
.dlg__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dlg__top h2 { font-size: 28px; }
.dlg__x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form > * { grid-column: 1 / -1; }
@media (min-width: 480px) { .form .half { grid-column: auto; } }
.field { display: grid; gap: 6px; }
.field label, .wants legend { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.field input { min-height: 52px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 12px; background: var(--card); width: 100%; }
.field input:focus { border-color: var(--green); outline: 0; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.err { font-size: 14.5px; font-weight: 600; color: #b3261e; }
.err:empty { display: none; }
.wants { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.wants legend { margin-bottom: 8px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.35; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.joined { display: grid; gap: 14px; justify-items: start; }
.joined[hidden], form[hidden] { display: none; }
.joined__hi { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.joined__link { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--mint); color: var(--green-deep); font-weight: 700; overflow-wrap: anywhere; }
.note { position: fixed; left: 12px; bottom: 12px; z-index: 6; background: var(--mark); color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 520px) { .apps li { grid-template-columns: 44px 1fr; } .apps .pill { grid-column: 2; justify-self: start; } }
.check small { display: block; font-size: 14px; color: var(--soft); }
