/* Oh My House — public website. No JavaScript; the app's palette. */
:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --bg-elevated: #ffffff;
  --bg-sunken: #f2eee6;
  --border: #e7e1d5;
  --text: #1e1c19;
  --text-muted: #5c574d;
  --accent: #3f6f56;
  --accent-strong: #2e5742;
  --accent-soft: #e8f0ea;
  --accent-contrast: #ffffff;
  --roof: #c2622d;
  --shadow: 0 2px 6px rgb(31 29 26 / 6%), 0 8px 24px rgb(31 29 26 / 6%);
  --shadow-lg: 0 12px 24px rgb(31 29 26 / 10%), 0 32px 64px rgb(31 29 26 / 14%);
  --radius: 14px;
  --radius-lg: 24px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --bg-elevated: #1d2225;
    --bg-sunken: #101416;
    --border: #2a3135;
    --text: #eceeed;
    --text-muted: #9ea6a3;
    --accent: #7cb79a;
    --accent-strong: #9ccfb4;
    --accent-soft: #1d2b24;
    --accent-contrast: #10201a;
    --shadow: 0 2px 6px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --shadow-lg: 0 12px 24px rgb(0 0 0 / 35%), 0 32px 64px rgb(0 0 0 / 40%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 32px;
  height: 32px;
}
.top nav {
  display: flex;
  gap: 18px;
}
.top nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.top nav a:hover {
  color: var(--text);
}
@media (max-width: 760px) {
  .top nav {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn--primary:hover {
  background: var(--accent-strong);
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-elevated);
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 480px at 10% -10%, var(--accent-soft) 0%, transparent 65%), var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 800;
}
.hero .lead {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.stores {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
}
.promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 15px;
}
.promise li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}
@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Phone frame */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: 40px;
  padding: 10px;
  background: #1b1f21;
  box-shadow: var(--shadow-lg);
}
.phone img {
  border-radius: 31px;
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top;
  background: var(--bg-sunken);
}

/* Sections */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}
.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 18px;
}
.alt {
  background: var(--bg-sunken);
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 28px 0;
}
.feature + .feature {
  border-top: 1px solid var(--border);
}
.feature:nth-of-type(even) .feature__text {
  order: 2;
}
.feature h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
}
.feature p {
  color: var(--text-muted);
  margin-top: 12px;
}
.feature ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.feature li + li {
  margin-top: 6px;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg {
  width: 26px;
  height: 26px;
}
.feature .phone {
  width: min(270px, 70vw);
}
@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature:nth-of-type(even) .feature__text {
    order: 0;
  }
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
  font-weight: 800;
}
.card p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 16px;
}
.step {
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  margin-bottom: 14px;
}
.steps {
  counter-reset: step;
}

/* FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq details + details {
  margin-top: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style-position: outside;
}
.faq details p {
  color: var(--text-muted);
  padding-bottom: 16px;
}

/* Final call */
.cta {
  text-align: center;
}
.cta .card {
  padding: 48px 24px;
  background: var(--accent-soft);
  border-color: transparent;
  box-shadow: none;
}
.cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.cta p {
  color: var(--text-muted);
  margin: 12px auto 0;
  max-width: 34em;
}
.cta .actions {
  justify-content: center;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot a {
  color: var(--text-muted);
}

/* 404 */
.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.lost h1 {
  font-size: 40px;
  font-weight: 800;
}
.lost p {
  color: var(--text-muted);
  margin: 12px 0 24px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.more {
  margin-top: 24px;
}
.brand,
.top .btn {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .top .wrap {
    gap: 12px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .top .btn--sm {
    padding: 0 14px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 420px) {
  .top .wrap {
    gap: 10px;
  }
  /* Logo only; the name stays for screen readers. */
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .top .btn--sm {
    padding: 0 14px;
    font-size: 14px;
  }
}

.langs{display:flex;align-items:center;gap:6px;padding-left:14px;margin-left:2px;border-left:1px solid var(--border)}
.flag{display:block;width:30px;height:21px;border-radius:4px;overflow:hidden;line-height:0;opacity:.55;filter:saturate(.6);outline-offset:3px;box-shadow:0 0 0 1px rgb(0 0 0 / 12%);transition:opacity .15s ease,filter .15s ease,transform .15s ease}
.flag svg{width:100%;height:100%;display:block}
.flag:hover{opacity:1;filter:none;transform:translateY(-1px)}
.flag--on{opacity:1;filter:none;box-shadow:0 0 0 2px var(--accent)}
.flag:focus-visible{outline:3px solid var(--accent)}
@media (max-width:480px){.langs{gap:5px;padding-left:10px}.flag{width:26px;height:18px}}
