:root {
  --ink: #191c1f;
  --paper: #f7f0dc;
  --mint: #70c7a0;
  --coral: #ee5333;
  --blue: #336eb8;
  --gold: #f5b839;
  --muted: #626262;
  --line: rgba(25, 28, 31, 0.14);
  --shadow: 10px 10px 0 rgba(25, 28, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(25, 28, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 28, 31, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--paper), #f9fbf3 46%, #e8f6ef);
  background-size: 34px 34px, 34px 34px, auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 240, 220, 0.86);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  text-decoration: underline;
}

.language-switcher {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.language-switcher button {
  border: 0;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  color: white;
  background: var(--ink);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(42px, 8vw, 92px) clamp(18px, 6vw, 86px) 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions,
.support {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(25, 28, 31, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(25, 28, 31, 0.18);
}

.button.primary {
  color: white;
  background: var(--coral);
}

.button.secondary {
  background: white;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(360px, 86vw);
  aspect-ratio: 9 / 18.6;
  padding: 16px;
  border: 5px solid var(--ink);
  border-radius: 42px;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 20px;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--paper), #eff9f2);
}

.app-top,
.habit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-top {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.app-top img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.app-top span,
.habit-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.habit-card,
.coach-card,
.feature-grid article,
.text-panel,
.legal-grid article {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 6px 6px 0 rgba(25, 28, 31, 0.13);
}

.habit-card {
  padding: 16px;
}

.ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 7px solid var(--coral);
  border-left-color: rgba(25, 28, 31, 0.15);
  border-radius: 999px;
  font-weight: 900;
}

.blocks {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin: 18px 0;
}

.blocks::before {
  content: "";
  grid-column: 1 / -1;
  height: 82px;
  background:
    linear-gradient(90deg, var(--coral) 0 8%, transparent 8% 10%, var(--gold) 10% 18%, transparent 18% 20%, var(--mint) 20% 28%, transparent 28% 30%, var(--blue) 30% 38%, transparent 38% 40%, rgba(25,28,31,.12) 40% 100%);
  mask: repeating-linear-gradient(90deg, #000 0 13px, transparent 13px 17px);
  border-radius: 4px;
}

.habit-card button {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.coach-card {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(245, 184, 57, 0.22);
}

.coach-card p {
  margin: 0;
  font-size: 0.95rem;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 86px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.legal-grid article,
.text-panel {
  padding: 22px;
}

.feature-grid p,
.legal-grid p,
.text-panel p,
.support p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.text-panel a {
  color: var(--blue);
  font-weight: 900;
}

.legal {
  background: rgba(255, 255, 255, 0.35);
  border-block: 2px solid var(--line);
}

.support {
  justify-content: space-between;
}

.support > div {
  max-width: 760px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 26px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}
