/* Sipumo website. Colours follow the app theme (water, waterDeep, aqua, flame, gold, background gradient). */

:root {
  color-scheme: light dark;
  --water: #299aff;
  --water-deep: #0d54db;
  --aqua: #47dbf5;
  --flame: #ff8c33;
  --gold: #ffc740;
  --ink: #0b1b33;
  --ink-soft: #43536b;
  --link: #0b4fd0;
  --page: #ffffff;
  --tint: #eef7ff;
  --sea-top: #e2f7fd;
  --sea-bottom: #c8eefa;
  --hero-from: #1767e3;
  --hero-to: #0b46bd;
  --hero-glow: rgba(71, 219, 245, 0.55);
  --card: #ffffff;
  --card-stroke: rgba(41, 153, 255, 0.18);
  --chip: rgba(41, 153, 255, 0.1);
  --shadow: 0 10px 30px rgba(13, 84, 219, 0.1);
  --focus: #0b4fd0;
  --bezel: #0f1a2b;
  --pill-from: #1767e3;
  --pill-to: #0b46bd;
  --radius: 24px;
  --gutter: clamp(20px, 5vw, 96px);
  --band: clamp(56px, 7vw, 112px);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf4ff;
    --ink-soft: #b4c6dc;
    --link: #8ae6fa;
    --page: #08122a;
    --tint: #0b1a38;
    --sea-top: #062a4e;
    --sea-bottom: #032e4d;
    --hero-from: #0d3f9e;
    --hero-to: #071f5c;
    --hero-glow: rgba(71, 219, 245, 0.28);
    --card: #10203f;
    --card-stroke: rgba(255, 255, 255, 0.12);
    --chip: rgba(71, 219, 245, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --focus: #8ae6fa;
    --bezel: #2b3647;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout: bands run edge to edge, content sits in a container up to 1440 px with a fluid gutter. */

.wrap {
  width: 100%;
  max-width: calc(1440px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap.wide {
  max-width: none;
}

.band {
  padding-block: var(--band);
}

.band-plain {
  background: var(--page);
}

.band-tint {
  background: var(--tint);
}

.band-sea {
  background: linear-gradient(180deg, var(--sea-top), var(--sea-bottom));
}

/* Header and footer */

.site-header {
  padding-block: 16px;
  background: var(--page);
  border-bottom: 1px solid var(--card-stroke);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.3rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--chip);
}

.site-nav .lang {
  border: 1px solid var(--card-stroke);
}

.site-footer {
  margin-top: auto;
  padding-block: 36px 44px;
  background: var(--tint);
  border-top: 1px solid var(--card-stroke);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

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

.site-footer p {
  margin: 0 0 4px;
}

/* Cards, pills */

.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.2vw, 32px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pill-from), var(--pill-to));
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(13, 84, 219, 0.28);
}

.pill svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.pill-light {
  background: #fff;
  color: #0b46bd;
  box-shadow: 0 10px 24px rgba(3, 20, 70, 0.25);
}

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--aqua), var(--water) 55%, var(--water-deep));
  color: #fff;
}

.icon svg {
  width: 28px;
  height: 28px;
}

/* Hero band: water gradient over the full width, white text. */

.band-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 45%, var(--hero-glow), transparent 42%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}

.band-hero h1 {
  color: #fff;
}

.h1-brand {
  display: block;
  margin-bottom: 0.12em;
  color: #c6f4ff;
}

.band-hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: #eaf4ff;
  max-width: 34em;
}

.hero-note {
  margin-top: 16px;
  color: #ffffff;
  font-size: 0.95rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
}

.mascot {
  justify-self: center;
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 40px rgba(2, 18, 70, 0.35));
}

/* Sections */

.section-head {
  max-width: 44em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.features .card p:last-child {
  margin-bottom: 0;
}

.features-note {
  margin: 24px 0 0;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.screens figure {
  margin: 0;
  text-align: center;
}

.phone {
  width: min(100%, 340px);
  margin: 6px auto 18px;
  /* iPhone display corners: 55 pt on a 402 x 874 pt screen. */
  border-radius: 13.7% / 6.3%;
  overflow: hidden;
  outline: 6px solid var(--bezel);
  box-shadow: 0 22px 48px rgba(13, 40, 90, 0.25);
}

.screens figcaption {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
}

.screens figcaption span {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
}

.split p {
  font-size: 1.1rem;
  max-width: 36em;
}

.split-art {
  justify-self: center;
  width: min(100%, 680px);
}

.creatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  justify-items: center;
}

.creatures img {
  width: min(100%, 220px);
}

.privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.privacy p {
  max-width: 60em;
}

.closing {
  text-align: center;
}

.closing img {
  width: 160px;
  margin: 0 auto 12px;
}

/* Device frames for the iPhone Duo and Apple Watch captures; corner radii measured on the masked images. */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
}

.duo-text p {
  font-size: 1.1rem;
  max-width: 34em;
}

/* iPhone Duo at true scale. Screen sizes in points (inner screen landscape 951 x 669, cover screen 466 x 678;
   the captures are 3x, 2853 x 2007 and 1398 x 2034 px). Bezel, gap and corner radii are in the same points, and every
   length is a share of one total, so both devices always use the same pixels per point and fit the container. */
.duo-devices {
  --duo-inner-w: 951;
  --duo-inner-h: 669;
  --duo-cover-w: 466;
  --duo-cover-h: 678;
  --duo-bezel: 12;
  --duo-gap: 72;
  --duo-inner-r: 56;
  --duo-cover-r: 62;
  --duo-cover-hinge-r: 6;
  --duo-inner-col: calc(var(--duo-inner-w) + 2 * var(--duo-bezel));
  --duo-cover-col: calc(var(--duo-cover-w) + 2 * var(--duo-bezel));
  --duo-total: calc(var(--duo-inner-col) + var(--duo-gap) + var(--duo-cover-col));
  display: flex;
  align-items: flex-end;
  column-gap: calc(var(--duo-gap) / var(--duo-total) * 100%);
  width: 100%;
  max-width: 1100px;
  justify-self: end;
}

.duo-device {
  min-width: 0;
  padding: calc(var(--duo-bezel) / var(--duo-total) * 100%);
  background: var(--bezel);
  box-shadow: 0 22px 48px rgba(13, 40, 90, 0.25);
}

.duo-device img {
  outline: 0;
  box-shadow: none;
}

.duo-inner {
  /* Grow by the screen width: the bezel padding comes on top, so both screens get the same pixels per point. */
  flex: var(--duo-inner-w) 1 0;
  border-radius:
    calc((var(--duo-inner-r) + var(--duo-bezel)) / var(--duo-inner-col) * 100%) /
    calc((var(--duo-inner-r) + var(--duo-bezel)) / (var(--duo-inner-h) + 2 * var(--duo-bezel)) * 100%);
}

.duo-inner img {
  aspect-ratio: 951 / 669;
  border-radius: calc(var(--duo-inner-r) / var(--duo-inner-w) * 100%) / calc(var(--duo-inner-r) / var(--duo-inner-h) * 100%);
}

/* The cover screen has small corners on the hinge side (left) and large ones on the outer side. */
.duo-cover {
  flex: var(--duo-cover-w) 1 0;
  --rh: calc((var(--duo-cover-hinge-r) + var(--duo-bezel)) / var(--duo-cover-col) * 100%);
  --rho: calc((var(--duo-cover-r) + var(--duo-bezel)) / var(--duo-cover-col) * 100%);
  --rv: calc((var(--duo-cover-hinge-r) + var(--duo-bezel)) / (var(--duo-cover-h) + 2 * var(--duo-bezel)) * 100%);
  --rvo: calc((var(--duo-cover-r) + var(--duo-bezel)) / (var(--duo-cover-h) + 2 * var(--duo-bezel)) * 100%);
  border-radius: var(--rh) var(--rho) var(--rho) var(--rh) / var(--rv) var(--rvo) var(--rvo) var(--rv);
}

.duo-cover img {
  aspect-ratio: 466 / 678;
  --ih: calc(var(--duo-cover-hinge-r) / var(--duo-cover-w) * 100%);
  --iho: calc(var(--duo-cover-r) / var(--duo-cover-w) * 100%);
  --iv: calc(var(--duo-cover-hinge-r) / var(--duo-cover-h) * 100%);
  --ivo: calc(var(--duo-cover-r) / var(--duo-cover-h) * 100%);
  border-radius: var(--ih) var(--iho) var(--iho) var(--ih) / var(--iv) var(--ivo) var(--ivo) var(--iv);
}


.watches {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
}

.watch {
  position: relative;
  width: min(42%, 240px);
  padding: clamp(10px, 1.4vw, 18px);
  border-radius: 30% / 26%;
  background: linear-gradient(160deg, #2c313b, #15181e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(13, 40, 90, 0.28);
}

.watch img {
  outline: 0;
  box-shadow: none;
  /* 100 px corners on a 416 x 496 capture. */
  border-radius: 24% / 20%;
}

/* Digital Crown and side button. */
.watch::before,
.watch::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3a404c, #626a79);
}

.watch::before {
  top: 22%;
  height: 16%;
}

.watch::after {
  top: 48%;
  height: 22%;
  right: -4px;
  width: 5px;
}

/* Text pages: full-width title band, text column of about 70 characters, sticky contents list on wide screens. */

.page-head {
  background: var(--tint);
  padding-block: clamp(32px, 5vw, 72px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--card-stroke);
}

.page {
  padding-block: clamp(24px, 4vw, 56px) clamp(56px, 6vw, 96px);
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 72ch);
  justify-content: center;
  column-gap: clamp(40px, 5vw, 96px);
}

.doc-side,
.page-toc {
  display: none;
}

.doc-main > :first-child {
  margin-top: 0;
}

.page-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.page-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-hero img {
  width: 96px;
  flex: none;
}

.page-hero h1,
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  scroll-margin-top: 24px;
}

.page ul,
.page ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.page li {
  margin-bottom: 0.35em;
}

.page .card {
  margin: 20px 0;
}

.page .card h2 {
  margin-top: 0;
}

.toc {
  columns: 2;
  column-gap: 32px;
}

.toc-inline .toc-title {
  font-size: 1.5rem;
}

.page-toc-title {
  margin: 0 0 10px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--card-stroke);
}

.page-toc li {
  margin: 0;
}

.page-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.page-toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

dl.facts {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 6px 20px;
  margin: 0;
}

dl.facts dt {
  font-weight: 600;
}

dl.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.faq details {
  border-top: 1px solid var(--card-stroke);
  padding: 4px 0;
}

.faq details:first-of-type {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.08rem;
}

.stand {
  margin-top: 2em;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 1100px) {
  .doc {
    grid-template-columns: 260px minmax(0, 72ch);
  }

  .doc-side {
    display: block;
  }

  .page-toc {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .toc-inline {
    display: none;
  }
}

/* Two columns hold down to 760 px; the phone layout starts below. */

@media (max-width: 1099px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 759px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .mascot {
    grid-row: 1;
    width: 220px;
  }

  .band-hero {
    background:
      radial-gradient(circle at 50% 16%, var(--hero-glow), transparent 30%),
      linear-gradient(160deg, var(--hero-from), var(--hero-to));
  }

  .features,
  .screens {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(100%, 270px);
  }

  .toc {
    columns: 1;
  }

  .split-art {
    width: min(100%, 460px);
  }

  /* Stacked, same scale: the inner device takes the full width, the cover device its share of it. */
  .duo-devices {
    flex-direction: column;
    align-items: center;
    row-gap: 28px;
    justify-self: stretch;
  }

  .duo-device {
    padding: calc(var(--duo-bezel) / var(--duo-inner-col) * 100%);
  }

  .duo-inner {
    flex: none;
    width: 100%;
  }

  .duo-cover {
    flex: none;
    width: calc(var(--duo-cover-col) / var(--duo-inner-col) * 100%);
  }

  .watch {
    width: min(44%, 200px);
  }
}

@media (max-width: 560px) {
  .site-nav .opt {
    display: none;
  }

  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 8px;
  }

  .privacy {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
