/* Tumlo — a quiet site for a quiet app. No web fonts, no trackers, no build step. */

:root {
  --bg: #f6f6f9;
  --ink: #1e2235;
  --ink-2: #555a78;
  --ink-3: #8a8fa8;
  --line: rgba(30, 34, 53, 0.1);
  --accent: #5f79f3;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 40px 80px -36px rgba(58, 52, 120, 0.5), 0 14px 30px -16px rgba(58, 52, 120, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* The same faint blue and pink corners as the app icon. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 640px at 0% 0%, rgba(150, 172, 255, 0.16), transparent 62%),
    radial-gradient(800px 640px at 100% 100%, rgba(255, 186, 208, 0.15), transparent 62%);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(95, 121, 243, 0.2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono, .eyebrow, .meta, .num, .kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(700px, calc(100% - 40px)); margin: 0 auto; }

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

.hero {
  position: relative;
  isolation: isolate;
  width: min(1240px, calc(100% - 40px));
  height: min(840px, max(640px, 88vh));
  margin: 20px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background: #8c8ad0;
  box-shadow: var(--shadow);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 22%; box-shadow: 0 2px 10px rgba(40, 36, 100, 0.25); }
.hero .brand { color: #fff; text-shadow: 0 1px 10px rgba(40, 36, 100, 0.25); }
.links { display: flex; gap: 26px; }
.links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(40, 36, 100, 0.3);
  transition: opacity 0.25s;
}
.links a:hover { opacity: 1; }

.hero-copy {
  position: absolute;
  left: 50%;
  top: 14%;
  width: min(760px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}
/* A soft shade behind the words, so white text reads on a pastel sky. */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -12% -18% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(52, 50, 120, 0.3), rgba(52, 50, 120, 0.1) 60%, transparent);
  filter: blur(8px);
}
.sprout { width: 24px; height: 24px; margin: 0 auto 22px; display: block; opacity: 0.95; }
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(40, 36, 100, 0.25);
  text-wrap: balance;
}
.hero .lede {
  margin: 22px auto 30px;
  max-width: 32em;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  text-wrap: balance;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 14px rgba(40, 36, 100, 0.4);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #262a4f;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px -10px rgba(40, 36, 100, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(40, 36, 100, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.06); }
.pill svg { width: 15px; height: 15px; }
.pill.dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(30, 34, 53, 0.7); }

.hero-copy > * { animation: rise 1.2s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hero-copy > :nth-child(4) { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scene motion: slow enough to feel like breathing. */
.mist-a { animation: drift 40s ease-in-out infinite alternate; }
.mist-b { animation: drift 52s ease-in-out infinite alternate-reverse; }
.orb { animation: bob 7s ease-in-out infinite; }
.orb-reflection { animation: bob-down 7s ease-in-out infinite; }
.ripple { transform-origin: 800px 806px; animation: ripple 7s ease-out infinite; opacity: 0; }
.ripple.r2 { animation-delay: 3.5s; }
.sun-glow { transform-origin: 1250px 470px; animation: breathe 10s ease-in-out infinite; }
@keyframes drift { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bob-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes ripple { 0% { transform: scale(0.7); opacity: 0; } 18% { opacity: 0.55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.07); opacity: 1; } }

.meta {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
}

/* ---------- Sections ---------- */

.section { padding: 128px 0 0; }
.eyebrow { color: var(--ink-3); margin: 0 0 18px; }
.title {
  margin: 0 0 48px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16em;
}
.grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.statement {
  margin: 0 0 28px;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.story p:not(.eyebrow) { color: var(--ink-2); margin: 0 0 16px; max-width: 36em; text-wrap: pretty; }
.title, .statement, .cta h2 { text-wrap: balance; }
.muted { color: var(--ink-2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { color: var(--accent); display: block; margin-bottom: 26px; }
.steps h3, .cols-3 h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.steps p, .cols-3 p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* App preview */
.glimpse { padding-top: 128px; }
.panel {
  position: relative;
  border-radius: 28px;
  padding: 72px 24px 56px;
  background:
    radial-gradient(420px 260px at 82% 18%, rgba(255, 222, 198, 0.75), transparent 70%),
    linear-gradient(180deg, #e8e6f8 0%, #efe4ef 55%, #f7e7e0 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  overflow: hidden;
}
.phone { margin: 0; text-align: center; flex: 0 0 auto; }
.phone img {
  display: block;
  width: 250px;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px rgba(30, 34, 53, 0.08), 0 40px 70px -28px rgba(58, 52, 120, 0.55);
}
.phone figcaption { margin-top: 26px; color: var(--ink-3); }
.phone.mid { transform: translateY(-28px); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-3 > div {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px -32px rgba(58, 52, 120, 0.4);
}
.icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 22px; display: block; }

/* FAQ */
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 12px no-repeat;
  transition: transform 0.35s var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: -6px 0 22px; color: var(--ink-2); font-size: 16px; max-width: 38em; }

/* Policies */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 26px 28px 30px;
  box-shadow: 0 20px 40px -32px rgba(58, 52, 120, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -30px rgba(58, 52, 120, 0.5); }
.card .mono { color: var(--ink-3); }
.card h3 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.025em; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.card .arrow { position: absolute; top: 22px; right: 26px; color: var(--ink-3); transition: transform 0.4s var(--ease), color 0.4s; }
.card:hover .arrow { transform: translateX(3px); color: var(--accent); }

/* Closing */
.cta { padding: 150px 0 40px; text-align: center; }
.cta img { width: 76px; height: 76px; border-radius: 22%; box-shadow: 0 20px 40px -18px rgba(58, 52, 120, 0.55); }
.cta h2 { margin: 30px 0 10px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; }
.cta p { margin: 0 0 30px; color: var(--ink-2); }

.footer { padding: 90px 0 44px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-row nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.foot-row nav a:hover { color: var(--ink); }
.footer .brand img { width: 22px; height: 22px; box-shadow: none; }
.foot-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: var(--ink-3); font-size: 10.5px; }

/* Scroll reveal, only when JavaScript is on. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Policy pages ---------- */

.hero.hero-sm { height: 340px; }
.hero-sm .hero-copy { top: auto; bottom: 64px; }
.hero-sm h1 { font-size: clamp(38px, 5vw, 64px); }
.kicker { margin: 0 0 16px; opacity: 0.92; text-shadow: 0 1px 10px rgba(40, 36, 100, 0.35); }

.doc { padding: 72px 0 0; }
.doc h2 { margin: 52px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; scroll-margin-top: 24px; }
.doc p, .doc li { color: #3a3f5c; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--ink-3); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .intro { font-size: 15.5px; padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.85); }
.doc .group { margin-top: 40px; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.source-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.source-list a:hover { color: var(--accent); }
.source-list span { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; word-break: break-all; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cols-3, .cards { grid-template-columns: 1fr; }
  .card h3 { margin-top: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { width: calc(100% - 20px); margin-top: 10px; height: max(600px, 88svh); border-radius: 24px; }
  .hero.hero-sm { height: 300px; }
  .nav { padding: 18px 18px; }
  .links { gap: 16px; }
  .links a { font-size: 13px; }
  .links a:first-child { display: none; }
  .hero-copy { top: 15%; }
  .meta { width: calc(100% - 20px); justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; }
  .meta .hide-sm { display: none; }
  .section, .glimpse { padding-top: 96px; }
  .title { margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 18px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .num { margin-bottom: 12px; }
  .panel {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 56px 28px 44px;
    gap: 22px;
    scrollbar-width: none;
  }
  .panel::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: center; }
  .phone img { width: 220px; }
  .phone.mid { transform: none; }
  .cta { padding-top: 110px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
