/* mybuild.ge
   One family (Noto Sans Georgian, variable weight and width). The four colors of the
   app icon are used only where they carry data: the four cost categories. */

@font-face {
  font-family: "MB Sans";
  src: url("/fonts/noto-sans-georgian-georgian.woff2") format("woff2-variations"),
       url("/fonts/noto-sans-georgian-georgian.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "MB Sans";
  src: url("/fonts/noto-sans-georgian-latin.woff2") format("woff2-variations"),
       url("/fonts/noto-sans-georgian-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  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: "MB Sans";
  src: url("/fonts/noto-sans-georgian-latin-ext.woff2") format("woff2-variations"),
       url("/fonts/noto-sans-georgian-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

:root {
  --night: #132434;
  --night-soft: #1d3248;
  --paper: #f2f4f7;
  --white: #ffffff;
  --ink: #132434;
  --slate: #536477;
  --mist: #a9b7c6;
  --line: #d6dde5;

  /* App icon stripes: face and side. */
  --cream: #faf4e4;  --cream-side: #ddd1b6;
  --teal: #48b9bd;   --teal-side: #2b8f94;
  --amber: #f7b851;  --amber-side: #dc962b;
  --coral: #fd5d51;  --coral-side: #d83a34;

  --ok: #167a4b;
  --late: #9a5a12;
  --off: #4d5b6b;
  --bad: #b8322a;

  --font: "MB Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-stretch: 75%;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 820; font-stretch: 62.5%; line-height: 1.02; }
h2 { font-size: var(--step-3); font-weight: 760; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 87.5%; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--coral-side); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--amber);
  color: var(--night);
  font-weight: 700;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Show only the company line for the page language. */
html[lang="ka"] .lang-en,
html[lang="en"] .lang-ka { display: none; }

/* ------------------------------------------------------------ header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 760;
  font-stretch: 87.5%;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
}
.brand img { width: 2.25rem; height: 2.25rem; }

.lang {
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
}
.lang:hover { opacity: 1; }

/* ------------------------------------------------------------ home: hero */

.masthead { background: var(--night); color: var(--cream); }

.hero {
  background: var(--night);
  color: var(--cream);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 6vw, 5rem);
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: end; }
}

.hero h1 { max-width: 15ch; }
.hero-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--mist);
  font-size: var(--step-1);
  line-height: 1.6;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.soon li {
  padding: 0.55rem 1rem;
  border: 1.5px dashed rgba(250, 244, 228, 0.45);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cream);
}

/* The estimate: the icon's four stripes as the four cost categories. */

.estimate { margin: 0; }

.estimate-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(250, 244, 228, 0.18);
  color: var(--mist);
  font-size: var(--step--1);
}
.estimate-total strong {
  color: var(--cream);
  font-size: var(--step-3);
  font-weight: 760;
  font-stretch: 75%;
  line-height: 1;
}

.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2vw, 1.1rem);
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.bars li { display: flex; flex-direction: column; min-width: 0; }

.bar-slot {
  height: clamp(11rem, 26vw, 16rem);
  display: flex;
  align-items: flex-end;
}
.bar {
  width: 100%;
  clip-path: polygon(0 1.4rem, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, var(--face) 0 70%, var(--side) 70% 100%);
  transform-origin: 50% 100%;
  animation: rise 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.bars li:nth-child(2) .bar { animation-delay: 90ms; }
.bars li:nth-child(3) .bar { animation-delay: 180ms; }
.bars li:nth-child(4) .bar { animation-delay: 270ms; }

.c-labor     { --face: var(--cream); --side: var(--cream-side); }
.c-materials { --face: var(--teal);  --side: var(--teal-side); }
.c-furniture { --face: var(--amber); --side: var(--amber-side); }
.c-other     { --face: var(--coral); --side: var(--coral-side); }

/* Heights follow the example: 27 082, 32 891, 23 071, 12 457 (largest = 100%). */
.c-labor .bar     { height: 82.3%; }
.c-materials .bar { height: 100%; }
.c-furniture .bar { height: 70.1%; }
.c-other .bar     { height: 37.9%; }

.bars strong {
  margin-top: 0.85rem;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
  font-weight: 700;
  font-stretch: 87.5%;
  white-space: nowrap;
}
.bars span.label {
  color: var(--mist);
  font-size: var(--step--1);
  line-height: 1.35;
}

.estimate figcaption {
  margin-top: 1.5rem;
  color: var(--mist);
  font-size: var(--step--1);
  line-height: 1.55;
  max-width: 36rem;
}

@keyframes rise {
  from { transform: scaleY(0.04); }
  to   { transform: scaleY(1); }
}

/* ------------------------------------------------------------ home: sections */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-grid { display: grid; gap: 1.75rem; }
@media (min-width: 52rem) {
  .section-grid { grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 3rem; }
}
.section-intro p { margin-top: 1rem; color: var(--slate); max-width: 28rem; }

.features { margin: 0; }
.features div {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}
.features div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 40rem) {
  .features div { grid-template-columns: 13rem 1fr; gap: 1.5rem; }
}
.features dt {
  font-weight: 700;
  font-stretch: 87.5%;
  font-size: var(--step-1);
  line-height: 1.35;
}
.features dd { margin: 0; color: var(--slate); max-width: 38rem; }

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 2.4rem;
  font-weight: 820;
  font-stretch: 62.5%;
  line-height: 1;
  color: var(--teal-side);
}

.partner-note {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--coral);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 44rem;
}
.partner-note h3 { margin-bottom: 0.4rem; }
.partner-note p { color: var(--slate); }
.partner-note p + p { margin-top: 0.6rem; }

/* ------------------------------------------------------------ documents */

.doc-top { border-bottom: 1px solid var(--line); background: var(--white); }

.doc {
  max-width: 44rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.doc .updated { margin-top: 0.75rem; color: var(--slate); font-size: var(--step--1); }
.doc .lede { margin-top: 1.75rem; font-size: var(--step-1); line-height: 1.6; }
.doc h2 { margin-top: 2.75rem; font-size: var(--step-2); font-stretch: 87.5%; font-weight: 720; }
.doc h3 { margin-top: 1.75rem; font-size: var(--step-0); font-stretch: 100%; }
.doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc h3 + ul { margin-top: 0.75rem; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin-block: 0; }
.doc h2 + ol, .doc p + ol { margin-top: 0.75rem; }
.doc li + li { margin-top: 0.4rem; }
.doc li::marker { color: var(--slate); }

.action {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 1.25rem;
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius);
  font-weight: 650;
  text-decoration: none;
}
.action:hover { background: var(--night-soft); }
.doc .action + p { margin-top: 1.25rem; }

.box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: var(--night);
  color: var(--mist);
  font-size: var(--step--1);
  padding-block: 3rem 2.25rem;
}
.site-footer .brand { color: var(--cream); }
.site-footer a { color: var(--cream); }

.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid p { margin-top: 0.75rem; max-width: 22rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 0.45rem; }
.footer-grid h2 {
  font-size: var(--step--1);
  font-weight: 600;
  font-stretch: 100%;
  color: var(--mist);
  margin-bottom: 0.6rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 244, 228, 0.14);
}

/* ------------------------------------------------------------ 404 */

.notfound { padding-block: clamp(4rem, 12vw, 8rem); max-width: 40rem; }
.notfound p { margin-top: 1rem; color: var(--slate); }
.notfound p[lang="en"] { margin-top: 2rem; }

/* ------------------------------------------------------------ discount check (/d/) */

.verify {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.verify-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.verify-top > span { color: var(--slate); font-size: var(--step--1); font-weight: 600; }

.verify-main { flex: 1; display: flex; }

.v {
  flex: 1;
  min-width: 0;
  padding: clamp(1.75rem, 6vw, 3.5rem) var(--gutter) clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
}
.v[hidden] { display: none; }
.v-inner { max-width: 34rem; margin-inline: auto; }

.v-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
  color: var(--mist);
}
.v-valid { background: var(--ok); }
.v-expired { background: var(--late); }
.v-inactive, .v-error { background: var(--off); }
.v-not_found { background: var(--bad); }

.v-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-1);
  font-weight: 700;
}
.v-status svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-percent {
  margin-top: 0.75rem;
  font-size: clamp(4.5rem, 25vw, 9rem);
  font-weight: 820;
  font-stretch: 62.5%;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.v-percent::before { content: "−"; }

.v h1 { margin-top: 1rem; font-size: var(--step-3); }
.v-company { margin-top: 0.5rem; font-size: var(--step-1); opacity: 0.92; }
.v h1 + p:not(.v-company), .v-company + p { margin-top: 1rem; }

.v-conditions {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.v-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.75rem 2rem;
  margin: 1.75rem 0 0;
}
.v-meta dt { font-size: var(--step--1); opacity: 0.85; }
.v-meta dd { margin: 0; font-size: var(--step-1); font-weight: 700; white-space: nowrap; }

.v-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: var(--step--1);
}

.v-retry {
  margin-top: 1.5rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.verify-foot {
  padding: 1rem var(--gutter) 1.25rem;
  background: var(--white);
  color: var(--slate);
  font-size: var(--step--1);
  text-align: center;
}

/* ------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
