/* ---------- Landing page (signed-out home) ---------- */
html:has(.landing) { zoom: 1; background: #0a0a0b; }
html:has(.signin[open]) { overflow: hidden; }
html:has(.landing) main { padding: 0; }

.landing {
  --land-page: #0a0a0b;
  --land-tile: #161618;
  --land-tile-hover: #222225;
  --land-ink: #f3f2ee;
  --land-display: #e9e7e2;
  --land-muted: #b4bac4;
  --land-faint: #8f95a0;
  --land-accent: #f28b95;
  --land-red: #d72539;
  --land-red-hover: #b81e30;
  --land-line: rgba(255, 255, 255, 0.14);
  --focus-ring: #f3f2ee;
  --font-display: "Bricolage Grotesque", "Noto Sans Devanagari", sans-serif;
  --font-body: "Hanken Grotesk", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-tech: "IBM Plex Mono", "Noto Sans Devanagari", monospace;

  min-height: 100vh;
  overflow-x: clip;
  background: var(--land-page);
  color: var(--land-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.landing svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding: clamp(16px, 2.5vw, 32px);
}
.hero__bar {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px;
}
.hero__menu { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px); font-weight: 400; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--land-display);
  text-decoration: none;
}
.hero__brand:hover { color: var(--land-display); }
.hero--page { min-height: 0; }
.hero__bar--compact { align-items: center; }
.hero__bar--compact .hero__brand { font-size: clamp(24px, 3vw, 40px); }
.hero__actions { display: flex; justify-content: flex-end; gap: 10px; }

.landtile {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 56px; height: 56px;
  border: 1px solid var(--land-line); border-radius: 10px;
  background: var(--land-tile); color: var(--land-ink);
  font-family: var(--font-tech); font-size: 14px;
  cursor: pointer;
}
button.landtile:hover { background: var(--land-tile-hover); }
.landtile--label { height: 84px; margin-top: 6px; cursor: default; color: #c9cbd1; font-size: 12px; letter-spacing: 0.08em; }
.landtile--label span { writing-mode: vertical-rl; transform: rotate(180deg); }
.landtile--red { width: auto; padding: 0 20px; white-space: nowrap; }
.landtile--red { border-color: transparent; background: var(--land-red); color: #fff; }
button.landtile--red:hover { background: var(--land-red-hover); }

.menu {
  position: absolute; left: 0; top: 64px;
  display: flex; flex-direction: column; gap: 2px;
  width: 220px; padding: 8px;
  border: 1px solid var(--land-line); border-radius: 12px;
  background: var(--land-tile);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  animation: land-fade 0.25s ease;
}
.menu__item {
  display: block; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 8px; background: none;
  color: var(--land-ink); font: inherit; font-weight: 500; text-align: left; text-decoration: none;
  cursor: pointer;
}
.menu__item:hover { background: var(--land-tile-hover); color: var(--land-ink); }
.menu__item--accent { color: var(--land-accent); }
@keyframes land-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero__body {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(12px, 2vw, 24px);
}
.hero__art {
  flex: 1 1 min(540px, 100%);
  max-width: min(720px, 82vmin);
  min-width: 0;
}
.hero__text {
  flex: 1 1 min(360px, 100%);
  min-width: 0;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: clamp(18px, 3vh, 36px);
  text-align: right;
}
.hero__kicker { font-family: var(--font-tech); font-size: clamp(14px, 1.4vw, 19px); line-height: 1.4; color: var(--land-accent); }
.hero__title {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: clamp(56px, 9.5vw, 152px); font-weight: 300; line-height: 0.88; letter-spacing: -0.045em;
  color: var(--land-display);
}
.hero__lede { max-width: 44ch; font-family: var(--font-tech); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.6; color: var(--land-muted); }

.ring { position: relative; width: 100%; aspect-ratio: 1; }
.ring__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ring__label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--font-tech); font-size: clamp(11px, 1.3vw, 14px); color: #e3e4e8; white-space: nowrap;
}
.ring__centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 38%;
  font-family: var(--font-tech); font-size: clamp(11px, 1.2vw, 13px); line-height: 1.5; text-align: center; color: var(--land-accent); text-shadow: 0 0 6px var(--land-page), 0 0 2px var(--land-page);
}

/* ---------- What the AI does ---------- */
.ai { padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ai__inner { max-width: 1200px; margin: 0 auto; }
.ai__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.ai__intro { max-width: 620px; }
.ai__kicker { margin-bottom: 16px; font-family: var(--font-tech); font-size: 13px; letter-spacing: 0.06em; color: var(--land-accent); }
.ai__title { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 56px); font-weight: 400; line-height: 0.98; letter-spacing: -0.035em; color: var(--land-display); }
.ai__lede { max-width: 40ch; font-size: 16px; color: var(--land-muted); }
.ai__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--land-line);
}
.feature { padding: 28px 0 36px; border-bottom: 1px solid var(--land-line); }
.feature__num { font-family: var(--font-tech); font-size: 13px; color: var(--land-accent); }
.feature__title { margin: 14px 0 10px; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--land-display); }
.feature__body { color: var(--land-muted); }

/* ---------- Closing call to action and footer ---------- */
.closing { padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  background: var(--land-tile);
}
.cta__text { flex: 1 1 min(420px, 100%); max-width: 620px; }
.cta__title { margin-bottom: 10px; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: var(--land-display); }
.cta__lede { font-size: 15.5px; color: var(--land-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ctabtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--land-line); border-radius: 8px;
  background: transparent; color: var(--land-ink);
  font-family: var(--font-tech); font-size: 14px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.ctabtn:hover { background: var(--land-tile-hover); color: var(--land-ink); }
.ctabtn--red { border-color: transparent; background: var(--land-red); color: #fff; }
.ctabtn--red:hover { background: var(--land-red-hover); color: #fff; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  max-width: 1200px; margin: 28px auto 0;
  font-family: var(--font-tech); font-size: 12.5px; color: var(--land-faint);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__links a, .foot__links button { padding: 0; border: 0; background: none; color: #9aa0aa; font: inherit; text-decoration: none; cursor: pointer; }
.foot__links a:hover, .foot__links button:hover { color: #fff; }

/* ---------- Inner pages ---------- */
.sp { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 112px); box-sizing: content-box; }
.sp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.sp-kicker { margin-bottom: 18px; font-family: var(--font-tech); font-size: clamp(14px, 1.3vw, 16px); letter-spacing: 0.02em; color: var(--land-accent); }
.sp-kicker--flat { margin: 0; font-size: 14px; }
.sp-title { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(44px, 7.4vw, 112px); font-weight: 300; line-height: 0.92; letter-spacing: -0.045em; color: var(--land-display); }
.sp-lede { max-width: 42ch; font-family: var(--font-tech); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.6; color: var(--land-muted); }
.sp-num { font-family: var(--font-tech); font-size: 13px; color: var(--land-accent); }

.sp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 4vw, 48px); padding-bottom: 28px; border-bottom: 1px solid var(--land-line); }
.sp-pill {
  height: 40px; padding: 0 16px;
  border: 1px solid var(--land-line); border-radius: 999px;
  background: none; color: var(--land-ink);
  font-family: var(--font-tech); font-size: 13px;
  cursor: pointer;
}
.sp-pill span { margin-left: 4px; color: var(--land-faint); }
.sp-pill:hover { background: var(--land-tile-hover); }
.sp-pill[aria-pressed="true"] { border-color: var(--land-red); background: rgba(215, 37, 57, 0.18); }

.sp-grid { display: grid; gap: 0 clamp(24px, 3vw, 44px); }
.sp-grid--tools { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sp-grid--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--land-line); }
.sp-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0 36px; border-bottom: 1px solid var(--land-line); }
.sp-card__meta { display: flex; justify-content: space-between; align-self: stretch; font-family: var(--font-tech); font-size: 13px; color: var(--land-faint); }
.sp-card__title { margin: 14px 0 10px; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--land-display); }
.sp-card__body { color: var(--land-muted); }
.sp-link { margin-top: auto; padding: 16px 0 0; border: 0; background: none; color: var(--land-accent); font-family: var(--font-tech); font-size: 13px; line-height: 1.5; text-decoration: none; cursor: pointer; }
.sp-link:hover { color: #fff; }
.sp-accent { color: var(--land-accent); text-decoration: none; }
.sp-accent:hover { color: #fff; }

.sp-rowhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); }
.sp-quiet { font-family: var(--font-tech); font-size: 13px; color: var(--land-muted); text-decoration: none; }
.sp-quiet:hover { color: #fff; }
.sp-spreads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 20px; }
.spread { overflow: hidden; border: 1px solid var(--land-line); border-radius: 14px; background: #1b1b1e; }
.spread__art { padding: 14px 18px; border-bottom: 1px solid var(--land-line); }
.spread__info { padding: 16px; background: var(--land-tile); }
.spread__subject { font-family: var(--font-tech); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; filter: brightness(1.25); }
.spread__title { margin: 4px 0 6px; font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--land-display); }
.spread__meta { font-size: 13px; color: var(--land-muted); }

/* Miniature page layouts, drawn with plain blocks. */
.thumb { display: grid; gap: 8px; aspect-ratio: 4 / 3; padding: 12px; border-top: 2px solid; background: #f3f2ee; }
.thumb i { display: block; min-height: 0; background: #e1e2e6; }
.thumb--1 { grid-template: 1fr 4fr 1fr / 1fr 1fr; }
.thumb--1 i:nth-child(1) { background: #1c1c1f; }
.thumb--1 i:nth-child(2) { grid-area: 2 / 1; background: #dbdce0; }
.thumb--1 i:nth-child(3) { grid-area: 1 / 2 / 3 / 3; background: #9096a5; }
.thumb--1 i:nth-child(4) { grid-area: 3 / 1 / 4 / 3; }
.thumb--2 { grid-template: 1fr 1fr / 1fr 1fr; }
.thumb--2 i:nth-child(1) { grid-column: 1 / 3; background: #b5aa8c; }
.thumb--2 i:nth-child(2) { background: #1c1c1f; }
.thumb--3 { grid-template: 1fr 5fr / 2fr 1fr; }
.thumb--3 i:nth-child(1) { background: #1c1c1f; }
.thumb--3 i:nth-child(2) { grid-area: 2 / 1; background: #a9c6b8; }
.thumb--3 i:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
.thumb--4 { grid-template: 1fr 2fr / 1fr 1fr; }
.thumb--4 i:nth-child(1) { grid-row: 1 / 3; background: #e2b9c0; }
.thumb--4 i:nth-child(2) { background: #1c1c1f; }

.room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.room__point { display: flex; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--land-line); }
.room__point .sp-num { padding-top: 5px; }
.room__point .sp-card__title { margin-top: 0; }
.demo { padding: 24px; border: 1px solid var(--land-line); border-radius: 16px; background: var(--land-tile); }
.demo__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-family: var(--font-tech); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--land-muted); }
.demo__proposal { position: relative; margin-top: 24px; padding: 24px 18px 18px; border: 1px solid rgba(215, 37, 57, 0.55); border-radius: 12px; background: var(--land-page); }
.demo__badge { position: absolute; top: -11px; left: 12px; padding: 2px 10px; border-radius: 999px; background: var(--land-red); color: #fff; font-family: var(--font-tech); font-size: 12px; }
.demo__title { font-size: 17px; font-weight: 600; color: var(--land-ink); }
.demo__body { margin-top: 8px; font-size: 14.5px; color: var(--land-muted); }
.demo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-family: var(--font-tech); font-size: 13px; }
.demo__btn { padding: 8px 14px; border: 1px solid var(--land-line); border-radius: 8px; color: var(--land-ink); }
.demo__btn--red { border-color: transparent; background: var(--land-red); color: #fff; }
.demo__rewrite { color: var(--land-accent); }
.demo__comment { display: flex; gap: 12px; margin-top: 18px; }
.demo__comment--reply { margin-left: 40px; }
.demo__comment p { margin-top: 2px; font-size: 14.5px; color: var(--land-ink); }
.demo__avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #4a1622; color: var(--land-ink); font-size: 11px; font-weight: 600; }
.demo__avatar--you { background: #3a1d22; }
.demo__who { font-size: 12.5px; color: var(--land-muted); }
.demo__who b { font-weight: 600; color: var(--land-ink); }

.plan { display: flex; flex-direction: column; margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 32px); border: 1px solid var(--land-red); border-radius: 16px; background: var(--land-tile); }
.plan__name { color: var(--land-accent); }
.plan__price { margin-top: 12px; font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 56px); font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; color: var(--land-display); }
.plan__note { margin-top: 4px; color: var(--land-muted); }
.plan__list { margin: 20px 0 28px; padding: 0; list-style: none; columns: 2; column-gap: 48px; }
.plan__list li { break-inside: avoid; position: relative; padding: 6px 0 6px 20px; color: var(--land-ink); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 1px; background: var(--land-accent); }
.plan__cta { align-self: flex-start; min-width: 240px; }

.faq { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: clamp(56px, 8vw, 104px); }
.faq__title { margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 48px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; color: var(--land-display); }
.faq__list { border-top: 1px solid var(--land-line); }
.faq__item { border-bottom: 1px solid var(--land-line); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--land-display);
  list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--font-tech); color: var(--land-accent); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { max-width: 60ch; padding-bottom: 24px; color: var(--land-muted); }

.sp .ai__head { margin-bottom: clamp(32px, 4vw, 56px); }
.flow { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--land-line); border-radius: 16px; background: var(--land-tile); }
.flow__label { font-family: var(--font-tech); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--land-faint); }
.flow__request { margin-top: 12px; font-family: var(--font-tech); font-size: clamp(15px, 1.5vw, 18px); color: var(--land-ink); }
.flow__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; margin-top: 28px; }
.flow__num { display: flex; align-items: center; gap: 10px; }
.flow__num::after { content: ""; flex: 1; height: 1px; background: var(--land-line); }
.flow__title { margin-top: 14px; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--land-display); }
.flow__body { margin-top: 6px; font-size: 14px; color: var(--land-muted); }
.flow__status { margin-top: 12px; font-family: var(--font-tech); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--land-faint); }
.sp .ai__grid { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Hindi: Devanagari headlines break apart under tight tracking and leading ---------- */
/* Plex Mono has no Devanagari, and its wide space would otherwise stretch the gaps between words. */
.landing[lang="hi"] { --font-tech: "Noto Sans Devanagari", "IBM Plex Mono", monospace; }
.landing[lang="hi"] .hero__title { font-size: clamp(44px, 7vw, 112px); font-weight: 400; line-height: 1.12; letter-spacing: 0; }
.landing[lang="hi"] .sp-title { font-size: clamp(38px, 5.6vw, 88px); font-weight: 400; line-height: 1.14; letter-spacing: 0; }
.landing[lang="hi"] .plan__price,
.landing[lang="hi"] .faq__title,
.landing[lang="hi"] .sp-card__title,
.landing[lang="hi"] .spread__title,
.landing[lang="hi"] .flow__title,
.landing[lang="hi"] .ai__title,
.landing[lang="hi"] .cta__title,
.landing[lang="hi"] .feature__title,
.landing[lang="hi"] .signin__title { line-height: 1.25; letter-spacing: 0; }
.landing[lang="hi"] .landtile--label { letter-spacing: 0; font-size: 11px; }
.landing[lang="hi"] .landtile--label span { writing-mode: horizontal-tb; transform: none; }

@media (max-width: 960px) {
  .sp-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phones ---------- */
@media (max-width: 759px) {
  .landtile { height: 44px; }
  .landtile:not(.landtile--red) { width: 44px; }
  .landtile--red { padding: 0 12px; font-size: 13px; }
  .landtile--label { display: none; }
  .menu { top: 52px; }
  .hero__actions { gap: 6px; }
  .hero__bar { gap: 6px; }
  .hero__brand { padding-top: 10px; font-size: 24px; }
  .hero__body { gap: 28px; padding-top: 28px; }
  .hero__art { max-width: 100%; }
  .hero__text { align-items: flex-start; text-align: left; }
  .ring__centre { max-width: 44%; }
  .ring__label { font-size: 10.5px; }
  .ctabtn { flex: 1 1 auto; }
  .cta__actions { width: 100%; }
  .hero__bar--compact .hero__brand { padding-top: 0; font-size: 24px; }
  .room, .faq { grid-template-columns: minmax(0, 1fr); }
  .plan__list { columns: 1; }
  .plan__cta { align-self: stretch; }
  .demo__comment--reply { margin-left: 20px; }
}
