@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* Same tokens as the app (Swayly/DesignSystem/Color+Tokens.swift). Dark only, like the app. */
:root {
  color-scheme: dark;
  --canvas: #121214;
  --surface: #1c1c1f;
  --surface-muted: #27272b;
  --ink: #f4f4f6;
  --ink-secondary: #8e8e93;
  --sage: #c8a28e;
  --outline: #3a3a3f;
  --outline-variant: #27272b;
  --display: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --gutter: 32px;
  --max: 720px;
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft sage aura behind the page, like the breathing ring's glow. */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 110vw;
  max-width: 900px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 162, 142, 0.10), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header & footer */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.wordmark img { border-radius: 7px; }

.lang {
  padding: 8px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.lang:hover { color: var(--ink); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  text-align: center;
}

.signoff {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 15px;
}

.site-footer nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--ink); }

.fine {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Type. Sentence case everywhere: no text-transform (Turkish i/İ). */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.25;
  margin-bottom: 28px;
}

/* Landing */

.hero {
  padding: 32px 0 104px;
  text-align: center;
}

.halo {
  position: relative;
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: breathe 7s ease-in-out infinite;
}

.ring circle { fill: none; }
.ring-outer { stroke: rgba(244, 244, 246, 0.10); stroke-width: 1; }
.ring-main { stroke: rgba(200, 162, 142, 0.85); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(200, 162, 142, 0.55)); }
.ring-inner { stroke: rgba(244, 244, 246, 0.14); stroke-width: 1; }

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
}

.app-icon {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 0 64px rgba(200, 162, 142, 0.22), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.eyebrow,
.note,
.label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.eyebrow { margin: 40px 0 12px; }

.lede {
  max-width: 32em;
  margin: 20px auto 36px;
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--ink-secondary);
}

.lede a { color: var(--sage); text-underline-offset: 3px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--canvas);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

a.pill:hover { opacity: 0.85; }

.note { margin: 16px 0 0; }

.block { padding-bottom: 96px; }

.label { margin: 0 0 12px; color: var(--sage); }

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 24px 22px 68px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 21px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--sage);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.steps strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}

.steps p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

.principles {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .principles { grid-template-columns: 1fr 1fr; }
}

.principles div {
  padding: 24px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: var(--surface);
}

.principles h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.principles p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

.footnote {
  margin: 20px 4px 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.lost { padding-top: 48px; }
.lost h1 { margin-top: 40px; }
.lost .lede { margin: 16px auto 0; }

/* Legal & support pages */

.prose { padding: 16px 0 56px; }

.prose h1 {
  font-size: clamp(32px, 7vw, 44px);
  margin-bottom: 12px;
}

.prose .updated {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 21px;
}

.prose p,
.prose li { color: var(--ink-secondary); }

.prose ul { padding-left: 1.2em; }

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--sage);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--sage);
  border-radius: 16px;
  background: var(--surface);
}

.prose .callout p { margin: 0; color: var(--ink); }

.prose .pill {
  color: var(--canvas);
  text-decoration: none;
  overflow-wrap: normal;
}

.faq details {
  margin-bottom: 12px;
  padding: 0 20px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  padding: 18px 0;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--ink-secondary);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0 0 18px; }
