:root {
  --ink: #202a2e;
  --navy: #24383f;
  --navy-soft: #234a60;
  --paper: #f8f7f3;
  --warm: #eee8df;
  --card: #fffdfa;
  --copper: #b87955;
  --copper-dark: #825e43;
  --muted: #68717a;
  --line: #d8d1c7;
  --shadow: 0 18px 48px rgba(20, 32, 43, .10);
  --shadow-soft: 0 10px 28px rgba(20, 32, 43, .08);
  --radius: 12px;
  --radius-sm: 12px;
  --shell: 1180px;
  --ease: cubic-bezier(.22,.72,.2,1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--copper-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -.035em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.55rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.25rem);
}

h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15rem;
}

li {
  margin: .45rem 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.skip-link:focus {
  left: 1rem;
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  color: var(--copper-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(184,121,85,.12);
}

.inline-link {
  font-weight: 700;
  color: var(--copper-dark);
  text-decoration: underline;
  text-decoration-color: rgba(184,121,85,.35);
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(24,54,74,.22);
}

.button-primary:hover {
  background: var(--ink);
}

.button-ghost {
  border-color: rgba(24,54,74,.18);
  background: rgba(255,253,250,.72);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: rgba(24,54,74,.34);
  background: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,243,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: rgba(216,209,199,.82);
  box-shadow: 0 10px 28px rgba(20,32,43,.08);
  background: rgba(250,248,243,.94);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
}

.brand-dot {
  color: var(--copper-dark);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-nav a {
  color: rgba(20,32,43,.76);
  font-size: .94rem;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 42px;
  padding: .62rem 1rem;
  background: var(--navy);
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(24,54,74,.18);
}

.nav-cta:hover {
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(24,54,74,.16);
  border-radius: 12px;
  background: rgba(255,253,250,.75);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Editorial hero. The image remains visible without scripts or video playback. */
.hero { padding: 2.5rem 0 0; }
.hero::before { content: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-copy { min-width: 0; padding-bottom: 1.5rem; }
.hero-eyebrow { font-size: .72rem; letter-spacing: .14em; font-weight: 650; margin: 0 0 1.6rem; }
.hero h1 { font-size: clamp(3.5rem, 6.2vw, 5.15rem); font-weight: 650; line-height: 1.03; letter-spacing: -.065em; }
.hero h1 span { color: #778078; }
.hero-lead { margin: 1.6rem 0 0; max-width: 38ch; color: #5d6566; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }
.hero-methods { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; list-style: none; padding: 1.5rem 0 0; margin: 1.9rem 0 0; border-top: 1px solid var(--line); }
.hero-methods li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #566163; margin: 0; }
.hero-methods .ui-icon { width: 19px; height: 19px; color: #667a72; }
.hero-supplier { margin: 1rem 0 0; color: #666e6f; font-size: .75rem; }
.hero-supplier a { color: var(--ink); font-weight: 650; border-bottom: 1px solid #b7c0b9; }
.hero-visual { min-width: 0; margin: 0; }
.hero-film-wrap { position: relative; aspect-ratio: 1.08; overflow: hidden; background: #dedad2; border-radius: 12px; }
.hero-film { display: block; width: 100%; height: 100%; object-fit: cover; background: #dedad2; }
.hero-film-toggle { position: absolute; bottom: 1.1rem; left: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: #f8f7f3; color: #202a2e; font-size: .78rem; font-weight: 650; cursor: pointer; }
.hero-film-toggle:hover { background: #fff; }
.hero-film-toggle .ui-icon { width: 17px; height: 17px; }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: .75rem; margin-top: .7rem; color: #68706d; font-size: .61rem; letter-spacing: .08em; }
.hero-visual figcaption span:last-child { letter-spacing: 0; }
.ecosystem-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem 0; margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ecosystem-strip p { margin: 0; color: var(--muted); font-size: .65rem; letter-spacing: .09em; line-height: 1.8; }
.ecosystem-strip p strong { font-weight: 600; color: var(--ink); }
.ecosystem-brands { display: flex; align-items: center; gap: 2.5rem; }
.ecosystem-brands > a { display: inline-flex; align-items: center; min-height: 44px; }
.ecosystem-brands .tuya-logo { width: 68px; height: 34px; object-fit: contain; }
.ecosystem-brands .smart-life-logo { width: 122px; height: auto; object-fit: contain; }
.ttlock-brand { display: inline-flex; align-items: center; gap: .5rem; color: #1875c8; font-size: 1.2rem; font-weight: 650; }
.ttlock-brand img { width: 35px; height: 35px; object-fit: contain; }
.ecosystem-strip-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .8rem; color: var(--ink); }

.scope {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.scope-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 16px;
  background: rgba(255,253,250,.72);
  color: rgba(20,32,43,.78);
  font-weight: 700;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-intro {
  margin-top: .9rem;
  color: rgba(20,32,43,.70);
  font-size: 1.05rem;
}

.subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.1rem;
}

.subhead-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.model-grid,
.model-grid-alt,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.model-card,
.cat-card,
.how-card,
.eco-card,
.guide-card {
  overflow: hidden;
  border: 1px solid rgba(216,209,199,.82);
  border-radius: var(--radius);
  background: rgba(255,253,250,.82);
  box-shadow: var(--shadow-soft);
}

.model-card {
  display: flex;
  flex-direction: column;
}

.model-media {
  position: relative;
  background: var(--warm);
}

.model-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.model-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  padding: 1.1rem;
}

.model-use {
  color: var(--copper-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.model-title {
  font-size: 1.18rem;
}

.model-copy {
  flex: 1;
  margin: 0;
  color: rgba(20,32,43,.72);
  font-size: .96rem;
}

.model-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--copper-dark);
  font-weight: 850;
}

.model-link::after {
  content: "\2192";
  transition: transform .25s var(--ease);
}

.model-link:hover::after {
  transform: translateX(3px);
}

.models-note {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(20,32,43,.62);
  font-size: .94rem;
}

.cat-card {
  padding: 1.1rem;
}

.cat-card h3 {
  margin-bottom: .5rem;
}

.cat-meta {
  display: block;
  margin-bottom: .75rem;
  color: rgba(20,32,43,.62);
  font-size: .88rem;
}

.cat-link {
  font-weight: 850;
}

.property-section {
  background: linear-gradient(180deg, rgba(250,248,243,0), rgba(238,232,223,.42), rgba(250,248,243,0));
}

.prop-block {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: 1.6rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(216,209,199,.72);
  border-radius: 26px;
  background: rgba(255,253,250,.72);
  box-shadow: var(--shadow-soft);
}

.prop-block.reverse {
  direction: rtl;
}

.prop-block.reverse > * {
  direction: ltr;
}

.prop-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  object-fit: cover;
}

.prop-copy {
  padding: .25rem .25rem .25rem 0;
}

.prop-list {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  color: rgba(20,32,43,.74);
}

.prop-foot {
  margin: 0;
  color: rgba(20,32,43,.74);
}
.how-grid,
.eco-grid,
.guide-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.how-card,
.eco-card,
.guide-card {
  padding: 1.25rem;
}

.step-number {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--copper-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.how-card p,
.eco-card p,
.guide-card p,
.guide-checklist p {
  color: rgba(20,32,43,.74);
}

.flow-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 1.35rem;
  align-items: center;
  margin-top: 1.3rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(24,54,74,.06), rgba(184,121,85,.08)),
    rgba(255,253,250,.86);
  box-shadow: var(--shadow-soft);
}

.device-screen {
  display: grid;
  place-items: center;
  gap: .8rem;
  min-height: 260px;
  padding: 1.25rem;
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
}

.lock-body {
  position: relative;
  width: 92px;
  height: 122px;
  border: 2px solid rgba(255,255,255,.36);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

.bolt {
  position: absolute;
  top: 48px;
  left: 18px;
  width: 56px;
  height: 12px;
  border-radius: 999px;
  background: var(--copper);
  animation: bolt-cycle 5.5s var(--ease) infinite;
}

.lock-state {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: .95rem;
  font-weight: 800;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.auth-chip {
  padding: .42rem .65rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 800;
}

.progress-line {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.progress-line span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--copper);
  animation: scan-line 3.4s var(--ease) infinite;
}

.flow-steps {
  display: grid;
  gap: .9rem;
  margin: 0;
  counter-reset: flow-step;
  list-style: none;
  padding: 0;
}

.flow-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.35rem;
  margin: 0;
  border: 1px solid rgba(216,209,199,.72);
  border-radius: 16px;
  background: rgba(255,253,250,.72);
  color: rgba(20,32,43,.76);
  font-weight: 700;
}

.flow-steps li::before {
  counter-increment: flow-step;
  content: counter(flow-step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
}

.eco-card ul,
.guide-card ul {
  display: grid;
  gap: .45rem;
  margin: .9rem 0 1rem;
  color: rgba(20,32,43,.74);
}

.eco-note {
  margin-top: 1.3rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 26px;
  background: rgba(238,232,223,.42);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.question-grid p {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(216,209,199,.72);
  border-radius: 16px;
  background: rgba(255,253,250,.72);
  color: rgba(20,32,43,.74);
  font-weight: 700;
}

.guide-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, .9fr);
}

.guide-checklist {
  padding: 1.25rem;
  border: 1px solid rgba(184,121,85,.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(184,121,85,.08), rgba(255,253,250,.92)),
    rgba(255,253,250,.82);
  box-shadow: var(--shadow-soft);
}

.guide-checklist ol {
  display: grid;
  gap: .5rem;
  margin: 1rem 0;
  color: rgba(20,32,43,.76);
  font-weight: 700;
}

.guide-foot {
  margin: 0;
  color: rgba(20,32,43,.70);
}

.quote-section {
  background:
    linear-gradient(180deg, rgba(250,248,243,0), rgba(24,54,74,.055), rgba(250,248,243,0));
}

.quote-shell {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.quote-points {
  display: grid;
  gap: .65rem;
  margin-top: 1.25rem;
  color: rgba(20,32,43,.74);
  font-weight: 700;
}

.quote-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 26px;
  background: rgba(255,253,250,.86);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  gap: .45rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 850;
}

.req {
  margin-left: .25rem;
  color: var(--copper-dark);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: .78rem .85rem;
  border: 1px solid rgba(216,209,199,.92);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(184,121,85,.72);
  box-shadow: 0 0 0 4px rgba(184,121,85,.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--copper-dark);
  font-weight: 800;
}

.form-status.error {
  color: #9b2f2f;
}

.form-legal {
  margin: 0;
  color: rgba(20,32,43,.58);
  font-size: .86rem;
}

.faq-list {
  display: grid;
  gap: .75rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(216,209,199,.82);
  border-radius: 18px;
  background: rgba(255,253,250,.78);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--copper-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: rgba(20,32,43,.74);
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(216,209,199,.82);
  background: rgba(238,232,223,.36);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.footer-brand p,
.footer-note p {
  color: rgba(20,32,43,.70);
}

.footer-links h3,
.footer-note h3 {
  margin-bottom: .75rem;
  font-size: 1rem;
}

.footer-links ul {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  margin-top: 1rem;
  color: rgba(20,32,43,.56);
  font-size: .88rem;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 34px rgba(20,32,43,.22);
  font-weight: 850;
  font-size: 13px;
}

.whatsapp-float:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bolt-cycle {
  0%, 42% { transform: translateX(0); background: rgba(255,255,255,.36); }
  52%, 88% { transform: translateX(18px); background: var(--copper); }
  100% { transform: translateX(0); background: rgba(255,255,255,.36); }
}

@keyframes scan-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
@media (max-width: 1080px) {
  .quote-shell,
  .flow-panel {
    grid-template-columns: 1fr;
  }

  .model-grid,
  .model-grid-alt,
  .cat-grid,
  .how-grid,
  .eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prop-block,
  .prop-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .prop-copy {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-wrap {
    position: relative;
  }

  .js .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .js .primary-nav {
    position: absolute;
    top: calc(100% + .65rem);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: .9rem;
    border: 1px solid rgba(216,209,199,.86);
    border-radius: 18px;
    background: rgba(255,253,250,.97);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a {
    padding: .65rem .25rem;
    border-bottom: 1px solid rgba(216,209,199,.55);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    justify-content: center;
    text-align: center;
  }

}

@media (max-width: 760px) {
  .hero-proof,
  .model-grid,
  .model-grid-alt,
  .cat-grid,
  .how-grid,
  .eco-grid,
  .guide-layout,
  .footer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .visual-caption {
    position: static;
    margin: .85rem;
    background: rgba(20,32,43,.86);
  }

  .button {
    width: 100%;
  }

  .form-actions .button-ghost {
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 11px 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bolt,
  .progress-line span {
    animation: none;
  }
}

:focus-visible {
  outline: 3px solid rgba(184,121,85,.45);
  outline-offset: 3px;
}

::selection {
  background: rgba(184,121,85,.18);
  color: var(--ink);
}

/* Product catalogue: ordinary HTML grid without JS; native scrolling when enhanced. */
[hidden] { display: none !important; }
.catalogue-toolbar, .catalogue-actions, .carousel-arrows { display: flex; align-items: center; gap: .75rem; }
.catalogue-toolbar { justify-content: space-between; margin-bottom: 1.2rem; }
.catalogue-toolbar p { margin: 0; max-width: 520px; color: var(--muted); font-size: .9rem; }
.catalogue-actions { flex-shrink: 0; }
.carousel-arrow, .catalogue-view, .model-enquire { font: inherit; cursor: pointer; }
.carousel-arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 1.35rem; }
.carousel-arrow:hover:not(:disabled) { background: var(--ink); color: white; }
.carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.catalogue-view { border: 1px solid var(--line); border-radius: 100px; background: transparent; padding: .6rem 1rem; font-weight: 650; color: var(--ink); }
.catalogue-view:hover { background: var(--warm); }
.model-grid.is-carousel { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--copper) var(--warm); padding: .25rem .15rem 1.15rem; scroll-padding-inline: .15rem; }
.is-carousel .model-card { flex: 0 0 calc((100% - 2.2rem) / 3); min-width: 0; scroll-snap-align: start; box-shadow: none; }
.model-media { display: grid; place-items: center; padding: .75rem; background: #fff; }
.model-media img { object-fit: contain; }
.model-price { display: flex; flex-direction: column; gap: .1rem; margin: .35rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.model-price span { font-size: .75rem; color: var(--muted); }
.model-price strong { font-size: 1.4rem; letter-spacing: -.025em; }
.model-link { font-size: .88rem; }
.model-enquire { position: relative; margin-top: .25rem; padding: .65rem .8rem; border-radius: 9px; border: 1px solid var(--line); background: var(--warm); color: var(--ink); text-align: center; font-weight: 650; }
.model-enquire:hover { border-color: var(--copper); background: var(--paper); }
.catalogue-footer { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-start; margin-top: .7rem; }
.carousel-position { flex-shrink: 0; color: var(--copper-dark); font-size: .82rem; font-weight: 700; margin-top: 1.2rem; font-variant-numeric: tabular-nums; }
.catalogue-footer .models-note { margin-bottom: 0; font-size: .83rem; }
.whatsapp-ready { display: inline-block; margin-top: .65rem; }
[aria-invalid="true"] { border-color: #a63030 !important; }
#quote { scroll-margin-top: 100px; }
@media (max-width: 1080px) {
  .is-carousel .model-card { flex-basis: calc((100% - 1.1rem) / 2); }
}
@media (max-width: 760px) {
  .catalogue-toolbar { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .catalogue-actions { width: 100%; justify-content: space-between; }
  .is-carousel .model-card { flex-basis: 87%; }
  .catalogue-footer { flex-direction: column; gap: 0; }
  .catalogue-footer .models-note { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* Progressive enhancement: navigation and contact options remain usable without JS. */
section[id], main[id] { scroll-margin-top: 90px; }
.flow-media { margin: 0; min-width: 0; }
.flow-media video { width: 100%; border-radius: 18px; background: var(--ink); aspect-ratio: 1; }
.flow-media figcaption { margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1080px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav-wrap { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .primary-nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}

html:not(.js) .model-enquire { display: none; }

/* Shared visual language: one icon family, flat surfaces and clear hierarchy. */
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.eyebrow .ui-icon { width: 19px; height: 19px; }
.eyebrow { font-weight: 650; letter-spacing: .1em; }
h3 { display: flex; align-items: flex-start; gap: .7rem; font-weight: 650; }
.card-icon { color: var(--copper-dark); margin-top: .13em; }
.heading-icon { width: 32px; height: 32px; margin-right: .7rem; color: var(--copper-dark); }
.brand { gap: .7rem; font-size: 1.45rem; font-weight: 650; letter-spacing: -.045em; white-space: nowrap; }
.brand-symbol { width: 37px; height: 42px; display: grid; place-items: center; color: var(--ink); }
.brand-symbol .ui-icon { width: 34px; height: 34px; stroke-width: 1.5; }
.brand-type { line-height: 1.1; }
.brand-byline { display: block; margin-top: 6px; color: #74807d; font-size: .5rem; letter-spacing: .16em; font-weight: 600; }
.brand:hover { text-decoration: none; }
.site-header { background: #f8f7f3; border-bottom-color: #e8e4dc; backdrop-filter: none; }
.site-header.scrolled { background: #f8f7f3; box-shadow: 0 3px 12px rgba(20,32,43,.035); }
.nav-wrap { min-height: 82px; }
.primary-nav { gap: 1.65rem; }
.primary-nav a { font-size: .82rem; font-weight: 550; }
.button, .nav-cta { border-radius: 7px; box-shadow: none; font-weight: 600; }
.button-primary { background: var(--ink); }
.button-ghost { background: transparent; border-color: #c5cbc6; }
.button .ui-icon { width: 19px; height: 19px; }
.nav-cta { padding-inline: 1.1rem; }
.model-card, .cat-card, .how-card, .eco-card, .guide-card { box-shadow: none; border-radius: 12px; }
.cat-card:hover { transform: none; box-shadow: none; border-color: #a8b1a9; }
.model-media { border-bottom: 1px solid #eeebe5; }
.model-body h3 { font-size: 1.07rem; line-height: 1.35; letter-spacing: -.025em; }
.model-body h3 .card-icon { width: 19px; height: 19px; }
.model-kicker { font-weight: 650; }
.cat-card h3 { font-size: 1.2rem; line-height: 1.3; }
.scope-list li { padding: 0; border-radius: 8px; font-weight: 550; font-size: .84rem; }
.scope-list a { display: flex; align-items: center; gap: .7rem; padding: 1rem; color: var(--ink); min-height: 60px; height: 100%; }
.scope-list a:hover { text-decoration: none; background: #f0ece5; }
.scope-list .ui-icon { width: 21px; height: 21px; color: var(--copper-dark); }
.section-head h2, .scope-head h2 { font-weight: 600; letter-spacing: -.045em; }
.eco-brand-heading { display: flex; align-items: center; gap: 1.5rem; min-height: 48px; margin-bottom: 1.6rem; width: fit-content; }
.eco-brand-heading img { width: auto; max-width: 122px; height: 34px; object-fit: contain; }
.eco-brand-heading.ttlock-brand img { width: 38px; height: 38px; }
.faq-item summary { justify-content: flex-start; gap: .75rem; }
.faq-item summary > span { margin-left: auto; }
.faq-icon { width: 20px; height: 20px; color: var(--copper-dark); }
.footer-brand .brand { color: var(--ink); }
.catalogue-footer { min-height: 28px; }
.carousel-position { margin: .7rem 0 0; }
.carousel-arrow .ui-icon { width: 20px; height: 20px; }
.carousel-arrow { display: grid; place-items: center; }
.carousel-arrow:first-child .ui-icon { rotate: 180deg; }
@media (max-width: 1080px) {
  .hero { padding-top: 2.5rem; }
  .hero-grid { gap: 2.25rem; }
  .hero h1 { font-size: clamp(3.25rem, 6.2vw, 4.5rem); }
  .hero-lead { font-size: 1rem; }
  .hero-methods { gap: .8rem; }
  .nav-wrap { min-height: 72px; }
  .primary-nav a { min-height: 44px; display: flex; align-items: center; }
  .ecosystem-strip { gap: 1.25rem; }
  .ecosystem-brands { gap: 1.5rem; }
}
@media (max-width: 760px) {
  .hero { padding: 2.3rem 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-copy { max-width: 580px; padding: 0; }
  .hero-eyebrow { margin-bottom: 1.2rem; font-size: .64rem; }
  .hero h1 { font-size: clamp(2.95rem, 12vw, 4.3rem); line-height: 1.06; }
  .hero-lead { margin-top: 1.15rem; max-width: 43ch; font-size: 1rem; line-height: 1.65; }
  .hero-actions { gap: .5rem; margin-top: 1.35rem; }
  .hero-actions .button { font-size: .82rem; padding: .75rem .85rem; width: auto; min-width: 0; flex: 1 1 0; }
  .hero-actions .ui-icon { width: 17px; height: 17px; }
  .hero-methods { padding-top: 1.15rem; margin-top: 1.4rem; justify-content: space-between; gap: .5rem; }
  .hero-methods li { font-size: .72rem; gap: .3rem; }
  .hero-methods .ui-icon { width: 17px; height: 17px; }
  .hero-supplier { font-size: .69rem; margin-top: .85rem; }
  .hero-film-wrap { aspect-ratio: 1.04; }
  .hero-visual figcaption { font-size: .55rem; }
  .hero-film-toggle { left: .8rem; bottom: .8rem; }
  .ecosystem-strip { margin-top: 1.7rem; padding: 1.3rem 0; flex-wrap: wrap; gap: 1.1rem; }
  .ecosystem-strip p { font-size: .6rem; flex-basis: 100%; }
  .ecosystem-strip p br { display: none; }
  .ecosystem-strip p strong { margin-left: .5rem; }
  .ecosystem-brands { justify-content: space-between; width: 100%; gap: 1rem; }
  .ecosystem-brands .tuya-logo { width: 58px; height: 29px; }
  .ecosystem-brands .smart-life-logo { width: 100px; }
  .ecosystem-brands .ttlock-brand { font-size: 1rem; gap: .35rem; }
  .ecosystem-brands .ttlock-brand img { width: 28px; height: 28px; }
  .ecosystem-strip-link { min-height: 32px; font-size: .75rem; }
  .section-pad { padding-block: 3.5rem; }
  .brand { font-size: 1.27rem; gap: .5rem; }
  .brand-symbol .ui-icon { width: 30px; height: 30px; }
  .nav-wrap { min-height: 68px; }
  h2 { font-size: clamp(1.8rem, 7.7vw, 2.5rem); }
  .cat-card h3, .how-card h3, .guide-card h3 { font-size: 1.15rem; }
  .whatsapp-float { width: 50px; height: 50px; padding: 0; justify-content: center; bottom: calc(15px + env(safe-area-inset-bottom)); right: 15px; }
  .whatsapp-label { display: none; }
}
@media (max-width: 350px) {
  .hero-actions .button { flex-basis: 100%; }
  .hero-methods { justify-content: flex-start; gap: .7rem; }
  .ecosystem-brands { gap: .6rem; }
  .ecosystem-brands .smart-life-logo { width: 88px; }
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.faq-item summary { display: flex; align-items: flex-start; font-weight: 600; }
.faq-item summary::after { margin-left: auto; flex: 0 0 auto; float: none; }
.faq-icon { margin-top: .2rem; }
.model-use { font-weight: 650; font-size: .72rem; line-height: 1.6; }
.model-link { font-weight: 600; }
.prop-media, .prop-media img, .eco-note, .flow-panel, .quote-form, .flow-media video { border-radius: 12px; box-shadow: none; }
.guide-checklist { background: var(--card); box-shadow: none; }

/* Legacy URL destinations clear the fixed navigation. */
.cat-card[id], .guide-card[id], #warranty-guidance, .legacy-anchor { scroll-margin-top: 100px; }
.legacy-anchor { display: block; height: 0; }
#warranty-guidance { margin-top: 1.2rem; }
#warranty-guidance h4 { font-size: 1rem; margin-bottom: .5rem; }
