/* Funda company site. White editorial pages; navy for the footer and one closing band per page.
   Colours and fonts match the app since 2 Dec 2026: navy #040D2F, blue #1A56FF, Tienne headings, Inter text. */
:root {
  --navy: #040D2F;
  --blue: #1A56FF;
  --sky: #CFE0FF;
  --sky-soft: #EEF3FF;
  --bg: #FFFFFF;
  --soft: #F4F7FC;
  --ink: #040D2F;
  --text: #33415A;
  --muted: #5B6880;
  --line: #DDE5F0;
  --green: #2E7D4F;
  --green-bg: #E5F3EA;
  --amber: #8A5A00;
  --amber-bg: #FCF0D6;
  --red: #C8393B;
  --display: "Tienne", Georgia, "Times New Roman", serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }
p + p { margin-top: 14px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
section { padding-block: 88px; }
.soft { background: var(--soft); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.head { margin-bottom: 48px; }
.head .lede { margin-top: 14px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: 700 16px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0E1C4A; }
.btn-light { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-sky { background: var(--sky); color: var(--navy); }
.site-head .btn { padding: 10px 18px; font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero */
.hero { padding-block: 72px 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lede { margin-top: 20px; }
.hero-art { position: relative; display: flex; justify-content: flex-end; padding-right: 24px; }
.phone { background: #fff; border: 9px solid #0B1433; border-radius: 38px; overflow: hidden; width: 100%; max-width: 280px; aspect-ratio: 270 / 584; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.float-card { position: absolute; left: 0; bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 250px; font-size: 14px; box-shadow: 0 1px 3px rgba(4,13,47,.12), 0 8px 22px -4px rgba(4,13,47,.18); }
.float-card b { display: block; color: var(--ink); font-size: 15px; }
.float-card .bar { display: flex; gap: 4px; margin-top: 10px; }
.float-card .bar span { flex: 1; height: 8px; border-radius: 4px; }
.float-card .legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.float-card .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.trust { border-block: 1px solid var(--line); padding-block: 22px; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; font-size: 15px; font-weight: 600; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--green); margin-right: 8px; }

/* grids and cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.soft .card { border-color: #E0E6EE; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.stat b { display: block; font-family: var(--display); font-size: 44px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b.bad { color: var(--red); }
.stat p { margin-top: 10px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; }

.pill { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.pill.live { background: var(--green-bg); color: var(--green); }
.pill.dev { background: var(--amber-bg); color: var(--amber); }
.pill.next { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.side.flip .side-art { order: -1; }
.side-art { display: flex; justify-content: center; background: var(--soft); border-radius: 20px; padding: 40px 24px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--sky-soft); box-shadow: inset 0 0 0 5px var(--blue); }

.quote { border-left: 4px solid var(--blue); padding: 6px 0 6px 24px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); line-height: 1.4; }
.quote.plain { border-left: 0; padding: 0; font-size: clamp(24px, 2.8vw, 32px); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 700; color: var(--ink); }

table.status { width: 100%; border-collapse: collapse; font-size: 16px; }
.status th, .status td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.price b { display: block; font-family: var(--display); font-size: 32px; color: var(--ink); margin: 6px 0; }
.price.featured { background: var(--navy); border-color: var(--navy); }
.price.featured h3, .price.featured b { color: #fff; }
.price.featured p { color: #BCC6D6; }

details.faq { border-bottom: 1px solid var(--line); padding-block: 6px; }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-size: 20px; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 28px var(--body); color: var(--blue); }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

.contact-card .val { font-size: 20px; font-weight: 700; color: var(--ink); word-break: break-word; user-select: all; }
.copy { margin-top: 10px; background: var(--sky-soft); color: var(--blue); border: 0; border-radius: 8px; padding: 8px 14px; font: 700 14px var(--body); cursor: pointer; }

.band { background: var(--navy); color: #BCC6D6; border-radius: 22px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { margin-top: 10px; max-width: 56ch; }

.page-hero { padding-block: 72px 56px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-hero .lede { margin-top: 16px; }

.prose p { color: var(--text); }
.prose .eyebrow { color: var(--blue); }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* footer */
.site-foot { background: var(--navy); color: #BCC6D6; font-size: 15px; padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid > * { min-width: 0; }
.site-foot img { height: 34px; width: auto; }
.site-foot h4 { font-family: var(--body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot a { color: #BCC6D6; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid #1B2A55; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Menu button from 1120px down: the 7 links plus "Join the beta" need about 1100px in one row. */
@media (max-width: 1120px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px max(24px, env(safe-area-inset-left, 0px)) 18px; }
  .menu-btn { display: block; }
}
@media (max-width: 960px) {
  .hero .wrap, .side { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side.flip .side-art { order: 0; }
  .hero-art { justify-content: center; padding-right: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px max(24px, env(safe-area-inset-left, 0px)) 18px; }
  .menu-btn { display: block; }
  .site-head .btn { display: none; }
  section { padding-block: 64px; }
  .band { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .float-card { position: static; width: auto; margin-top: 16px; }
  .hero-art { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
