/* Dometra website.
   Layout: a calm paper page; a blue hero band that echoes the app icon's
   waves; feature rows alternate text and phone; one "month of renting"
   ruler as the signature element. */

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(assets/fonts/unbounded-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(assets/fonts/unbounded-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(assets/fonts/unbounded-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(assets/fonts/unbounded-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(assets/fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(assets/fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(assets/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(assets/fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(assets/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(assets/fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(assets/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(assets/fonts/manrope-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }

:root {
  --paper: #FAFCFF;
  --surface: #FFFFFF;
  --ink: #10294F;
  --text: #22324D;
  --muted: #5D6E86;
  --line: #DCE6F1;
  --blue: #065BD8;
  --sky: #11B4F1;
  --blue-soft: #E8F2FE;
  --hero-from: #0A4FC0;
  --hero-to: #0B79E3;
  --on-hero: #FFFFFF;
  --on-hero-muted: #CFE4FF;
  --green: #16A05A;
  --amber: #D9971F;
  --amber-soft: #FFF4DC;
  --red: #D64545;
  --shadow: 0 30px 60px -28px rgba(16, 41, 79, 0.45);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1426; --surface: #0F1E36; --ink: #EAF2FF; --text: #C9D6EA; --muted: #8FA2BD;
    --line: #213452; --blue: #4B9BFF; --sky: #3CC6FF; --blue-soft: #132A4D;
    --hero-from: #08306F; --hero-to: #0A4FAE; --on-hero: #FFFFFF; --on-hero-muted: #B9D5FF;
    --green: #3CCB7F; --amber: #F0B44A; --amber-soft: #3A2E12; --red: #FF7A7A;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1426; --surface: #0F1E36; --ink: #EAF2FF; --text: #C9D6EA; --muted: #8FA2BD;
  --line: #213452; --blue: #4B9BFF; --sky: #3CC6FF; --blue-soft: #132A4D;
  --hero-from: #08306F; --hero-to: #0A4FAE; --on-hero: #FFFFFF; --on-hero-muted: #B9D5FF;
  --green: #3CCB7F; --amber: #F0B44A; --amber-soft: #3A2E12; --red: #FF7A7A;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 600; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.08; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); line-height: 1.15; }
h3 { font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 0.95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-weight: 800; font-size: 0.8rem; }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 0; }
.btn-light { background: var(--on-hero); color: #0A3E97; }
.btn-ghost { color: var(--on-hero); border: 1.5px solid color-mix(in srgb, var(--on-hero) 45%, transparent); }
.btn small { display: block; font-weight: 600; font-size: 0.72rem; opacity: 0.75; line-height: 1; }
.btn .two { display: flex; flex-direction: column; line-height: 1.15; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: var(--on-hero); }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 38%; background:
  radial-gradient(120% 90% at 20% 100%, color-mix(in srgb, var(--sky) 70%, transparent) 0 45%, transparent 46%),
  radial-gradient(110% 80% at 85% 110%, color-mix(in srgb, var(--sky) 45%, transparent) 0 50%, transparent 51%);
  opacity: 0.55; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 88px) 0; }
.hero h1 { color: var(--on-hero); }
.hero .lead { color: var(--on-hero-muted); margin-top: 20px; }
.hero .eyebrow { color: var(--on-hero-muted); }
.hero-copy { display: grid; gap: 4px; padding-bottom: clamp(32px, 6vw, 88px); min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--on-hero-muted); font-weight: 700; font-size: 0.92rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.hero-phones .phone:first-child { transform: translate(18%, -6%) scale(0.86); opacity: 0.95; }
.hero-phones .phone:last-child { margin-left: -28%; z-index: 2; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { min-height: 0; }
  .hero-phones .phone { width: min(250px, 58vw); }
}

/* Phone frame around a screenshot */
.phone { width: min(300px, 74vw); border-radius: 46px; padding: 9px; background: #0D1522; box-shadow: var(--shadow), inset 0 0 0 1.5px #2C3A4E; flex: none; }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #F7FAFC; }
.hero .phone { margin-bottom: -60px; }

/* Month ruler */
.month { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 28px; }
.ruler-scroll { overflow-x: auto; padding-bottom: 6px; }
.ruler { display: grid; grid-template-columns: repeat(30, minmax(22px, 1fr)) minmax(54px, 1.6fr); gap: 4px; min-width: 760px; align-items: end; }
.day { display: grid; gap: 6px; justify-items: center; font-variant-numeric: tabular-nums; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.day i { display: block; width: 100%; height: 34px; border-radius: 7px; background: var(--blue-soft); }
.day.pay i { background: var(--blue); }
.day.read i { background: var(--amber); opacity: 0.55; }
.day.read.ping i { opacity: 1; box-shadow: inset 0 -6px 0 rgba(0,0,0,0.12); }
.day.next i { background: repeating-linear-gradient(135deg, var(--green), var(--green) 6px, color-mix(in srgb, var(--green) 70%, transparent) 6px, color-mix(in srgb, var(--green) 70%, transparent) 12px); }
.day .hide { visibility: hidden; }
.month-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.leg { display: grid; gap: 6px; align-content: start; }
.leg b { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--ink); }
.leg b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.leg p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .month-legend { grid-template-columns: minmax(0, 1fr); } }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip .feature-media { order: -1; }
.feature-copy { display: grid; gap: 16px; min-width: 0; }
.feature-copy p { color: var(--muted); max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 6px; background: var(--blue-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.32em + 4px); width: 5px; height: 8px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.feature-media { display: flex; justify-content: center; gap: 18px; }
.feature-media .phone:nth-child(2) { margin-top: 56px; }
.lights { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: 0.92rem; }
.lights span { display: flex; align-items: center; gap: 8px; }
.lights span::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { width: min(260px, 64vw); }
  .feature-media .phone:nth-child(2) { display: none; }
}

/* Tenants band */
.band { background: var(--blue-soft); }

/* Small feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.cell h3 { font-size: 1.08rem; }
.cell p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Trust */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.trust dl { margin: 0; display: grid; gap: 18px; }
.trust dt { font-weight: 800; color: var(--ink); }
.trust dd { margin: 4px 0 0; color: var(--muted); }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 10px; }
.price .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.4rem); color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--ink); padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--blue); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--blue); }

/* Legal pages */
.doc { max-width: 46rem; padding-block: 48px 80px; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-style: normal; font-weight: 600; margin-bottom: 24px; display: block; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.doc p { margin: 0 0 14px; }
.doc .note { color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

.support { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 10px; }
.support code { font-family: var(--body); font-weight: 800; color: var(--ink); background: var(--blue-soft); padding: 2px 8px; border-radius: 8px; user-select: all; }
