/* Trang giới thiệu komodoai.app: giấy vẽ xanh xám, nét mực xanh của app, đường kích thước kiểu bản vẽ quanh mặt bằng.
   Phông của hệ điều hành (không nạp phông ngoài, SEC-7), không script. */
:root {
  --paper: #eef2ef;
  --sheet: #f7f9f8;
  --ink: #15201c;
  --muted: #4c5a55;
  --rule: #c9d4ce;
  --green: #1d6a57;
  --green-deep: #134a3d;
  --on-green: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101614;
    --sheet: #17201d;
    --ink: #e6ece9;
    --muted: #a5b2ad;
    --rule: #2c3833;
    --green: #5fbf9f;
    --green-deep: #86d4ba;
    --on-green: #0c1311;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-deep);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.top,
main > section,
.foot {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- đầu trang ---------- */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--on-green);
}

.btn-sm {
  padding: 8px 14px;
}

.btn-quiet {
  background: transparent;
  color: var(--green);
}

.btn-quiet:hover {
  background: transparent;
  color: var(--green-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 10px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.lead {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- mở đầu: mặt bằng kèm đường kích thước, phối cảnh đặt chồng ---------- */
.hero {
  display: grid;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.07;
  max-width: 15em;
}

.sheet {
  position: relative;
  margin: 0;
  padding: 34px 46px 0 0;
}

.plan {
  position: relative;
}

.plan > img {
  border: 1px solid var(--rule);
  background: var(--sheet);
}

/* đường kích thước: nét mảnh, hai đầu có vạch chéo như bản vẽ kiến trúc, số đo đặt giữa */
.dim {
  position: absolute;
  color: var(--green);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.dim::before,
.dim::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 1.5px;
  background: currentColor;
}

.dim b {
  position: absolute;
  font-weight: 600;
  background: var(--paper);
  padding: 0 6px;
  white-space: nowrap;
}

.dim-x {
  left: 0;
  right: 0;
  top: -20px;
  height: 0;
  border-top: 1px solid currentColor;
}

.dim-x::before,
.dim-x::after {
  top: -1px;
  transform: rotate(-45deg);
}

.dim-x::before {
  left: -5px;
}

.dim-x::after {
  right: -5px;
}

.dim-x b {
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
}

.dim-y {
  top: 0;
  bottom: 0;
  right: -26px;
  width: 0;
  border-left: 1px solid currentColor;
}

.dim-y::before,
.dim-y::after {
  left: -6px;
  transform: rotate(-45deg);
}

.dim-y::before {
  top: -1px;
}

.dim-y::after {
  bottom: -1px;
}

.dim-y b {
  top: 50%;
  left: -10px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  padding: 6px 0;
}

.inset {
  position: absolute;
  left: -14px;
  bottom: -64px;
  width: 40%;
  border: 1px solid var(--rule);
  background: var(--sheet);
}

.sheet figcaption {
  margin-top: 84px;
  margin-left: 42%;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- app làm được gì: chú giải như bảng ký hiệu của bản vẽ ---------- */
.legend,
.steps,
.pricing,
.final {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--rule);
}

.legend-body {
  display: grid;
  gap: 40px;
  align-items: start;
}

.legend dl {
  display: grid;
  gap: 28px 44px;
  margin: 0;
}

.legend dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.05rem;
}

.legend dt svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend dd {
  margin: 8px 0 0 34px;
  color: var(--muted);
  max-width: 34em;
}

.phone {
  width: min(260px, 70%);
  justify-self: center;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--sheet);
}

/* ---------- bốn bước: trình tự thật nên có số ---------- */
.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 48px 40px;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--green);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
}

.steps img {
  grid-column: 1 / -1;
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* ---------- bảng giá: bảng của trang Bảng giá trong app ---------- */
.pricing .lead {
  margin: -12px 0 28px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.pricing table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pricing th,
.pricing td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.pricing th {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.pricing td strong {
  display: block;
  font-size: 1.05rem;
}

.pricing .meta {
  color: var(--muted);
  font-size: 15px;
}

.pricing .more {
  margin: 20px 0 0;
}

/* ---------- cuối trang ---------- */
.final h2 {
  margin-bottom: 0;
  max-width: 20em;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot p {
  margin: 0;
}

@media (min-width: 760px) {
  .legend dl,
  .steps ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 6fr 7fr;
    align-items: center;
    padding-top: 56px;
  }

  .legend-body {
    grid-template-columns: 1fr 260px;
  }

  .phone {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .sheet {
    padding-right: 36px;
  }

  .dim-y {
    right: -22px;
  }

  .inset {
    left: -8px;
    bottom: -48px;
    width: 48%;
  }

  .sheet figcaption {
    margin-top: 64px;
    margin-left: 50%;
  }
}

/* ---------- trang công ty: mở đầu, video, thẻ, sản phẩm, liên hệ ---------- */
.hero-co {
  display: block;
  padding-top: 48px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* video giới thiệu: to hết bề ngang trang, tỉ lệ 16:9 */
main > section.video {
  width: 100%;
  max-width: none;
  padding: 0;
  background: #0c1311;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.video-frame iframe,
.video-frame video,
.video-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0c1311;
}

.video-empty {
  display: grid;
  place-items: center;
  color: #a5b2ad;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  text-align: center;
}

.video-empty p {
  margin: 0;
  padding: 0 20px;
}

.solutions,
.products,
.why,
.contact,
.purpose,
.payment,
.faq {
  padding-top: 72px;
  padding-bottom: 8px;
}

.solutions h2,
.products h2,
.why h2,
.contact h2,
.purpose h2,
.payment h2,
.faq h2 {
  margin-bottom: 12px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .badge {
  margin-bottom: 10px;
}

.card-soon {
  border-style: dashed;
}

.group {
  margin: 36px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product {
  display: grid;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
}

.product > img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.product h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.product p {
  margin: 0 0 12px;
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.badge-live {
  border-color: var(--green);
  color: var(--green);
}

.ticks {
  margin: 0 0 8px;
  padding-left: 1.2em;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  color: var(--muted);
  font-size: 14px;
}

.contact-list dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

main > section.contact {
  padding-bottom: 72px;
}

/* trang sản phẩm: thanh toán, hỏi đáp */
.payflow {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: pay;
}

.payflow li {
  position: relative;
  padding: 18px 20px 20px 62px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  counter-increment: pay;
}

.payflow li::before {
  content: counter(pay);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-weight: 700;
}

.payflow h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.payflow p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.faq .note {
  margin-top: 18px;
}

.foot-co {
  flex: 1 1 260px;
}

.foot-co p {
  margin: 0 0 2px;
}

.foot-copy {
  flex-basis: 100%;
  font-size: 14px;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    padding: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .payflow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .payflow {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-co {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  /* điện thoại: thanh menu xuống dòng riêng, vuốt ngang được; chỉ riêng thanh này cuộn, trang không cuộn ngang */
  .nav {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }
}

/* biểu mẫu liên hệ và trang kết quả */
.contact-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
}

.contact-form .note {
  margin: -6px 0 0;
}

.contact-form button.btn {
  justify-self: start;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

/* ô bẫy cho bot: người thật không thấy, không bấm vào được */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

main > section.result {
  padding-top: 72px;
  padding-bottom: 96px;
}

.result h1 {
  max-width: 18em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
