/* Homesake website. Colours, type and shape follow docs/brand/03-guide/homesake-brand-guide.md.
   Light by default; dark when the visitor picks it (data-theme="dark" on <html>, see site.js). */

@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}

:root {
  --green: #3e5f44;
  --on-green: #ffffff;
  --text: #27392b;
  --muted: #56665a;
  --sage: #e4ede5;
  --bg: #f6f7f4;
  --card: #ffffff;
  --border: #dce3da;
  --leaf: #8fb394;
  --danger: #a3372c;
  --band: #3e5f44;
  --band-text: #ffffff;
  --band-muted: #e4ede5;
  --phone: #1d2620;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-shadow: 0 8px 30px rgba(39, 57, 43, 0.1);
  --radius: 24px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --green: #9cc8a3;
  --on-green: #121814;
  --text: #e7eee8;
  --muted: #a8b7ab;
  --sage: #24322a;
  --bg: #121814;
  --card: #1b231d;
  --border: #2c3a30;
  --danger: #f0a096;
  --band: #1b231d;
  --band-text: #e7eee8;
  --band-muted: #a8b7ab;
  --phone: #050806;
  --nav-bg: rgba(27, 35, 29, 0.82);
  --nav-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

.logo-dark,
:root[data-theme='dark'] .logo-light {
  display: none;
}
:root[data-theme='dark'] .logo-dark {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 16px/1.6 Inter,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-feature-settings: 'kern', 'calt';
  padding-top: 96px;
  overflow-x: hidden;
  transition:
    background-color 0.2s,
    color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--card);
  padding: 10px 18px;
  border-radius: 999px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Floating navigation */

.site-nav {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 50;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow 0.2s;
}
.site-nav.scrolled {
  box-shadow: var(--nav-shadow);
}
@media (min-width: 720px) {
  .site-nav {
    top: 16px;
    left: 24px;
    right: 24px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.brand img {
  height: 28px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--sage);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--sage);
}
.theme-toggle svg {
  width: 22px;
  height: 22px;
}
.theme-toggle .icon-sun,
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}
.nav-cta .long {
  display: none;
}
@media (min-width: 480px) {
  .nav-cta .long {
    display: inline;
  }
  .nav-cta .short {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--green);
  color: var(--on-green);
  border: 0;
  cursor: pointer;
  transition: filter 0.15s;
}
.button:hover {
  filter: brightness(1.1);
}
.button.secondary {
  background: var(--sage);
  color: var(--text);
}
.button.small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.button svg {
  width: 18px;
  height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.badge .dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
}
.badge svg {
  width: 13px;
  height: 13px;
}

/* Phone frame around real app screens */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 46px;
  padding: 10px;
  background: var(--phone);
  box-shadow:
    0 30px 60px -20px rgba(39, 57, 43, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone::before {
  content: '';
  position: absolute;
  top: 2.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2.8%;
  border-radius: 999px;
  background: var(--phone);
  z-index: 2;
}
.phone img {
  width: 100%;
  border-radius: 36px;
  aspect-ratio: 640 / 1312;
  padding-top: 12%;
  object-fit: cover;
  object-position: top;
  background: #f6f7f4;
}
.phone.dark-screen img {
  background: #121814;
}

/* Hero */

.hero {
  position: relative;
  padding: 40px 0 0;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-copy {
    padding-bottom: 96px;
  }
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
  }
}
.hero h1 {
  font-size: clamp(42px, 7.2vw, 72px);
  margin-top: 20px;
  max-width: 11ch;
}
.hero .lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 30em;
  margin-top: 22px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticks svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.hero-phones {
  position: relative;
  padding: 0 0 40px 4%;
}
.hero-phones .phone {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 290px;
}
.hero-phones .phone.back {
  position: absolute;
  z-index: 0;
  width: 50%;
  max-width: 245px;
  right: 0;
  top: 9%;
  transform: rotate(6deg);
}
@media (min-width: 960px) {
  .hero-phones {
    padding-left: 6%;
  }
  .hero-phones .phone.back {
    right: 4%;
  }
}
.roofline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}
.roofline svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sections */

section {
  padding: 80px 0;
}
@media (min-width: 720px) {
  section {
    padding: 112px 0;
  }
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.section-title {
  font-size: clamp(32px, 4.6vw, 48px);
  margin-top: 10px;
  max-width: 17ch;
}
.section-intro {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 19px);
  max-width: 36em;
  margin-top: 16px;
}
.center {
  text-align: center;
}
.center .section-title,
.center .section-intro {
  margin-left: auto;
  margin-right: auto;
}
.center .actions {
  justify-content: center;
}

/* Sound familiar? */

.questions {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .questions {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .questions {
    grid-template-columns: repeat(4, 1fr);
  }
}
.questions li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.questions li span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.answer {
  margin-top: 32px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.answer span {
  color: var(--green);
}

/* Feature rows */

.feature-row {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}
@media (min-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 72px 0;
  }
  .feature-row.flip .feature-copy {
    order: 2;
  }
}
.feature-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 12% 8%;
  border-radius: 48px;
  background: var(--sage);
  z-index: 0;
}
.feature-visual .phone {
  z-index: 1;
  max-width: 280px;
}
.feature-copy h3 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-top: 10px;
  max-width: 15ch;
}
.feature-copy > p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
  max-width: 30em;
}
.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checks li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sage)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e5f44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}
:root[data-theme='dark'] .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cc8a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}

/* Little things grid */

.grid-6 {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.tile h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}
.tile p {
  color: var(--muted);
  margin-top: 8px;
}
.icon-well {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  margin-bottom: 18px;
}
.icon-well svg {
  width: 24px;
  height: 24px;
}

/* Comparison */

.compare-wrap {
  position: relative;
  margin-top: 48px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  vertical-align: bottom;
}
.compare tbody th {
  text-align: left;
  font-weight: 500;
}
.compare .us {
  background: var(--sage);
  color: var(--text);
}
.compare thead .us {
  color: var(--green);
  font-size: 16px;
  border-radius: 16px 16px 0 0;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.mark svg {
  width: 16px;
  height: 16px;
}
.mark.yes {
  background: var(--green);
  color: var(--on-green);
}
.mark.no {
  color: var(--muted);
  border: 1px solid var(--border);
}
.mark.part {
  font-size: 13px;
  width: auto;
  height: auto;
  color: var(--muted);
}

/* Privacy band */

.band {
  background: var(--band);
  color: var(--band-text);
  position: relative;
  overflow: hidden;
}
.band .eyebrow {
  color: var(--band-muted);
}
.band .section-intro {
  color: var(--band-muted);
}
.band a {
  color: var(--band-text);
}
.band-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .band-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }
}
.promises {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}
.promises li {
  border-top: 2px solid var(--leaf);
  padding-top: 16px;
}
.promises strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}
.promises span {
  color: var(--band-muted);
}
.band .phone {
  margin: 0 auto;
  max-width: 270px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

/* FAQ */

.faq {
  margin-top: 40px;
  max-width: 780px;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p,
.faq details ul {
  color: var(--muted);
  padding-bottom: 22px;
  margin: 0;
  max-width: 40em;
}
.faq details ul {
  padding-left: 20px;
}
.faq details li + li {
  margin-top: 6px;
}
.faq h2 {
  font-size: 21px;
  margin: 44px 0 4px;
}

/* Early access */

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 56px 24px;
}
@media (min-width: 720px) {
  .cta-card {
    padding: 72px 48px;
  }
}
.cta-card > * {
  position: relative;
  z-index: 1;
}
.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  max-width: 520px;
}
.signup input[type='email'] {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.signup input[type='email']::placeholder {
  color: var(--muted);
}
.signup input[type='email']:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}
.signup .button {
  min-height: 52px;
  flex: 0 0 auto;
}
.fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.hp {
  position: absolute;
  left: -9999px;
}

/* Text pages (support, privacy, thanks, 404) */

.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 16px 96px;
}
.page h1 {
  font-size: clamp(36px, 5.4vw, 48px);
}
.page .updated {
  color: var(--muted);
  margin-top: 10px;
  font-size: 17px;
}
.page h2 {
  font-size: 21px;
  margin: 44px 0 8px;
}
.page p,
.page li {
  margin: 8px 0;
}
.page ul {
  padding-left: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 28px;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.placeholder {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
}
.footer-brand img {
  height: 26px;
  width: auto;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 26em;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.site-footer nav a {
  color: var(--muted);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.copyright {
  margin-top: 32px;
  font-size: 14px;
}
