/* Habt website. Colours and type from the Habt brand tokens (handoff/brand). */
@font-face {
  font-family: Outfit;
  src: url(assets/Outfit-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url(assets/Outfit-Bold.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --surface: #f5ede0;
  --surface-raised: #fbf8f3;
  --surface-inverse: #2b2420;
  --ink: #2b2420;
  --ink-muted: #6b5e52;
  --ink-inverse: #f5ede0;
  --line: #e3d5bf;
  --border-control: #8f7c66;
  --focus-ring: #8a4f0c;
  --brand-dot: #bf6f12;
  --amber-text: #8a4f0c;
  --amber-tint: #f2ddb8;
  --state-error: #b3261e;
  --dark-band: #2b2420;
  --dark-card: #362e29;
  --dark-ink: #f5ede0;
  --dark-muted: #bfaf9c;
  --dark-kicker: #e79a2e;
  --radius-md: 14px;
  --radius-lg: 22px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    400 16px/24px Outfit,
    system-ui,
    sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--amber-text);
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}
.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber-text);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}
.muted {
  color: var(--ink-muted);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface-raised);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-weight: 700;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font:
    700 16px/1.2 Outfit,
    system-ui,
    sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--surface-inverse);
  color: var(--ink-inverse) !important;
}
.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--border-control);
}
.site-header nav .btn {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 18px;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-block: 48px 80px;
}
.hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -1px;
}
.hero .lede {
  font-size: 20px;
  line-height: 30px;
  color: var(--ink-muted);
  max-width: 520px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  min-height: 56px;
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store small {
  font-size: 12px;
  font-weight: 400;
}
.store strong {
  font-size: 18px;
}
.hero-art {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.phone {
  width: 270px;
  max-width: 100%;
  padding: 10px;
  background: #2b2420;
  border-radius: 44px;
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
}

/* Why */
.why {
  background: var(--dark-band);
  color: var(--dark-ink);
}
.why .kicker {
  color: var(--dark-kicker);
}
.why-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-block: 96px 48px;
}
.why-top > div {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.44px;
}
.why-body {
  font-size: 18px;
  line-height: 28px;
  color: var(--dark-muted);
}
.why-body strong {
  color: var(--dark-ink);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 96px;
}
.cards .card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.cards h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.cards p {
  color: var(--dark-muted);
}

/* Features */
.features {
  padding-block: 96px 32px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.features > header {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.44px;
}
.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.feature.flip {
  flex-direction: row-reverse;
}
.feature .art {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}
.feature .art .phone {
  width: 260px;
  border-radius: 42px;
}
.feature .art .phone img {
  border-radius: 32px;
}
.feature .copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature h3 {
  font-size: 32px;
  line-height: 38px;
}
.feature .copy > p:not(.kicker) {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}
.feature ul {
  margin: 0;
  padding-left: 20px;
  line-height: 28px;
}
.soon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.soon .card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pill {
  align-self: flex-start;
  background: var(--amber-tint);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.soon h3 {
  font-size: 20px;
}

/* Privacy + news */
.panel {
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.panel > div {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.privacy {
  margin-block: 64px;
  background: var(--surface-raised);
}
.privacy img {
  width: 88px;
  height: 88px;
}
.privacy h2 {
  font-size: 32px;
  line-height: 38px;
}
.privacy p {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}
.news {
  margin-bottom: 96px;
  background: var(--amber-tint);
}
.news h2 {
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.4px;
}
.news .intro {
  font-size: 18px;
  line-height: 28px;
}
.news form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news label.field {
  font-size: 14px;
  font-weight: 700;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border-control);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  font:
    16px Outfit,
    system-ui,
    sans-serif;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: #2b2420;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  font-size: 15px;
  font-weight: 700;
  min-height: 22px;
}
.status.error {
  color: var(--state-error);
}
.fine {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-block: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Simple text pages (privacy, confirmed) */
.doc {
  max-width: 720px;
  padding-block: 32px 96px;
}
.doc h1 {
  font-size: 44px;
  line-height: 48px;
  margin-bottom: 16px;
}
.doc h2 {
  font-size: 22px;
  line-height: 28px;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  font-size: 17px;
  line-height: 27px;
}
.doc p + p {
  margin-top: 12px;
}

/* Phones: one header row (logo + Get updates), tighter hero and sections. */
@media (max-width: 640px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    padding-block: 16px;
  }
  .site-header nav a:not(.btn) {
    display: none;
  }
  .hero {
    gap: 32px;
    padding-block: 16px 56px;
  }
  .hero-text {
    gap: 20px;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.4px;
  }
  .hero .lede {
    font-size: 18px;
    line-height: 28px;
  }
  .stores {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .stores .store {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
    padding: 8px 12px;
    justify-content: flex-start;
  }
  .stores .store small {
    font-size: 11px;
  }
  .stores .store strong {
    font-size: 16px;
  }
  .why-top {
    padding-block: 64px 32px;
    gap: 24px;
  }
  .cards {
    padding-bottom: 64px;
  }
  .features {
    padding-block: 64px 24px;
    gap: 64px;
  }
  .feature,
  .feature.flip {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }
  .feature h3 {
    font-size: 26px;
    line-height: 32px;
  }
  .panel {
    padding: 32px 20px;
    gap: 20px;
  }
  .privacy {
    margin-block: 32px;
  }
  .news {
    margin-bottom: 64px;
  }
  .news h2 {
    font-size: 32px;
    line-height: 36px;
  }
  .news .row .btn {
    flex: 1 1 100%;
  }
}
