/* ==========================================================================
   Zen & Mind App — Studio Website
   Premium dark wellness aesthetic
   ========================================================================== */

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

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214;
  --bg-elevated: #1a1a1e;
  --bg-card: #161618;
  --bg-subtle: rgba(197, 168, 128, 0.03);
  --gold: #C5A880;
  --gold-hover: #d4bc96;
  --gold-dim: rgba(197, 168, 128, 0.45);
  --gold-glow: rgba(197, 168, 128, 0.15);
  --gold-line: rgba(197, 168, 128, 0.25);
  --text: #e8e6e3;
  --text-muted: rgba(232, 230, 227, 0.55);
  --text-faint: rgba(232, 230, 227, 0.35);
  --header-bg: rgba(18, 18, 20, 0.88);
  --header-shadow: rgba(197, 168, 128, 0.06);
  --shadow-soft: rgba(0, 0, 0, 0.45);
  --shadow-phone: rgba(0, 0, 0, 0.55);
  --phone-frame-start: #1e1e22;
  --phone-frame-end: #0e0e10;
  --phone-notch: #0e0e10;
  --btn-bg-start: #0a0a0c;
  --btn-bg-end: #1a1a1e;
  --btn-bg-hover-start: #141418;
  --btn-bg-hover-end: #222228;
  --btn-text: #f5f3f0;
  --btn-text-muted: rgba(245, 243, 240, 0.72);
  --btn-text-hover: #ffffff;
  --dialog-backdrop: rgba(0, 0, 0, 0.72);
  --aso-text: rgba(197, 168, 128, 0.36);
  --img-overlay: transparent;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F3ED;
  --bg-elevated: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-subtle: rgba(154, 123, 82, 0.06);
  --gold: #9A7B52;
  --gold-hover: #7A6040;
  --gold-dim: rgba(154, 123, 82, 0.55);
  --gold-glow: rgba(154, 123, 82, 0.12);
  --gold-line: rgba(154, 123, 82, 0.22);
  --text: #2A2826;
  --text-muted: rgba(42, 40, 38, 0.68);
  --text-faint: rgba(42, 40, 38, 0.42);
  --header-bg: rgba(247, 243, 237, 0.92);
  --header-shadow: rgba(154, 123, 82, 0.08);
  --shadow-soft: rgba(42, 40, 38, 0.12);
  --shadow-phone: rgba(42, 40, 38, 0.18);
  --phone-frame-start: #2A2826;
  --phone-frame-end: #1a1a18;
  --phone-notch: #1a1a18;
  --btn-bg-start: #2A2826;
  --btn-bg-end: #3d3a36;
  --btn-bg-hover-start: #3d3a36;
  --btn-bg-hover-end: #4a4640;
  --btn-text: #f5f3f0;
  --btn-text-muted: rgba(245, 243, 240, 0.72);
  --btn-text-hover: #ffffff;
  --dialog-backdrop: rgba(42, 40, 38, 0.45);
  --aso-text: rgba(154, 123, 82, 0.55);
  --img-overlay: rgba(247, 243, 237, 0.08);
}

:root {
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --header-h: 64px;
  --max-w: 1080px;
  --transition: 0.3s ease;
  --theme-transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color var(--theme-transition),
    color var(--theme-transition);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--gold-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
}

.ambient-glow--top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

.ambient-glow--bottom {
  bottom: -100px;
  right: -80px;
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  animation: pulse-glow 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 1px 20px var(--header-shadow);
  transition:
    background-color var(--theme-transition),
    border-color var(--theme-transition),
    box-shadow var(--theme-transition);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.site-logo:hover {
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-dim);
  transition: width var(--transition);
}

.site-nav__link:hover {
  color: var(--gold);
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__link--active,
.site-nav__link[aria-current="page"] {
  color: var(--gold);
}

.site-nav__link--active::after,
.site-nav__link[aria-current="page"]::after {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--gold-line);
  background: var(--bg-subtle);
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--theme-transition),
    box-shadow var(--transition);
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  box-shadow: 0 0 16px var(--gold-glow);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

[data-theme="light"] .theme-toggle__sun {
  display: block;
}

[data-theme="light"] .theme-toggle__moon {
  display: none;
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

/* Intro */
.intro {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.intro__inner {
  max-width: 920px;
  margin: 0 auto;
}

.intro__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.intro__content {
  max-width: 720px;
  margin: 0 auto;
}

.intro__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fade-up 0.8s ease forwards;
}

.intro__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.15s forwards;
}

.intro__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.3s forwards;
}

.intro__hero-product {
  max-width: 540px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.38s forwards;
}

.intro__app-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}

.intro__app-store-btn {
  margin-top: 0.25rem;
}

.privacy-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--bg-subtle);
  max-width: 100%;
  text-align: left;
}

.privacy-trust-badge--compact {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.privacy-trust-badge__icon {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.1rem;
}

.privacy-trust-badge__lead {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.privacy-trust-badge__sub {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.feature-demo {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--bg-subtle);
  max-width: 320px;
}

.feature-demo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 160px;
  padding: 1.25rem;
  text-align: center;
}

.feature-demo__icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.85;
}

.feature-demo__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.feature-demo__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-demo__video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.feature-demo__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: inherit;
  object-fit: cover;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--bg-subtle);
  text-align: center;
}

.article-cta__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.article-cta__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.article-cta .app-store-btn {
  margin: 0 auto;
}

.intro__divider {
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px var(--gold-dim);
  opacity: 0;
  animation: fade-up 0.8s ease 0.45s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Site imagery */
.site-img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 24px var(--gold-glow);
}

.hero-visual {
  position: relative;
  margin: 0;
  max-width: min(360px, 100%);
  margin-inline: auto;
  opacity: 0;
  animation: fade-up 0.8s ease 0.5s forwards;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.hero-visual__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
  border: 1px solid var(--gold-line);
  box-shadow:
    0 0 0 1px var(--gold-glow),
    0 16px 48px var(--shadow-soft),
    0 0 40px var(--gold-glow);
}

.featured__ambient {
  display: none;
}

/* Featured section */
.featured {
  padding: 4rem 1.5rem 5.5rem;
  position: relative;
}

.featured__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.featured__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.featured__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.featured__desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
}

.featured__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.featured__phone {
  display: flex;
  justify-content: center;
}

.featured__features-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  flex: 0 0 auto;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -28px -36px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.phone-mockup__frame {
  position: relative;
  z-index: 1;
  width: 260px;
  padding: 11px;
  background: linear-gradient(155deg, var(--phone-frame-start) 0%, var(--phone-frame-end) 100%);
  border-radius: 44px;
  border: 1.5px solid var(--gold-dim);
  box-shadow:
    0 0 0 1px var(--gold-glow),
    0 0 48px var(--gold-glow),
    0 32px 72px var(--shadow-phone);
  transition:
    border-color var(--theme-transition),
    box-shadow var(--theme-transition),
    background var(--theme-transition);
}

.phone-mockup__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: var(--phone-notch);
  border-radius: 0 0 18px 18px;
  z-index: 2;
  transition: background-color var(--theme-transition);
}

.phone-mockup__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-mockup__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-mockup__img--missing {
  display: none;
}

.phone-mockup__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg) 100%);
  color: var(--text-muted);
}

.phone-mockup__img--missing ~ .phone-mockup__fallback {
  display: flex;
}

.phone-mockup__fallback-icon {
  font-size: 2.5rem;
  color: var(--gold-dim);
}

.phone-mockup__fallback-text {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Feature list — timeline style */
.feature-list {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.feature-list::before {
  content: '';
  position: absolute;
  left: 0.82rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 8%, var(--gold-line) 92%, transparent);
  pointer-events: none;
}

.feature-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: transform var(--transition);
}

.feature-list__item:first-child {
  padding-top: 0;
}

.feature-list__item:last-child {
  padding-bottom: 0;
}

.feature-list__item:hover {
  transform: translateX(4px);
}

.feature-list__marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold);
  background: var(--bg);
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 12px var(--gold-glow);
  transition:
    background-color var(--theme-transition),
    border-color var(--theme-transition),
    box-shadow var(--transition);
}

.feature-list__item:hover .feature-list__marker {
  border-color: var(--gold-dim);
  box-shadow: 0 0 28px var(--gold-glow);
}

.feature-list__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.3;
}

.feature-list__text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 36rem;
}

.page-hero--with-banner {
  padding-top: 0;
}

.page-hero__banner {
  margin: 0 0 2.5rem;
  max-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}

.page-hero__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.page-hero__banner-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-hero--with-banner .page-hero__inner {
  padding: 0 1.5rem;
}

.about-content__figure {
  margin: 1.5rem 0 2rem;
}

.about-content__figure-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 24px var(--gold-glow);
}

.blog-card__thumb-link {
  display: block;
  margin: -1.75rem -1.75rem 1.25rem;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid var(--gold-line);
}

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

.blog-card:hover .blog-card__thumb {
  transform: scale(1.03);
  opacity: 0.92;
}

.article-hero {
  margin: 0 0 2rem;
}

.article-hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 28px var(--gold-glow);
}

/* Inside the app — compact screenshot cards */
.screenshot-strip {
  margin: 2.5rem auto 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-line);
  max-width: 640px;
}

.screenshot-strip__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.screenshot-strip__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 0.5rem;
}

.screenshot-strip__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 420px;
  margin-inline: auto;
}

.screenshot-strip__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-card__frame {
  width: 100%;
  max-width: 118px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: var(--bg-subtle);
  box-shadow: 0 0 16px var(--gold-glow);
  overflow: hidden;
  aspect-ratio: 390 / 844;
}

.screenshot-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card__copy {
  margin-top: 0.65rem;
  max-width: 130px;
}

.screenshot-card__name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.2rem;
}

.screenshot-card__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.screenshot-strip__scroll-hint {
  display: none;
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.featured__cta {
  text-align: center;
}

/* Primary action buttons — dark fill + light label in BOTH themes */
.app-store-btn,
.feedback__submit {
  color: var(--btn-text);
  background: linear-gradient(135deg, var(--btn-bg-start) 0%, var(--btn-bg-end) 100%);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--gold-glow);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    color var(--theme-transition),
    opacity var(--transition);
}

.app-store-btn:hover,
.feedback__submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--btn-bg-hover-start) 0%, var(--btn-bg-hover-end) 100%);
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-1px);
  color: var(--btn-text-hover);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
}

.app-store-btn__icon {
  flex-shrink: 0;
}

.app-store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-btn__label {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--btn-text-muted);
}

.app-store-btn__store {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.featured__soon {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}


.featured__aso {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--aso-text);
  letter-spacing: 0.03em;
}

/* Support */
.support {
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, transparent 0%, var(--bg-subtle) 100%);
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.support__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.support__copy {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.support__email {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.support__email:hover {
  border-bottom-color: var(--gold-dim);
}

.support__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.page-hero__divider {
  width: 60px;
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Journal preview (home) */
.journal-preview {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--gold-line);
}

.journal-preview__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.journal-preview__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.journal-preview__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.journal-preview__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.journal-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.journal-preview__more {
  text-align: center;
}

.text-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--gold);
}

/* Blog cards */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background-color var(--theme-transition);
}

.blog-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-2px);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--gold);
}

.blog-card__excerpt {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.blog-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Blog listing */
.blog-listing {
  padding: 2rem 1.5rem 5rem;
}

.blog-listing__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Feedback form */
.feedback {
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, transparent 100%);
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.feedback__inner {
  max-width: 560px;
  margin: 0 auto;
}

.feedback__header {
  text-align: center;
  margin-bottom: 2rem;
}

.feedback__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feedback__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feedback__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feedback__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.feedback__field label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.feedback__field input,
.feedback__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feedback__field input:focus,
.feedback__field textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.feedback__field textarea {
  min-height: 140px;
  resize: vertical;
}

.feedback__submit {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.feedback__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback__status {
  text-align: center;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  line-height: 1.55;
}

.feedback__status[hidden] {
  display: none;
}

.feedback__status--success {
  color: var(--gold);
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid var(--gold-line);
}

.feedback__status--error {
  color: #e8a0a0;
  background: rgba(232, 160, 160, 0.08);
  border: 1px solid rgba(232, 160, 160, 0.25);
}

.feedback__status--info {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
}

.feedback__fallback {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* Article prose */
.article {
  padding: 2rem 1.5rem 5rem;
}

.article__inner {
  max-width: 680px;
  margin: 0 auto;
}

.article__back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.article__back:hover {
  color: var(--gold);
}

.article__header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gold-line);
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article__author {
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
}

.article__body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.25rem 0 0.85rem;
}

.article__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
}

.article__body p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.75;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.15rem 1.25rem;
  color: var(--text-muted);
}

.article__body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--gold);
}

.article__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-line);
  text-align: center;
}

/* About page */
.about-content {
  padding: 2rem 1.5rem 5rem;
}

.about-content__inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-content__section {
  margin-bottom: 2.5rem;
}

.about-content__section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.about-content__section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-content__section ul {
  list-style: disc;
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
}

.about-content__section li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.about-content__pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--gold);
}

.about-content__cta {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--gold-line);
}

.about-content__cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--gold-line);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__sep {
  color: var(--text-faint);
}

.legal-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}

.legal-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold-dim);
}

/* Legal dialogs */
.legal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  color: var(--text);
  box-shadow:
    0 0 0 1px var(--gold-glow),
    0 24px 80px var(--shadow-soft),
    0 0 60px var(--gold-glow);
  overflow: hidden;
  transition: background-color var(--theme-transition), border-color var(--theme-transition);
}

.legal-dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gold-line);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.legal-dialog__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

.legal-dialog__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.legal-dialog__close:hover {
  color: var(--gold);
  background: var(--bg-subtle);
}

.legal-dialog__body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 8rem);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-dialog__body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-dialog__body h3:first-of-type {
  margin-top: 1rem;
}

.legal-dialog__body p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-dialog__body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

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

.legal-dialog__body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-dialog__updated {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1rem !important;
}

/* Standalone legal pages (privacy.html, terms.html) */
.legal-page .about-content__section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.legal-page .about-content__section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.legal-page .about-content__section li {
  margin-bottom: 0.35rem;
}

.legal-page .about-content__section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
    padding: 0.35rem 0;
  }

  main {
    padding-top: calc(var(--header-h) + 0.35rem);
  }

  .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    min-height: calc(var(--header-h) - 0.7rem);
  }

  .site-nav {
    gap: 0.85rem 1rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .intro {
    padding: 3.5rem 1.25rem 3rem;
  }

  .page-hero__banner-img {
    height: 200px;
  }

  .blog-card__thumb-link {
    margin: -1.75rem -1.75rem 1rem;
  }

  .featured {
    padding: 2rem 1.25rem 3.5rem;
  }

  .featured__showcase {
    gap: 2.5rem;
  }

  .feature-list::before {
    display: none;
  }

  .feature-list__item:hover {
    transform: none;
  }

  .phone-mockup__frame {
    width: 230px;
  }

  .support {
    padding: 3rem 1.25rem 4rem;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav {
    gap: 0.5rem 0.75rem;
  }

  .site-nav__link {
    font-size: 0.65rem;
  }

  /* Hide lower-priority nav on very small phones — still in footer/blog */
  .site-nav__link:nth-child(n+3):not([href*='our-apps']):not([href*='support']) {
    display: none;
  }

  .journal-preview,
  .feedback,
  .blog-listing,
  .article,
  .about-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .feature-list__item {
    padding: 1.15rem 0;
  }

  .site-header__actions {
    gap: 0.75rem;
  }

  .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .app-store-btn {
    padding: 0.75rem 1.35rem;
  }

  .legal-dialog {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 2rem);
  }

  .legal-dialog__body {
    max-height: calc(100vh - 7rem);
    padding: 1.15rem;
  }
}

@media (min-width: 768px) {
  .intro {
    text-align: left;
  }

  .intro__layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .intro__content {
    margin: 0;
    max-width: none;
    text-align: left;
  }

  .intro__subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .intro__hero-product {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    align-items: stretch;
  }

  .intro__app-title {
    text-align: left;
  }

  .intro__app-store-btn {
    align-self: flex-start;
  }

  .hero-visual {
    margin-inline: 0;
    justify-self: end;
    align-self: center;
  }
}

@media (min-width: 900px) {
  .featured__showcase {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 4rem 5rem;
    align-items: center;
  }

  .featured__phone {
    order: 1;
  }

  .featured__features {
    order: 2;
  }

  .phone-mockup__frame {
    width: 290px;
  }
}

@media (min-width: 1024px) {
  .phone-mockup__frame {
    width: 300px;
  }

  .page-hero__banner-img {
    height: 320px;
  }
}

/* Reduced motion + mobile screenshot strip */
@media (max-width: 767px) {
  .screenshot-strip {
    max-width: none;
    margin-inline: -0.25rem;
  }

  .screenshot-strip__track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.25rem 0.35rem;
    scrollbar-width: none;
  }

  .screenshot-strip__track::-webkit-scrollbar {
    display: none;
  }

  .screenshot-card {
    flex: 0 0 34%;
    min-width: 108px;
    max-width: 128px;
    scroll-snap-align: start;
  }

  .screenshot-card__frame {
    max-width: none;
  }

  .screenshot-card__copy {
    max-width: none;
  }

  .screenshot-strip__scroll-hint {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
