:root {
  --primary: #a54a38;
  --text-on-primary: #fff8f4;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--primary);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* Dense mode-icon collage — landing page doodle wallpaper */
.doodle-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.doodle-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 50% 44%, rgba(0, 0, 0, 0.38), transparent 72%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(165, 74, 56, 0.55), transparent 70%);
  z-index: 20;
}

.doodle {
  position: absolute;
  width: 5.25rem;
  height: 5.25rem;
  margin: -2.625rem 0 0 -2.625rem;
  object-fit: cover;
  border-radius: 20%;
  filter: brightness(1.18) saturate(0.75) contrast(1.05);
  mix-blend-mode: soft-light;
  --r: 0deg;
  --s: 1;
  transform: rotate(var(--r)) scale(var(--s));
}

.doodle-mark {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border: 2px solid color-mix(in srgb, var(--text-on-primary) 22%, transparent);
  border-radius: 1px;
  --r: 0deg;
  --s: 1;
  transform: rotate(var(--r)) scale(var(--s));
  opacity: 0.35;
}

.doodle-mark::before,
.doodle-mark::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--text-on-primary) 22%, transparent);
}

.doodle-mark::before {
  left: 50%;
  top: -0.35rem;
  width: 2px;
  height: calc(100% + 0.7rem);
  margin-left: -1px;
}

.doodle-mark::after {
  top: 50%;
  left: -0.35rem;
  height: 2px;
  width: calc(100% + 0.7rem);
  margin-top: -1px;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.logo {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-primary);
  text-transform: lowercase;
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: color-mix(in srgb, var(--text-on-primary) 88%, transparent);
  letter-spacing: 0.01em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
}

.stores a {
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.stores a:hover {
  transform: translateY(-2px);
}

.stores a:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 4px;
}

.store-badge--apple {
  height: 44px;
}

.store-badge--google {
  height: 64px;
}

.site-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: 0.875rem 1.25rem;
  padding-top: calc(0.875rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid color-mix(in srgb, var(--text-on-primary) 18%, transparent);
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-primary);
  text-decoration: none;
  text-transform: lowercase;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.92;
}

.site-logo:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.site-btn--ghost {
  color: var(--text-on-primary);
  border-color: color-mix(in srgb, var(--text-on-primary) 45%, transparent);
  background: transparent;
}

.site-btn--ghost:hover {
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

.site-btn--solid {
  color: var(--primary);
  background: var(--text-on-primary);
  border-color: var(--text-on-primary);
}

.site-btn--solid:hover {
  opacity: 0.92;
}

.site-btn:focus-visible,
.site-menu-btn:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 3px;
}

.site-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--text-on-primary) 45%, transparent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.site-menu-btn:hover {
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

.site-menu-btn-bar {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-on-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--menu-open .site-menu-btn-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header--menu-open .site-menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-menu-btn-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu-panel {
  position: absolute;
  top: calc(100% - 0.5rem);
  right: 1.25rem;
  min-width: 13.5rem;
  max-width: min(18rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text-on-primary) 22%, transparent);
  background: color-mix(in srgb, var(--primary) 92%, #000 8%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-menu-section + .site-menu-section {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--text-on-primary) 14%, transparent);
}

.site-menu-section-title {
  margin: 0;
  padding: 0.25rem 0.85rem 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-on-primary) 55%, transparent);
}

.site-menu-panel[hidden] {
  display: none;
}

.site-menu-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-on-primary) 88%, transparent);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-menu-panel a:hover {
  background: color-mix(in srgb, var(--text-on-primary) 12%, transparent);
  color: var(--text-on-primary);
}

.site-menu-panel a[aria-current="page"] {
  color: var(--text-on-primary);
  font-weight: 700;
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

@media (max-width: 420px) {
  .site-header-inner {
    gap: 0.75rem;
  }

  .site-btn {
    padding-inline: 0.7rem;
    font-size: 0.8125rem;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.5rem 2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--text-on-primary) 18%, transparent);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--text-on-primary) 75%, transparent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text-on-primary);
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--text-on-primary) 55%, transparent);
}

.footer-copy a {
  color: color-mix(in srgb, var(--text-on-primary) 75%, transparent);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--text-on-primary);
  text-decoration: underline;
}

/* ——— Legal & contact pages ——— */
.legal-page {
  flex: 1 1 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--text-on-primary);
  color: #1a1816;
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.legal-card h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.legal-updated {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: #6b6560;
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1816;
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1816;
}

.legal-card p,
.legal-card li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3d3835;
}

.legal-card p {
  margin: 0 0 1rem;
}

.legal-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-card li {
  margin-bottom: 0.35rem;
}

.legal-card a {
  color: var(--primary);
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-card th,
.legal-card td {
  border: 1px solid #e6e2de;
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: #f7f4f1;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  padding: 1.25rem;
  border: 1px solid #e6e2de;
  border-radius: 12px;
  background: #faf8f6;
}

.contact-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-item a {
  font-weight: 600;
}

/* ——— Marketing / info pages ——— */
.content-page {
  flex: 1 1 auto;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

.content-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--text-on-primary);
  color: #1a1816;
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.content-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.content-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #3d3835;
}

.content-card h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1816;
}

.content-card p,
.content-card li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3d3835;
}

.content-card p {
  margin: 0 0 1rem;
}

.content-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content-card li {
  margin-bottom: 0.35rem;
}

.content-card a {
  color: var(--primary);
  font-weight: 600;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.mode-card {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #e6e2de;
  background: #faf8f6;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mode-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, #e6e2de);
  transform: translateY(-1px);
}

.mode-card-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.mode-card-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b6560;
}

.link-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.link-card {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #e6e2de;
  background: #faf8f6;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.link-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, #e6e2de);
}

.link-card-title {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.link-card-desc {
  display: block;
  font-size: 0.875rem;
  color: #6b6560;
}

.content-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e6e2de;
  font-size: 0.9375rem;
  color: #6b6560;
}

