/* Otto — Azure & Paper as an editorial web presence.
   Tokens mirror OttoPalette (light). One deep blue that belongs to
   Otto; porcelain paper; system sans pushed hard by weight and scale.
   Every continuous motion derives from a breath cycle; everything
   holds still under prefers-reduced-motion. */

:root {
  --paper: #f6f8fb;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-2: #5a6b80;
  --accent: #2f6bdb;
  --accent-soft: #a9c4f2;
  --accent-deep: #1d4c9f;
  --hairline: rgba(90, 107, 128, 0.18);
  --radius: 22px;
  --breath: 5.2s;
  --shadow-card: 0 1px 2px rgba(22, 32, 46, 0.05), 0 14px 40px rgba(22, 32, 46, 0.07);
}

* { box-sizing: border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fine grain so the paper reads as material, not as a void. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.028;
  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%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Navigation ---------- */

header.site {
  position: relative;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }

.mark { display: block; }

.mark .core {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe var(--breath) ease-in-out infinite;
}

nav.top {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  font-size: 0.92rem;
  font-weight: 600;
}

nav.top a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms ease;
}

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

nav.top a.lang {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(169, 196, 242, 0.3);
  transition: background 140ms ease;
}

nav.top a.lang:hover { background: rgba(169, 196, 242, 0.5); }

@media (max-width: 40rem) {
  nav.top a:not(.lang) { display: none; }
}

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

.hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

/* Atmosphere: two azure fields and the ghost of the O. */
.hero::before {
  content: "";
  position: absolute;
  inset: -14rem -20rem 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 78% 8rem, rgba(47, 107, 219, 0.13), transparent 62%),
    radial-gradient(38rem 26rem at 6% -4rem, rgba(169, 196, 242, 0.26), transparent 60%);
}

.hero .ghost-o {
  position: absolute;
  top: -6rem;
  right: -10rem;
  width: 42rem;
  height: 42rem;
  border: 1.5px solid rgba(47, 107, 219, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero .ghost-o::after {
  content: "";
  position: absolute;
  inset: 3.4rem;
  border: 1px solid rgba(47, 107, 219, 0.08);
  border-radius: 50%;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.overline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1.3rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 1.4rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0 0 2.2rem;
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; }

.pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3f7ae4, var(--accent-deep));
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 10px 26px rgba(29, 76, 159, 0.32);
}

.cta-row .quiet {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.cta-row .quiet:hover { text-decoration: underline; }

.hero-note {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* The iPhone: real app, drawn frame, breathing halo. */
.stage { position: relative; display: flex; justify-content: center; }

.stage .halo {
  position: absolute;
  inset: -8% -18%;
  background: radial-gradient(50% 44% at 50% 46%, rgba(47, 107, 219, 0.2), transparent 70%);
  animation: halo var(--breath) ease-in-out infinite;
  pointer-events: none;
}

@keyframes halo {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  46% { opacity: 1; transform: scale(1.045); }
}

.device {
  position: relative;
  width: min(320px, 78%);
  border-radius: clamp(2.6rem, 6vw, 3.2rem);
  background: #0d1420;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px #2a3547,
    0 2px 6px rgba(13, 20, 32, 0.3),
    0 34px 70px rgba(22, 32, 46, 0.32);
  animation: float 6.8s ease-in-out infinite;
}

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

.device::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 24px;
  border-radius: 999px;
  background: #0d1420;
  z-index: 2;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(2rem, 4.6vw, 2.5rem);
}

.device.tilt { animation: none; transform: rotate(-2.2deg); }

/* ---------- Manifesto band ---------- */

.manifesto {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.manifesto .wrap { max-width: 46rem; text-align: center; }

.manifesto p.big {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0.9rem 0 0;
}

.manifesto p.big em { font-style: normal; color: var(--accent); }

/* ---------- How it works: editorial rows ---------- */

.how { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
}

.row + .row { border-top: 1px solid var(--hairline); }

.row:nth-child(even) .row-copy { order: 2; }
.row:nth-child(even) .row-visual { order: 1; }

.row .num {
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(47, 107, 219, 0.16);
  margin: 0 0 0.4rem;
}

.row h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 0.9rem;
}

.row p {
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0 0 0.8rem;
}

.row .fact {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(169, 196, 242, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.5rem;
}

.row-visual { display: flex; justify-content: center; position: relative; }

.row-visual .device { width: min(285px, 74%); animation: none; }

.row-visual::before {
  content: "";
  position: absolute;
  inset: 6% -8%;
  background: radial-gradient(48% 44% at 50% 50%, rgba(169, 196, 242, 0.3), transparent 72%);
  pointer-events: none;
}

/* ---------- Privacy: the dark beat ---------- */

.privacy {
  background:
    radial-gradient(52rem 30rem at 82% -6rem, rgba(47, 107, 219, 0.35), transparent 62%),
    radial-gradient(40rem 26rem at 4% 110%, rgba(29, 76, 159, 0.45), transparent 65%),
    var(--ink);
  color: #eef3fa;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.privacy .overline { color: var(--accent-soft); }

.privacy h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 1.1rem;
  max-width: 14em;
}

.privacy p.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(238, 243, 250, 0.72);
  max-width: 34em;
  margin: 0 0 2.6rem;
}

.privacy .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.privacy .facts div {
  border: 1px solid rgba(169, 196, 242, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
}

.privacy .facts strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.privacy .facts span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(238, 243, 250, 0.62);
}

.privacy a.more {
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 196, 242, 0.4);
  padding-bottom: 1px;
}

.privacy a.more:hover { color: #fff; border-color: #fff; }

/* ---------- Final call ---------- */

.finale {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
}

.finale::before {
  content: "";
  position: absolute;
  inset: 0 -10rem;
  pointer-events: none;
  background: radial-gradient(40rem 22rem at 50% 30%, rgba(47, 107, 219, 0.1), transparent 68%);
}

.finale .mark { width: 76px; height: 76px; margin: 0 auto 1.8rem; position: relative; }

.finale h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 0.9rem;
  position: relative;
}

.finale p {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0 auto 2.2rem;
  position: relative;
}

/* ---------- Prose pages (legal, support) ---------- */

.page-head {
  position: relative;
  padding: clamp(2rem, 5vw, 3.8rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -10rem -18rem 0;
  pointer-events: none;
  background: radial-gradient(42rem 24rem at 70% -6rem, rgba(47, 107, 219, 0.1), transparent 62%);
}

.page-head .wrap { max-width: 46rem; position: relative; }

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.page-head .updated { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

.prose { max-width: 46rem; margin: 0 auto; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 4.5rem; }

.prose h2 {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.6rem;
}

.prose p, .prose li { font-size: 1.02rem; line-height: 1.72; color: var(--ink); }

.prose li { margin-bottom: 0.45rem; }

.prose a { color: var(--accent); text-decoration-thickness: 1px; }

.prose .summary {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0 1.8rem;
  box-shadow: var(--shadow-card);
}

.prose .summary p { margin: 0; }

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

footer.site {
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.65);
}

footer.site .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.8rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

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

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

/* ---------- Motion ---------- */

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  46% { transform: scale(1.16); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mark .core, .stage .halo, .device { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .stage { margin-top: 1.5rem; }
  .row { grid-template-columns: 1fr; gap: 2rem; }
  .row:nth-child(even) .row-copy { order: 1; }
  .row:nth-child(even) .row-visual { order: 2; }
  .row p { max-width: none; }
}
