/* Cairn — cairnhabit.com
   Built following the garden-skills web-design-engineer workflow.
   Philosophy: MUJI's emptiness + Aesop's editorial seriousness, applied to Cairn's locked dark palette.
   Fonts: Outfit (display) + Source Sans 3 (body) — matches the shipped app exactly.
*/

:root {
  --night: #0E150F;
  --night-2: #080D09;
  --forest: #1A2A1F;
  --forest-2: #243529;
  --sage: #5A9E82;
  --sage-dim: rgba(90, 158, 130, 0.35);
  --gold: #C4A95A;
  --cream: #D4D8CE;
  --snow: #EDF0E8;
  --muted: rgba(212, 216, 206, 0.5);
  --muted-strong: rgba(212, 216, 206, 0.7);
  --hairline: rgba(212, 216, 206, 0.14);
  --hairline-strong: rgba(90, 158, 130, 0.28);
  --maxw: 1120px;
  --col: 680px;  /* narrow content column per MUJI recipe */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.display { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 500; letter-spacing: -0.01em; }

a { color: var(--sage); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--snow); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* === Labels (Aesop-style small caps) === */
.label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
}
.label-num { color: var(--muted-strong); margin-right: 8px; }

/* === Links / buttons ===
   Per garden recipe: square edges, no shadow, minimal motion.
   Buttons are hairline-bordered rectangles with hover color shift only. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--sage);
  background: transparent;
  color: var(--snow);
}
.btn:hover { background: var(--sage); color: var(--night); }
.btn-primary { background: var(--sage); color: var(--night); border-color: var(--sage); }
.btn-primary:hover { background: transparent; color: var(--snow); }

/* Play Store badge — official asset, display clean, no wrapper border */
.play-badge-link {
  display: inline-block;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  line-height: 0;
}
.play-badge {
  display: block;
  height: 52px;
  width: auto;
  border: none;
  transition: opacity 0.3s ease;
}
.play-badge:hover { opacity: 0.85; }

/* === Nav ===
   Per Aesop recipe: all-text navigation in masthead, letter-spaced */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(14, 21, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--snow);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--snow); }

@media (max-width: 700px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* === Sections — generous spacing per MUJI recipe (240px between sections) === */
.section { padding: 160px 0; position: relative; }
.section-narrow {
  max-width: var(--col);
  margin: 0 auto;
}
@media (max-width: 700px) {
  .section { padding: 96px 0; }
}

/* === Headings === */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--snow);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 28px;
}
h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 500;
}
.italic-accent { font-style: italic; color: var(--sage); }

p { margin-bottom: 1.4em; color: var(--cream); max-width: 580px; }
p.lead { font-size: 19px; color: var(--cream); line-height: 1.65; }
strong { color: var(--snow); font-weight: 600; }

/* === Hero — asymmetric, image right per Aesop recipe === */
.hero {
  padding: 160px 0 120px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 130px 0 80px; }
}
.hero-text { max-width: 520px; }
.hero h1 { margin-top: 24px; }
.hero-sub { font-size: 19px; color: var(--cream); margin-bottom: 40px; max-width: 480px; line-height: 1.6; }
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted-strong);
  letter-spacing: 0.02em;
}

/* Phone — matches screenshot aspect ratio exactly (9/16), no cropping */
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--night-2);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Problem section — list with hairline separators (not cards) === */
.problem-list {
  list-style: none;
  padding: 0;
  max-width: var(--col);
  margin: 0 auto;
}
.problem-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.problem-list li:last-child { border-bottom: none; }
.problem-list .num {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--muted-strong);
  letter-spacing: 0.15em;
}
.problem-list .body {
  font-size: 19px;
  color: var(--cream);
  line-height: 1.55;
}
.problem-list .body em { font-style: italic; color: var(--snow); }

/* === Steps — vertical narrative, not card grid === */
.steps-narrative {
  max-width: var(--col);
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-marker {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--sage);
  font-weight: 500;
}
.step h3 {
  margin-bottom: 8px;
  font-size: 24px;
}
.step p { margin: 0; font-size: 17px; color: var(--cream); }

/* === Differentiator — asymmetric split with real image === */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; gap: 48px; }
}
.diff-list {
  list-style: none;
  padding: 0;
}
.diff-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  font-size: 17px;
  color: var(--cream);
}
.diff-list li:last-child { border-bottom: none; }
.diff-list .mark {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.diff-list .mark-y { color: var(--sage); }
.diff-list .mark-n { color: var(--gold); }

/* === Feature block — single real photo, captioned plainly === */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .feature-block { grid-template-columns: 1fr; gap: 48px; }
}
.feature-img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  background: var(--night-2);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-caption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-strong);
  text-transform: uppercase;
}

/* === Screenshots row — small images, plain === */
.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .shot-row { grid-template-columns: repeat(2, 1fr); }
}
.shot {
  border: 1px solid var(--hairline);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--night-2);
  transition: border-color 0.4s ease;
}
.shot:hover { border-color: var(--sage-dim); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === Privacy promise — quiet, hairline-bordered === */
.privacy-block {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 48px;
  border: 1px solid var(--hairline-strong);
  text-align: left;
}
.privacy-block h2 { text-align: left; font-size: 32px; }
.privacy-block p { margin-bottom: 24px; }
.privacy-block .small-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* === Final CTA — not a dark panel, just quiet closing text === */
.closing {
  padding: 200px 0 160px;
  text-align: center;
}
.closing h2 {
  font-size: clamp(36px, 5vw, 52px);
  max-width: 720px;
  margin: 0 auto 24px;
}
.closing p {
  max-width: 540px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--cream);
}
.closing-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a { color: var(--cream); }
.footer-links a:hover { color: var(--snow); }
.footer-copy {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  width: 100%;
}

/* === Legal pages — Aesop-style editorial layout === */
.legal { padding: 160px 0 120px; }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.legal-header h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 12px;
}
.legal-header .meta {
  color: var(--sage);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.legal h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.legal p { font-size: 16px; margin-bottom: 18px; color: var(--cream); }
.legal ul { margin: 16px 0 24px; padding-left: 24px; }
.legal li { margin-bottom: 12px; font-size: 16px; color: var(--cream); line-height: 1.6; }
.legal strong { color: var(--snow); }
.legal-highlight {
  background: var(--forest);
  border-left: 2px solid var(--sage);
  padding: 24px 28px;
  margin: 32px 0;
}
.legal-highlight p { margin: 0; color: var(--snow); }
.legal-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* === Motion — imperceptible per MUJI recipe === */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade { animation: fade 0.8s ease both; }
.fade-2 { animation-delay: 0.15s; }
.fade-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
