/* mamorii.app: white, with the app icon's sea-glass colours flowing slowly behind. Colours and fonts are the app's own
   (AppIcon.icon, AccentColor, Resources/Fonts). Always light: the owner wants a white site, never a dark one. */

@font-face {
  font-family: "Lexend Deca";
  src: url("fonts/LexendDeca-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("fonts/LexendDeca-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Gloria Hallelujah";
  src: url("fonts/GloriaHallelujah.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #86bab5;
  --teal-deep: #74a9a4;
  --aqua: #a6dcd3;
  --sky: #bcd4f0;
  --accent: #0b7f81;
  --ink: #16302f;
  --ink-soft: #3d5857;
  --paper: #ffffff;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Lexend Deca", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent); text-underline-offset: 0.2em; }

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

/* Home and Get: white, three soft colours drifting behind, everything centred like the icon. */

.home {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gutter);
  text-align: center;
}

/* Two oversized layers of blurred colour, each drifting on its own slow loop, so the mix never repeats the same way. */
.home::before,
.home::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
}

.home::before {
  background:
    radial-gradient(55% 50% at 18% 22%, rgb(134 186 181 / 0.85), transparent 70%),
    radial-gradient(52% 48% at 82% 78%, rgb(188 212 240 / 0.9), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.home::after {
  background:
    radial-gradient(50% 46% at 80% 20%, rgb(166 220 211 / 0.85), transparent 70%),
    radial-gradient(48% 44% at 22% 80%, rgb(134 186 181 / 0.6), transparent 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(6%, 5%) rotate(8deg); }
}
@keyframes drift-b {
  to { transform: translate(-7%, -4%) rotate(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home::before, .home::after { animation: none; }
}

.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  padding-block: 2rem;
}

.mark { width: clamp(7rem, 22vw, 11rem); height: auto; }
.mark path { fill: var(--teal-deep); }

.home h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.handwritten {
  margin: 0;
  max-width: 22ch;
  font-family: "Gloria Hallelujah", "Lexend Deca", cursive;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.5;
}

/* The code and its words, no card. The code keeps its own white edge so it scans over the colours. */
.get { margin-top: 1.5rem; }
.get img { display: block; width: 12rem; height: 12rem; margin: 0 auto; padding: 0.75rem; background: #fff; border-radius: 0.75rem; }
.get p { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }

.button {
  display: none;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.plain { margin: 0; max-width: 28ch; font-size: 1.125rem; }

/* A phone can't scan its own screen: the button stands in for the code. */
@media (max-width: 40rem) {
  .get { display: none; }
  .button { display: inline-flex; align-items: center; }
}

/* Legal links sit at the foot of every page. */

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
}

/* Privacy, Terms, Refunds: words only, in a column that reads easily. */

.doc { max-width: 38rem; margin: 0 auto; padding: var(--gutter); }

.doc header a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.doc header svg { width: 2.25rem; height: auto; }
.doc header path { fill: var(--accent); }

.doc h1 {
  margin: 2.5rem 0 0.25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc .dated { margin: 0 0 2rem; color: var(--ink-soft); font-size: 0.9375rem; }
.doc h2 { margin: 2.25rem 0 0.5rem; font-size: 1.1875rem; line-height: 1.35; }
.doc p, .doc ul { margin: 0 0 0.875rem; color: var(--ink-soft); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.375rem; }
.doc strong { color: var(--ink); font-weight: 700; }

.doc footer { margin-top: 3.5rem; padding-top: 1rem; }
.doc .legal-links { justify-content: flex-start; }
