/* ---------- theme tokens ---------- */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --ink: #1d2a2e;
  --muted: #5d6b70;
  --line: #d9dfd8;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --accent: #d9822b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(20, 40, 40, .06);
  --road: #cfd4d1;
  --plot: #f3f6ee;
  --r-living: #f6e7c8;
  --r-kitchen: #ffe0c2;
  --r-dining: #fbe9ad;
  --r-bedroom: #cfe8f7;
  --r-master: #bfdcf5;
  --r-bath: #bfeee6;
  --r-porch: #e3e0d6;
  --r-verandah: #e3e0d6;
  --r-pooja: #ffd9e4;
  --r-balcony: #d8f0c8;
  --r-lounge: #e8dcf7;
  --r-stair: #d9d9d9;
  --r-store: #e6d9c8;
  --r-carport: #d6dbe0;
  --r-study: #f0e1ff;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1416;
  --surface: #182024;
  --surface-2: #1f2a2f;
  --ink: #e6efee;
  --muted: #9bb0b4;
  --line: #2b3a40;
  --brand: #2dd4bf;
  --brand-ink: #062a27;
  --accent: #f0a04b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .35);
  --road: #2a3236;
  --plot: #1a2428;
  --r-living: #4a3f27;
  --r-kitchen: #52371f;
  --r-dining: #4d4521;
  --r-bedroom: #1f3a4d;
  --r-master: #1a3250;
  --r-bath: #1b4a43;
  --r-porch: #3a3a36;
  --r-verandah: #3a3a36;
  --r-pooja: #4f2a39;
  --r-balcony: #2c4a22;
  --r-lounge: #3b2f52;
  --r-stair: #3a3f42;
  --r-store: #4a3d2c;
  --r-carport: #2f373d;
  --r-study: #42305a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali",
    "Noto Sans Arabic", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", "Hiragino Sans",
    "Yu Gothic", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  transition: background .2s, color .2s;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 1.2em 0 .5em;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h2 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

a {
  color: var(--brand);
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .85rem;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover {
  background: var(--surface-2);
}

.icon-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

.menu-btn {
  display: none;
}

[data-theme="light"] .moon,
[data-theme="dark"] .sun {
  display: none;
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 58px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
  }

  .nav.open {
    display: flex;
  }

}

/* ---------- language dropdown: pill button + floating menu ---------- */
.lang-dd {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
}

.lang-toggle:hover {
  border-color: var(--brand);
}

.lang-toggle:focus-visible,
.lang-toggle[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  outline: none;
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  max-height: min(calc(100vh - 84px), 580px);
  overflow-y: auto;
  z-index: 40;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18), var(--shadow);
  animation: lang-pop .12s ease-out;
}

.lang-menu[hidden] {
  display: none;
}

@keyframes lang-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.lang-btn {
  width: 100%;
  text-align: start;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  white-space: nowrap;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.lang-btn.active {
  background: var(--surface-2);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 720px) {
  .lang-toggle {
    padding: 0 12px;
  }

  .lang-menu {
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: .95rem;
    white-space: nowrap;
  }

  .tools {
    gap: 6px;
  }

  .tools .icon-btn {
    width: 36px;
    height: 36px;
  }

  .lang-toggle {
    height: 36px;
    padding: 0 10px;
    font-size: .9rem;
  }
}

@media (max-width: 400px) {
  .brand-text {
    display: none;
  }
}

/* ---------- common ---------- */
.hero {
  padding: 28px 0 8px;
}

.count {
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
}

.btn:hover {
  border-color: var(--brand);
}

.btn.primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

input,
select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- gallery ---------- */
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
}

@media (max-width: 900px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters input {
    grid-column: 1 / -1;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 14px 0 22px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.card .thumb {
  background: var(--plot);
  padding: 6px;
}

.card .thumb svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3.2;
}

.card .body {
  padding: 10px 12px 12px;
}

.card .name {
  font-weight: 600;
  font-size: .95rem;
}

.card .facts {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- design view ---------- */
.tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .view-grid {
    grid-template-columns: 1fr;
  }
}

.stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.floor-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.floor-tabs .tab {
  padding: 6px 12px;
  font-size: .9rem;
}

.plan-host svg {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  background: var(--plot);
  border-radius: 10px;
}

.viewer-host {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: #bfe3f5;
}

.viewer-host:active {
  cursor: grabbing;
}

.viewer-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: #123;
}

.viewer-ctl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
  align-items: center;
}

.viewer-ctl label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
  color: var(--muted);
}

.viewer-ctl label.row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.viewer-ctl input[type=range] {
  width: 100%;
  padding: 0;
  accent-color: var(--brand);
}

.stage-name {
  font-weight: 700;
  color: var(--brand);
}

.hint {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
}

.info h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .93rem;
}

.stat span:first-child {
  color: var(--muted);
}

.room-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: .88rem;
}

.room-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.room-list .lvl {
  font-weight: 700;
  margin-top: 8px;
  color: var(--brand);
}

.info .btn {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.notes ul {
  padding-inline-start: 18px;
  margin: 6px 0 0;
}

/* ---------- AI designer ---------- */
.designer-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .designer-layout {
    grid-template-columns: 1fr;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-log {
  max-height: 300px;
  min-height: 120px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 92%;
  font-size: .93rem;
}

.bubble.bot {
  background: var(--surface-2);
  border: 1px solid var(--line);
  align-self: flex-start;
}

.bubble.me {
  background: var(--brand);
  color: var(--brand-ink);
  align-self: flex-end;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
}

.params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.params label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .82rem;
  color: var(--muted);
}

.params button {
  grid-column: 1 / -1;
}

#notes {
  margin-top: 14px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}

.foot-links a {
  text-decoration: none;
}

/* ---------- footer page links ---------- */
.foot-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.foot-pages a {
  color: var(--muted);
  text-decoration: none;
}

.foot-pages a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- info / legal pages ---------- */
.doc {
  max-width: 760px;
  padding-bottom: 12px;
}

.doc h2 {
  margin-top: 1.8em;
}

.doc h3 {
  font-size: 1.02rem;
  margin: 1.2em 0 .3em;
}

.doc p,
.doc li {
  color: var(--ink);
}

.doc ul {
  padding-inline-start: 1.3em;
}

.doc code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.doc th,
.doc td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.doc th {
  background: var(--surface-2);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  padding: 0 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}

.faq details[open] summary {
  color: var(--brand);
}

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

.contact-form {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
}

.contact-form label {
  font-weight: 600;
  margin-top: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 8px;
  cursor: pointer;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px solid var(--line);
}

.notice.ok {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border-color: var(--brand);
}

.notice.err {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border-color: #dc2626;
}


/* ---------- home: hero collage, feature cards, style showcase ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 8px;
}

.collage {
  position: relative;
  height: 450px;
}

.tile {
  --c: var(--brand);
  position: absolute;
  width: 50%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 4px solid var(--c);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.tile .art,
.show-card .art {
  width: 100%;
  height: 100%;
}

.tile svg,
.show-card svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tile .tag {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(15, 20, 22, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}

.tile.t1 {
  top: 4px;
  left: 0;
  transform: rotate(-4deg);
  --c: #2dd4bf;
  z-index: 2;
}

.tile.t2 {
  top: 34px;
  right: 0;
  transform: rotate(3deg);
  --c: #f0a04b;
  z-index: 1;
}

.tile.t3 {
  bottom: 4px;
  left: 3%;
  transform: rotate(2.5deg);
  --c: #38bdf8;
  z-index: 3;
}

.tile.t4 {
  bottom: 26px;
  right: 1%;
  transform: rotate(-3deg);
  --c: #f43f5e;
  z-index: 4;
}

[dir="rtl"] .tile.t1 {
  left: auto;
  right: 0;
}

[dir="rtl"] .tile.t2 {
  right: auto;
  left: 0;
}

[dir="rtl"] .tile.t3 {
  left: auto;
  right: 6%;
}

[dir="rtl"] .tile.t4 {
  right: auto;
  left: 2%;
}

.tile:hover {
  transform: rotate(0) scale(1.05);
  z-index: 6;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

a.feat:hover,
.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feat .fart {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 12px;
  background: linear-gradient(135deg, #e3f6ee, #f4f1e4);
}

.feat .fart svg {
  display: block;
  width: 100%;
  max-height: 100%;
}

.feat .fart>div {
  width: 100%;
}

.feat .txt {
  padding: 14px 16px 16px;
}

.feat h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.feat p {
  margin: 0;
}

.fart.stages {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-content: center;
}

.stage-item {
  text-align: center;
  font-size: .68rem;
  color: #3a4a50;
}

.stage-item span {
  display: block;
  margin-top: 4px;
}

.ai-demo {
  display: grid !important;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 8px;
}

.ai-demo .bubble.user {
  justify-self: end;
  width: 66%;
  padding: 10px 14px;
  border-radius: 14px 14px 3px 14px;
  background: var(--brand);
}

.ai-demo .bubble.user i {
  display: block;
  height: 6px;
  margin: 5px 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .75);
}

.ai-demo .bubble.user i:nth-child(2) {
  width: 60%;
}

.ai-demo .bubble.bot {
  justify-self: start;
  width: 58%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px 14px 14px 3px;
  background: #fff;
}

.ai-demo .bubble.bot>div {
  aspect-ratio: 16 / 9;
}

.ai-demo .bubble.bot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.show-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.show-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.show-card .art {
  aspect-ratio: 4 / 3;
}

.show-card span {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
  }

  .tile {
    position: relative;
    inset: auto !important;
    width: 100%;
    transform: none !important;
  }
}

/* ---------- SEO pages: breadcrumbs, landing, explore, guides ---------- */
.crumbs {
  margin: 14px 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.landing>section,
.landing>article {
  margin-top: 8px;
}

.landing .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.seo-text {
  margin-top: 28px;
}

.related {
  columns: 2;
  column-gap: 28px;
}

.related li {
  margin-bottom: 6px;
}

.explore {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.explore-card,
.guide-card {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.explore-card:hover,
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.explore-card strong {
  display: block;
  margin-bottom: 4px;
}

.explore-card span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: .9rem;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.guide-card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

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

.plan-facts {
  margin-top: 24px;
}

.foot-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 6px;
  font-size: .92rem;
}

.foot-seo strong {
  color: var(--ink);
}

.foot-seo a {
  color: var(--muted);
  text-decoration: none;
}

.foot-seo a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .related {
    columns: 1;
  }
}

.faq .faq-more {
  margin: -6px 0 14px;
  font-size: .92rem;
}

.faq .faq-more a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.faq .faq-more a:hover {
  text-decoration: underline;
}

.faq details[id],
.doc h2[id] {
  scroll-margin-top: 78px;
}