/* MindSpace — landing styles. Colours and type follow the app: a navy ink, a terracotta accent,
   a warm cream page, and the soft shapes of its onboarding cards. */

:root {
  --ink: #353a48;
  --ink-soft: rgba(53, 58, 72, 0.72);
  --ink-faint: rgba(53, 58, 72, 0.5);
  --accent: #b5685e;
  --accent-soft: #f6a68c;
  --sage: #a1aa8d;
  --sage-dark: #3b6450;
  --sun: #fabe73;
  --sky: #8caacd;
  --page: #faf9f6;
  --paper: #ffffff;
  --sand: #f3ede6;
  --line: rgba(53, 58, 72, 0.12);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(53, 58, 72, 0.08);
  --title: "STIX Two Text", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--title);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 23px; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--title);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 22px; color: var(--ink-soft); }

.muted { color: var(--ink-faint); font-size: 16px; }

section { padding: 88px 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  font-family: var(--title);
  font-size: 25px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: url("../img/logo-mark.png") center / contain no-repeat;
}

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 17px; }
.nav a:hover { color: var(--ink); }

.lang { display: flex; gap: 4px; }
.lang a {
  font-family: var(--title);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-faint);
  padding: 4px 7px;
  border-radius: 8px;
}
.lang a[aria-current="true"] { color: var(--ink); background: var(--sand); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--title);
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-store { background: #111; color: #fff; }
.btn-store svg { width: 20px; height: 20px; fill: #fff; }
.btn-store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1; }
.btn-store span { display: block; text-align: left; line-height: 1.1; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-small { padding: 9px 18px; font-size: 15px; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 64px 0 96px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }

.hero-visual { position: relative; min-height: 460px; }


/* Line-art hands, no background of their own: they sit straight on the page. */
.hero-visual img.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
}

/* Plain text above the hands, no bubble. */
.hero-note {
  position: relative;
  z-index: 2;
  max-width: 78%;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero-note b { font-family: var(--title); font-weight: 500; display: block; margin-bottom: 2px; color: var(--ink); }

/* ---------------------------------------------------------------- features */

/* Cards white, section cream: several illustrations sit on white, and a white card lets them
   blend in rather than showing their edges. */
.features { background: var(--sand); }

/* The whole block of cards 1.4× smaller in both directions, text and pictures included.
   `zoom` scales the layout too, so max-width is in the block's own (unzoomed) pixels. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  zoom: 0.714;
  max-width: calc(var(--wrap) * 1.2);  /* cards 1.2× wider than the 1.4× reduction alone */
  margin: 0 auto;
}

.feature {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 26px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feature.wide { grid-column: span 2; flex-direction: row; gap: 20px; padding-bottom: 0; }
.feature.wide .feature-text { flex: 1; padding-bottom: 26px; }
/* The grid is zoomed to 0.714, so text is set 1.4× larger to come out at the site's usual size. */
.feature p { color: var(--ink-soft); font-size: 25px; }
.feature h3 { font-size: 32px; }
.feature .tag { font-size: 17px; }
/* Illustrations sit in the bottom-right corner of each card, standing on its bottom edge. */
.feature img {
  margin: auto 0 0;
  align-self: flex-end;
  max-height: 220px;
  object-fit: contain;
}
.feature.wide img { max-height: 260px; }
/* Artwork that runs off its right edge (the hills) sits flush with the card's corner instead of
   stopping short of it at the padding. */
.feature img.bleed-right { margin-right: -26px; }

.tag {
  display: inline-block;
  font-family: var(--title);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(161, 170, 141, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------- tapping */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--title);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------- research */

.research { background: var(--sand); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.stat .num {
  font-family: var(--title);
  font-size: 54px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.stat h3 { font-size: 21px; }
.stat p { color: var(--ink-soft); font-size: 17px; }
.stat .source { margin-top: auto; font-size: 15px; font-style: italic; color: var(--ink-faint); }
.stat .source a { color: var(--ink-soft); }

.disclaimer { margin-top: 28px; font-size: 16px; color: var(--ink-faint); max-width: 760px; }

/* ---------------------------------------------------------------- daily affirmation tool */

.daily { text-align: center; }

.daily-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper) url("../img/shapes.png") center / cover no-repeat;
  border-radius: 34px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.daily-card .affirmation {
  font-family: var(--title);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  min-height: 3.9em;
  display: flex;
  align-items: center;
  transition: opacity 0.35s ease;
}
.daily-card .affirmation.fading { opacity: 0; }

.daily-card .btn { margin-top: 26px; }
.daily-after { margin-top: 22px; }

/* ---------------------------------------------------------------- screenshots */

.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.shot {
  flex: 0 0 230px;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* A block still waiting for real material. Visible on purpose, so nothing ships by accident. */
.placeholder {
  border: 2px dashed var(--accent);
  background: repeating-linear-gradient(45deg, #fff 0 12px, #fbf3ef 12px 24px);
  color: var(--accent);
  font-family: var(--title);
  font-size: 15px;
  text-align: center;
  padding: 18px;
  border-radius: 18px;
}

/* ---------------------------------------------------------------- reviews */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.review .stars { color: var(--sun); letter-spacing: 3px; margin-bottom: 8px; }
.review p { font-size: 18px; }
.review cite { font-style: normal; color: var(--ink-faint); font-size: 15px; }

/* ---------------------------------------------------------------- signup */

.signup .box {
  background: var(--ink);
  color: #fff;
  border-radius: 34px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.signup .box::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 280px;
  right: -90px;
  top: -110px;
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  background: var(--accent-soft);
  opacity: 0.35;
}
.signup h2, .signup h3 { color: #fff; }
.signup p { color: rgba(255, 255, 255, 0.8); }
.signup ul { margin: 0 0 8px; padding-left: 20px; color: rgba(255, 255, 255, 0.85); }

.signup-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.signup-form input[type="email"] {
  font: inherit;
  font-size: 18px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 0;
  outline: none;
}
.signup-form .btn { background: var(--sun); color: var(--ink); }
.signup-form small { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.form-status { font-size: 16px; min-height: 1.4em; color: var(--sun); }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Inline variant at the end of articles. */
.signup-inline {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 30px;
  margin: 40px 0;
}
.signup-inline .signup-form input[type="email"] { border: 1px solid var(--line); }
.signup-inline .signup-form .btn { background: var(--accent); color: #fff; }
.signup-inline .signup-form small { color: var(--ink-faint); }
.signup-inline .form-status { color: var(--accent); }

/* ---------------------------------------------------------------- articles */

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.article-card h3 { font-size: 20px; }
.article-card p { color: var(--ink-soft); font-size: 16px; }
.article-card .more { margin-top: auto; color: var(--accent); font-family: var(--title); font-size: 15px; }

.article { padding: 56px 0 80px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); }
.article h2 { font-size: 28px; margin-top: 1.6em; }
.article p, .article li { font-size: 20px; }
.article li { margin-bottom: 0.4em; }
.article .meta { color: var(--ink-faint); font-size: 16px; margin-bottom: 30px; }
.article .cta-box {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.article .cta-box p { margin: 0; flex: 1 1 300px; }
.breadcrumbs { font-size: 16px; margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------------------------------------------------------------- FAQ */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-family: var(--title);
  font-size: 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- legal */

.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 26px; margin-top: 1.5em; }
.legal p, .legal li { font-size: 18px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  font-size: 16px;
  color: var(--ink-faint);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- phones */

@media (max-width: 900px) {
  .hero .wrap, .signup .box { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
  .feature-grid, .steps, .stats, .reviews-grid { grid-template-columns: 1fr; }
  .feature-grid { zoom: 1; }  /* full size on phones: the text would be too small to read */
  .feature p { font-size: 18px; }
  .feature h3 { font-size: 23px; }
  .feature .tag { font-size: 12px; }
  .feature.wide { grid-column: auto; flex-direction: column; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .signup .box { padding: 34px 24px; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--page);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav.open { display: flex; }
  .site-header .btn { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .daily-card { padding: 48px 28px; }
}
