/* ---------------------------------------------------------------
   Sebtin World — sebtin.world
   Soft-pastel editorial. Rose Quartz → Serenity, the app's own
   token system translated to the web. All artwork procedural.
   --------------------------------------------------------------- */

:root {
  --rose: #f7cac9;
  --rose-600: #e8a9a7;
  --rose-100: #fdf0ef;
  --serenity: #92a8d1;
  --serenity-600: #6e88bd;
  --serenity-100: #eef2f9;
  --ink: #1c1b22;
  --ink-2: #4a4954;
  --ink-3: #8b8a96;
  --line: #e5e4ec;
  --bg: #fffdfd;
  --radius-lg: 22px;
  --radius-full: 999px;
  --display: "Fraunces", "Georgia", serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- atmosphere: gradient mesh + grain ------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42rem 42rem at 12% -8%, color-mix(in srgb, var(--rose) 55%, transparent), transparent 60%),
    radial-gradient(50rem 44rem at 108% 12%, color-mix(in srgb, var(--serenity) 45%, transparent), transparent 62%),
    radial-gradient(38rem 38rem at 50% 118%, color-mix(in srgb, var(--rose) 30%, transparent), transparent 65%),
    var(--bg);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- shell ------------------------------------------------------ */

.shell { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .orb {
  display: inline-block;
  width: 0.72em; height: 0.72em;
  margin-right: 0.45em;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose), var(--serenity));
  vertical-align: baseline;
  transform: translateY(0.06em);
}

nav.site a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  margin-left: 1.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
nav.site a:hover { color: var(--ink); border-bottom-color: var(--rose-600); }

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

.hero { padding: clamp(4.5rem, 12vw, 8.5rem) 0 4rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--serenity-600);
  background: color-mix(in srgb, var(--serenity-100) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.6rem;
  animation: rise 700ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

h1.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.6rem, 7.2vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 15ch;
  animation: rise 700ms 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

h1.display em {
  font-style: italic;
  font-weight: 460;
  background: linear-gradient(100deg, var(--rose-600) 15%, var(--serenity-600) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  max-width: 44ch;
  margin-top: 1.5rem;
  font-size: 1.12rem;
  color: var(--ink-2);
  animation: rise 700ms 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
  animation: rise 700ms 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.pill.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--rose-600), var(--serenity-600));
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--serenity-600) 55%, transparent);
}
.pill.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--serenity-600) 65%, transparent); }
.pill.ghost { color: var(--ink); border: 1px solid var(--line); background: color-mix(in srgb, #fff 65%, transparent); }
.pill.ghost:hover { border-color: var(--serenity); }

.price-note { font-size: 0.9rem; color: var(--ink-3); }

/* --- feature cards ---------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding: 2.5rem 0 4.5rem;
}
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, #fff 72%, transparent);
  backdrop-filter: blur(6px);
  padding: 1.7rem 1.5rem 1.6rem;
  transition: transform 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--rose-600); }
.card:nth-child(2):hover { border-color: var(--serenity-600); }

.card .glyph {
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-100));
  position: relative;
}
.card:nth-child(2) .glyph { background: linear-gradient(135deg, var(--serenity), var(--serenity-100)); }
.card:nth-child(3) .glyph { background: linear-gradient(135deg, var(--rose), var(--serenity)); }
.card .glyph::after {
  content: "";
  position: absolute; inset: 30%;
  border-radius: var(--radius-full);
  background: #fff;
  opacity: 0.85;
}

.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-2); }

/* --- article (terms / guidelines) -------------------------------- */

article.legal { max-width: 46rem; margin: 0 auto; padding: 4.5rem 0 5rem; }

article.legal h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

article.legal .updated { font-size: 0.85rem; color: var(--ink-3); margin: 0.7rem 0 2.4rem; }

article.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  margin: 2.2rem 0 0.6rem;
}

article.legal p { margin-bottom: 1.05rem; font-size: 1.02rem; }

article.legal .backlink {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--serenity-600);
  text-decoration: none;
  font-size: 0.92rem;
}
article.legal .backlink:hover { text-decoration: underline; }

article.legal .signoff { margin-top: 2rem; color: var(--ink); font-weight: 600; }

/* --- disclosure + footer ----------------------------------------- */

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--serenity-100) 55%, transparent);
  padding: 1.4rem 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 46rem;
}

footer.site {
  margin-top: 4rem;
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-3);
}
footer.site a { color: var(--ink-2); text-decoration: none; margin-right: 1.2rem; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* --- motion ------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, h1.display, .hero p.lede, .hero .cta-row { animation: none; }
  .pill, .card { transition: none; }
}
