/* ---------- Tokens ----------
   Pastel Rose, sourced from the in-app schema
   (project-octopus → ThemeColorPickerView.swift → .pastelRose).
   The app is dark-only, so the marketing site is too. A single calm
   surface is part of what Linism promises, and switching modes mid-visit
   is the kind of small surprise we'd rather avoid. */

:root {
  /* Surfaces — exact app values converted to OKLCH (sRGB-equivalent). */
  --bg:              oklch(20.83% 0.019 347);
  --bg-elev:         oklch(25.18% 0.018 347);
  --bg-elev-2:       oklch(29.35% 0.017 347);
  --card:            oklch(27.28% 0.018 347 / 0.75);

  /* Foreground */
  --fg:              oklch(95.60% 0.013 345);
  --fg-soft:         oklch(82% 0.012 345);
  --fg-muted:        oklch(64% 0.014 345);

  /* Accent — a single soft rose. */
  --accent:          oklch(74.07% 0.112 2);
  --accent-bright:   oklch(82% 0.116 2);
  --accent-tint:     oklch(36% 0.075 2 / 0.7);
  --accent-glow:     oklch(74.07% 0.112 2 / 0.16);

  /* Lines */
  --border:          oklch(100% 0 0 / 0.07);
  --border-strong:   oklch(100% 0 0 / 0.13);

  /* Shadows */
  --card-shadow:     0 1px 2px oklch(0% 0 0 / 0.30),
                     0 24px 48px -28px oklch(0% 0 0 / 0.55);

  /* SVG mockup chrome (kept as a token because the SVG markup references it) */
  --device-body:     oklch(9% 0.012 347);

  /* Type */
  --font-sans:       ui-rounded, -apple-system, BlinkMacSystemFont,
                     "SF Pro Rounded", "Segoe UI", system-ui,
                     "Helvetica Neue", Arial, sans-serif;
  --font-display:    ui-rounded, -apple-system, BlinkMacSystemFont,
                     "SF Pro Display", system-ui,
                     "Helvetica Neue", sans-serif;

  /* Layout */
  --measure:         68ch;
  --radius-lg:       24px;
  --radius-md:       16px;
  --radius-sm:       10px;
  --pad-page:        clamp(20px, 4vw, 48px);

  color-scheme:      dark;
}

/* ---------- Reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.95rem + 0.1vw, 17px);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient background ----------
   Two very soft rose halos. Slow drift is intentional; speeding these up
   would make the page feel busier than it should. */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 65vmax;
  height: 65vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.38;
  will-change: transform;
}
.orb-a {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
  animation: drift 48s ease-in-out infinite alternate;
}
.orb-b {
  bottom: -35vmax;
  right: -25vmax;
  background: radial-gradient(circle at 70% 70%, var(--accent-tint), transparent 60%);
  animation: drift 56s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vmax, -2vmax, 0) scale(1.05); }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--pad-page);
  max-width: 1200px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.25),
              0 8px 18px -10px oklch(0% 0 0 / 0.40);
}
.brand-name { font-size: 1.05rem; }

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--fg-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.site-nav a:hover { color: var(--fg); }
.nav-cta {
  background: var(--fg);
  color: var(--bg) !important;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1200px;
  margin: clamp(24px, 5vw, 64px) auto 0;
  padding: 0 var(--pad-page) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--accent-tint);
  border-radius: 999px;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw + 1rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 14ch;
}
.emph { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.22rem);
  color: var(--fg-soft);
  max-width: 38ch;
  margin: 0 0 36px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.appstore-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px oklch(0% 0 0 / 0.55);
}
.ghost-cta {
  font-weight: 600;
  color: var(--fg);
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.ghost-cta:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.ghost-cta::after { content: " →"; opacity: 0.6; }

.micro {
  font-size: 0.86rem;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------- Hero visual ----------
   The screenshot inside the iPhone frame rests on a faint rose glow.
   Float is intentionally slow; reduced-motion users get a stationary scene. */

.hero-visual {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.hero-visual .phone {
  width: min(360px, 90%);
  height: auto;
  filter: drop-shadow(0 30px 50px oklch(0% 0 0 / 0.45));
  animation: float 14s ease-in-out infinite;
}
.hero-visual .watch {
  position: absolute;
  width: clamp(120px, 22%, 170px);
  height: auto;
  bottom: -10px;
  left: -10px;
  filter: drop-shadow(0 18px 36px oklch(0% 0 0 / 0.55));
  animation: float 11s ease-in-out infinite reverse;
}

@media (min-width: 920px) {
  .hero-visual .watch { left: -30px; bottom: 30px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Trust band ----------
   Lighter than before: no bordered box, no tinted background. Just a
   small section of four quiet promises that read in a calm sweep. */

.trust {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad-page);
}

.trust-inner { /* now an unstyled wrapper, the band itself sets the rhythm */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 5vw, 56px) 0;
}

.trust-head {
  max-width: 640px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  text-align: center;
}
.trust-head .eyebrow { margin-bottom: 14px; }
.trust-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.6vw + 1rem, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(24px, 2.6vw, 36px);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}

.trust-item h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.trust-item p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Features ---------- */

.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) var(--pad-page);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 4vw, 68px);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--card-shadow);
  transition: border-color 0.35s ease, background-color 0.35s ease;
  backdrop-filter: blur(8px);
}
.feature:hover {
  border-color: var(--border-strong);
  background: color-mix(in oklch, var(--card) 80%, var(--accent-tint));
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) var(--pad-page);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg-soft);
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  font-size: 0.92rem;
  color: var(--fg-soft);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--fg); }

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.lang-switch a {
  font-size: 0.84rem;
  color: var(--fg-muted);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-muted);
}

/* ---------- Motion preferences ----------
   Reduced-motion users get a stationary page: no orb drift, no float, no
   transitions. This is non-negotiable for the audience. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-visual .phone,
  .hero-visual .watch,
  .orb { animation: none !important; }
}

/* ---------- Legal page (privacy / imprint) ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--pad-page);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw + 1rem, 2.8rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg);
}
.legal .updated {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.legal p, .legal li {
  color: var(--fg-soft);
}
.legal p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal p a:hover { text-decoration-thickness: 2px; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  color: var(--accent);
  font-weight: 600;
}
.legal .back::before { content: "←"; }
