/* =====================================================================
   OutRental landing page styles
   Palette: slate-ink text, deep teal brand, marigold highlight, cool white page
   Type: Bricolage Grotesque (headings), Figtree (body)
   ===================================================================== */

:root {
  --ink: #12262f;
  --ink-soft: #46606b;
  --page: #f4f7f8;
  --surface: #ffffff;
  --tint: #e6f0ef;
  --line: #d6e0e3;
  --brand: #0a6b73;
  --brand-dark: #07525a;
  --marigold: #f2b13d;
  --marigold-soft: #fdf0d3;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --info-soft: #e5f1fb;
  --ok: #1d7a46;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(18, 38, 47, 0.06), 0 8px 24px rgba(18, 38, 47, 0.06);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-small { padding: .65rem 1.1rem; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; padding: 1.1rem 1.5rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .75; cursor: progress; }

.spinner {
  display: none; width: 1.1em; height: 1.1em;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 248, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--brand); font: 800 1.35rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand span { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .98rem; }
.main-nav a:hover { color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pill {
  display: inline-block; background: var(--marigold-soft); color: #6b4a07;
  border: 1px solid #f0d594; padding: .4rem .9rem; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; margin-bottom: 1.4rem;
}
.hero h1 { max-width: 14ch; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.hero-note { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* The rent record: the one memorable element on the page */
.record {
  position: relative; margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1rem;
  transform: rotate(1.2deg);
}
.record::before, .record::after {
  content: ""; position: absolute; top: calc(100% - 4.2rem);
  width: 22px; height: 22px; border-radius: 50%; background: var(--page); border: 1px solid var(--line);
}
.record::before { left: -12px; clip-path: inset(0 0 0 50%); }
.record::after { right: -12px; clip-path: inset(0 50% 0 0); }
.record-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.record-title { font: 700 1.15rem/1.2 var(--font-head); }
.record-tag { background: var(--tint); color: var(--brand-dark); font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: var(--r-pill); }
.record-rows { list-style: none; padding: 0; margin: 0; }
.record-rows li {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .8rem;
  padding: .85rem 0; border-bottom: 1px dashed var(--line);
  font-weight: 500;
}
.record-rows li em { font-style: normal; color: var(--ink-soft); font-size: .85rem; }
.tick {
  width: 28px; height: 28px; border-radius: 50%; background: var(--tint); position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 9px; top: 5px; width: 8px; height: 14px;
  border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.record-foot { padding: 1.35rem 0 .6rem; font-size: .9rem; color: var(--ink-soft); }
.record figcaption { border-top: 1px solid var(--line); padding-top: .7rem; font-size: .8rem; color: var(--ink-soft); }

/* One orchestrated moment: the ticks fill in once on load */
@media (prefers-reduced-motion: no-preference) {
  .tick { animation: tick-in .5s ease-out both; animation-delay: var(--d, 0s); }
  .tick::after { animation: tick-draw .35s ease-out both; animation-delay: calc(var(--d, 0s) + .2s); }
  @keyframes tick-in { from { background: var(--line); transform: scale(.7); } to { background: var(--tint); transform: scale(1); } }
  @keyframes tick-draw { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 52rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.6rem 1.6rem 1.2rem;
}
.panel-quiet { background: transparent; border-style: dashed; }
.panel h3 { margin-bottom: .8rem; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding: .38rem 0 .38rem 1.4rem; font-size: 1rem; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1rem; width: 8px; height: 8px;
  border-radius: 2px; background: var(--brand);
}

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.benefit-grid .panel-quiet { grid-column: 1 / -1; }

/* Lifecycle steps (a real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem 1rem;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font: 700 .95rem/1 var(--font-head); margin-bottom: .8rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { font-size: .93rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* Features */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
.fgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.7rem; }
.fgroup-featured { background: var(--ink); color: #e9f1f3; border-color: var(--ink); }
.fgroup-featured h3 { color: #fff; }
.fgroup-featured .fintro { color: #fbe2a7; }
.fgroup h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.fintro { font-size: 1rem; margin-bottom: 1rem; }
dl { margin: 0; }
dt { font-weight: 600; margin-top: .85rem; line-height: 1.35; }
dt:first-child { margin-top: 0; }
dd { margin: .1rem 0 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.fgroup-featured dd { color: #b9cdd3; }
.fnote {
  margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-size: .92rem; color: var(--ink-soft);
}
.fgroup-featured .fnote { border-color: rgba(255,255,255,.25); color: #b9cdd3; }
.center-cta { text-align: center; margin: 2.4rem 0 0; }

/* Different */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.diff-grid article { border-top: 4px solid var(--marigold); padding-top: 1rem; }
.diff-grid p { color: var(--ink-soft); }

/* ---------- Join / form ---------- */
.section-join { background: var(--tint); }
.join-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.join-intro { position: sticky; top: 92px; }
.join-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.ticks li { position: relative; padding: .3rem 0 .3rem 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55rem; width: 7px; height: 13px;
  border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.2rem);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; }
.group { margin: 0 0 2rem; padding: 0 0 1.8rem; border-bottom: 1px solid var(--line); }
.group > legend { font: 700 1.25rem/1.3 var(--font-head); margin-bottom: 1rem; width: 100%; }
.group > legend + .help { margin-top: -.5rem; }
.sub, .sub-label { font-weight: 600; margin: 0 0 .5rem; display: block; }
.choice-set > legend { margin-bottom: .55rem; }

.field { margin: 0 0 1.15rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .98rem; display: block; margin-bottom: .35rem; }
.req, .opt { font-weight: 500; font-size: .8rem; margin-left: .35rem; }
.req { color: var(--brand-dark); }
.opt { color: var(--ink-soft); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid #b9c8cd; border-radius: var(--r-field);
  padding: .8rem .9rem; min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 177, 61, .55); border-color: var(--brand); }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa; }

.phone-wrap, .amount-wrap { display: flex; align-items: stretch; }
.phone-prefix, .amount-prefix {
  display: grid; place-items: center; padding: 0 .85rem; min-height: 48px;
  background: var(--tint); border: 1.5px solid #b9c8cd; border-right: 0;
  border-radius: var(--r-field) 0 0 var(--r-field); font-weight: 600; color: var(--ink-soft);
}
.phone-wrap input, .amount-wrap input { border-radius: 0 var(--r-field) var(--r-field) 0; }
.amount-wrap input { border-radius: 0; }
.amount-unit {
  display: grid; place-items: center; padding: 0 .85rem; min-height: 48px; font-size: .85rem; color: var(--ink-soft);
  background: var(--tint); border: 1.5px solid #b9c8cd; border-left: 0; border-radius: 0 var(--r-field) var(--r-field) 0; text-align: center;
}

.help { font-size: .88rem; color: var(--ink-soft); margin: .35rem 0 0; }
.help.center { text-align: center; margin-top: .9rem; }
.error { font-size: .92rem; color: var(--danger); font-weight: 500; margin: .4rem 0 0; }

/* Choice cards (user type) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.choice { margin: 0; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: block; height: 100%; padding: .75rem .9rem; border: 1.5px solid #b9c8cd; border-radius: 12px;
  font-weight: 600; line-height: 1.3; background: #fff;
}
.choice small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; margin-top: .15rem; }
.choice:hover > span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Feature chips */
.fchoice-group { margin: 1.2rem 0 0; }
.fchoice-title { font-weight: 600; color: var(--ink-soft); font-size: .92rem; margin: 0 0 .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-block; padding: .55rem .9rem; border: 1.5px solid #b9c8cd; border-radius: var(--r-pill);
  font-size: .94rem; line-height: 1.3; background: #fff; transition: background-color .12s, border-color .12s;
}
.chip:hover > span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
#features-set .error { margin-top: .8rem; }
#top-feature-field { margin-top: 1.3rem; }

/* Segmented yes/maybe/not sure/no */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.seg label { margin: 0; font-weight: 600; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: .75rem .4rem; border: 1.5px solid #b9c8cd; border-radius: 10px; background: #fff;
}
.seg label:hover span { border-color: var(--brand); }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
#pay-details { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px dashed var(--line); }

/* Consent */
.consent { margin-top: .4rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--brand); }

/* Honeypot: off-screen, not display:none (some bots skip display:none fields) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Messages */
.banner { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 500; border: 1.5px solid; }
.banner-error { background: var(--danger-soft); border-color: #f0b4af; color: #7d1a14; }
.banner-warn { background: var(--marigold-soft); border-color: #f0d594; color: #6b4a07; }
.banner-info { background: var(--info-soft); border-color: #a9cdea; color: #0f4a7a; }

.success { text-align: center; padding: 2.2rem 1rem; outline: none; }
.success-icon { width: 64px; height: 64px; color: var(--ok); margin-bottom: 1rem; }
.success h3 { font-size: 1.6rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5d5da; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.brand-footer { color: #fff; }
.brand-footer span { color: #fff; }
.footer-line { max-width: 26rem; margin: .8rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: flex-start; }
.footer-nav a { color: #c5d5da; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .problem-grid, .benefit-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid .panel:first-child { grid-column: 1 / -1; }
  .benefit-grid .panel:nth-child(3) { grid-column: 1 / -1; }
  .join-grid { grid-template-columns: 1fr; }
  .join-intro { position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .record { transform: none; max-width: 480px; }
  .feature-groups { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .problem-grid, .benefit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .amount-unit { display: none; }
  .amount-wrap input { border-radius: 0 var(--r-field) var(--r-field) 0; }
  .form-card { padding: 1.2rem; border-radius: 16px; }
}
@media (max-width: 380px) {
  .steps { grid-template-columns: 1fr; }
  .header-inner .btn-small { padding: .6rem .8rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
