/* FlipHub: one stylesheet for all pages. No build step, no external requests.
   Type: Sofia Sans (body) and Sofia Sans Condensed (headlines, figures), self-hosted in /fonts.
   Colors come from the logo: forest, moss and leaf greens, and the night ink of the wordmark. */

@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-cyrillic.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/fonts/sofia-sans-condensed-cyrillic.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/fonts/sofia-sans-condensed-latin.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #0f2a33;
  --ink-2: #3c525c;
  --muted: #5f737b;
  --line: #d4dedb;
  --forest: #0f4d34;
  --moss: #1c6b44;
  --moss-hover: #155636;
  --on-moss: #ffffff;
  --leaf: #2fae66;
  --leaf-soft: #e1f2e8;
  --dot: #a9b8b4;
  --bad: #b2362c;
  --body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sofia Sans Condensed", "Sofia Sans", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c181d;
    --surface: #112229;
    --ink: #e6eef0;
    --ink-2: #b4c5ca;
    --muted: #889ea5;
    --line: #22363d;
    --forest: #5cc38d;
    --moss: #2fae66;
    --moss-hover: #46c27b;
    --on-moss: #05160d;
    --leaf: #46c97d;
    --leaf-soft: #12301f;
    --dot: #50666d;
    --bad: #ef7d72;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; font-kerning: normal; }
a { color: var(--moss); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 600px) { .container { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 8px;
  border: 0; background: var(--moss); color: var(--on-moss);
  font: inherit; font-size: 17px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--moss-hover); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.text-link { font-weight: 600; }

/* Hero */
.hero { padding-block: 48px 64px; }
.hero-grid { display: grid; gap: 48px; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 7.4vw, 88px); line-height: .96; letter-spacing: -.012em;
}
.lede { margin-top: 22px; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.status { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 46ch; }
@media (min-width: 960px) {
  .hero { padding-block: 80px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: end; }
}

/* The comparison: one listing among similar ones, by price per m² */
.compare { margin: 0; padding-top: 18px; border-top: 3px solid var(--ink); min-width: 0; }
.compare-title { font-weight: 700; font-size: 20px; }
.compare-sub { margin-top: 2px; font-size: 15px; color: var(--muted); }
.strip { position: relative; height: 176px; margin-top: 10px; }
.strip::before { content: ""; position: absolute; left: 0; right: 0; top: 96px; border-top: 1px solid var(--line); }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li {
  position: absolute; left: var(--x); top: calc(96px + var(--y) * 13px);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--dot);
}
.me-dot {
  position: absolute; left: var(--x); top: 96px;
  width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--leaf); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--forest);
}
.pin { position: absolute; left: var(--x); }
.pin::before { content: ""; position: absolute; left: 0; width: 0; }
.pin-label { position: absolute; left: -1px; display: grid; white-space: nowrap; font-size: 14px; line-height: 1.25; color: var(--muted); }
.pin-label b { font-family: var(--display); font-weight: 750; font-size: 24px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.pin-median { top: 0; height: 112px; }
.pin-median::before { top: 48px; bottom: 0; border-left: 1px dashed var(--ink-2); }
.pin-median .pin-label { top: 0; padding-left: 8px; border-left: 1px dashed var(--ink-2); }
.pin-me { top: 106px; height: 70px; }
.pin-me::before { top: 0; height: 18px; border-left: 2px solid var(--forest); }
.pin-me .pin-label { top: 22px; left: -10px; }
.pin-me .pin-label b { color: var(--forest); }
.compare-facts { margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.compare-facts dt { font-size: 14px; color: var(--muted); }
.compare-facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 750; font-size: clamp(21px, 5.8vw, 26px); line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare-facts .good { color: var(--forest); }
.compare-check { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.compare figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .dots li { animation: dot-in .35s ease-out both; animation-delay: calc(var(--i) * 28ms); }
  .me-dot, .pin { animation: dot-in .45s ease-out both; animation-delay: .8s; }
  @keyframes dot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 50px); line-height: 1; letter-spacing: -.005em; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
@media (min-width: 900px) { .section { padding-block: 96px; } }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 32px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-num { display: block; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--forest); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* Heading on the left, content on the right */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; } }
.who { margin: 0; display: grid; }
.who div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.who div:first-child { padding-top: 0; }
.who dt { font-weight: 700; font-size: 21px; }
.who dd { margin: 4px 0 0; color: var(--ink-2); }
.copy p + p { margin-top: 16px; }
.copy p { color: var(--ink-2); max-width: 62ch; }
.copy p:first-child { font-size: 21px; line-height: 1.45; color: var(--ink); }

/* Signup */
.join-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.join-text p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
@media (min-width: 600px) { .panel { padding: 32px; } }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
label, legend { font-size: 16px; font-weight: 650; }
legend { padding: 0; margin-bottom: 10px; }
.req { color: var(--bad); }
.opt { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
textarea { resize: vertical; min-height: 104px; }
input:focus, textarea:focus { outline: 2px solid var(--moss); outline-offset: 0; border-color: var(--moss); }
input[aria-invalid="true"] { border-color: var(--bad); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; font-weight: 500; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.choice input:checked + span { border-color: var(--moss); background: var(--leaf-soft); color: var(--forest); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
.error { color: var(--bad); font-size: 15px; }
.error:empty { display: none; }
.fine { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: var(--muted); }
/* Credit for the studio that built the site; the wordmark is the one-colour file from aigenta.bg/brand, drawn as a mask so it takes the text colour */
.made-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.made-by:hover { color: var(--ink); }
.aigenta-mark {
  display: inline-block; height: 16px; aspect-ratio: 350.02 / 89.4; background: var(--ink);
  -webkit-mask: url("/aigenta-wordmark-mono.svg") center / contain no-repeat;
  mask: url("/aigenta-wordmark-mono.svg") center / contain no-repeat;
}
@media (min-width: 760px) { .made-by { margin-left: auto; } }

/* Text pages: success, privacy */
.page { padding-block: 56px 80px; }
.prose h1 { font-size: clamp(40px, 5.6vw, 60px); }
.prose h2 { font-family: var(--body); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 36px; }
.prose p, .prose ul { margin-top: 12px; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
