/* HomePlanner site. Layout: one centred column with full-bleed bands; the floor-plan grid from the app icon
   is the only ornament (hero band). Display face echoes the condensed caps of the App Store frames. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #16172b;
  --muted: #5b5e70;
  --line: #e6e3dd;
  --accent: #23266b;
  --accent-ink: #ffffff;
  --accent-soft: #eceefb;
  --grid: rgba(35, 38, 107, 0.07);
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Geeza Pro", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101121; --surface: #171931; --ink: #eef0fb; --muted: #a5a9c4; --line: #2a2d4c;
    --accent: #8f96ff; --accent-ink: #0e0f22; --accent-soft: #1f2347; --grid: rgba(143, 150, 255, 0.08);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0 0 .5em; }
h1 { font: 700 clamp(40px, 6vw, 68px)/1.0 var(--display); text-transform: uppercase; letter-spacing: .005em; }
h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.05 var(--display); text-transform: uppercase; }
h3 { font-size: 18px; font-weight: 600; }
:lang(ar) h1, :lang(ar) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 {
  font-family: var(--body); text-transform: none; font-weight: 700; letter-spacing: 0;
}
:lang(ar) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh-Hans) h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.center { text-align: center; display: grid; justify-items: center; gap: 12px; }
section { padding-block: clamp(48px, 8vw, 96px); }
section + section { border-top: 1px solid var(--line); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.lang { position: relative; font-size: 14px; }
.lang summary { cursor: pointer; color: var(--muted); list-style: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.lang-list a { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--accent-soft); }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 14px 22px; border-radius: 12px; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.hero-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy > * { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 19px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.phone { margin: 0; border-radius: 36px; overflow: hidden; border: 8px solid #0d0e1a; box-shadow: 0 30px 60px rgba(22, 23, 43, .18); background: #0d0e1a; max-width: 340px; justify-self: center; }
.hero-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(22, 23, 43, .14); max-width: 420px; justify-self: center; }
@media (max-width: 820px) { .hero-row { grid-template-columns: 1fr; } .phone { max-width: 280px; } }

/* how */
.steps { list-style: none; padding: 0; margin: 28px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { min-width: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps p { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots .phone { max-width: 300px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; } .shots .phone { scroll-snap-align: center; } }

/* rooms */
.sub { color: var(--muted); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; }
.room-card { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; text-decoration: none; }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room-card:hover img { transform: scale(1.04); }
.room-card span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media (prefers-reduced-motion: reduce) { .room-card img { transition: none; } }

/* tools, split */
.tool-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 32px; }
.tool-grid p { color: var(--muted); margin: 0; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.split-row > div { min-width: 0; }
@media (max-width: 760px) { .split-row { grid-template-columns: 1fr; } }
.ticks { padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.tips { padding-inline-start: 22px; display: grid; gap: 8px; }

/* pricing, faq, about */
.pricing { background: var(--accent-soft); }
.qa { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 10px 0 0; color: var(--muted); }

/* room pages */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.idea-grid figure { margin: 0; }
.idea-grid img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.idea-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .idea-grid { grid-template-columns: repeat(2, 1fr); } }
.fine { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }
@media (max-width: 520px) { .top .btn-small { display: none; } .lang summary { padding: 5px 8px; } }

/* document pages (privacy, press) */
.doc h1 { margin-bottom: .4em; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.6em; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.facts { border-collapse: collapse; width: 100%; font-size: 15px; }
.facts th, .facts td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--muted); font-weight: 600; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.press-grid figure { margin: 0; }
.press-grid img { border-radius: 14px; border: 1px solid var(--line); }
.press-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 24px; }
.guide-card { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
.guide-card img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.guide-title { font-weight: 600; font-size: 18px; line-height: 1.3; }
.guide-sum { color: var(--muted); font-size: 15px; }
.guide-card:hover .guide-title { color: var(--accent); }
.meta-line { font-size: 14px; color: var(--muted); }
.guide .summary { border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; }
.guide-ideas { grid-template-columns: repeat(3, 1fr); margin-block: 8px 4px; }
.app-tip { margin-top: 40px; padding: 22px; border-radius: 16px; background: var(--accent-soft); }
.app-tip h2 { margin-top: 0; }
@media (max-width: 760px) { .guide-ideas { grid-template-columns: repeat(2, 1fr); } }
