/* Poffy's site. No scripts, no outside fonts or images: everything is served from here. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-extrabold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/nunito-black.woff2") format("woff2");
}

/* The app's colors (Poffy/DesignSystem/Tokens/AppColor.swift). */
:root {
  color-scheme: light dark;
  --bg: #faf8ff;
  --surface: #ffffff;
  --warm: #fff9f4;
  --wash: #e6ddff;
  --tile: #fff1e4;
  --text: #241b3d;
  --text-2: #5f5979;
  --line: #e9e2ff;
  --link: #5636e4;
  --violet-top: #7a5af8;
  --violet-bottom: #5b3be6;
  --violet-depth: #3c1ebe;
  --glow: #ffaa6e;
  --orange-top: #ffb067;
  --orange-bottom: #ff6f35;
  --on-orange: #2a1450;
  --shadow: 0 1px 2px rgba(36, 27, 61, 0.06), 0 8px 24px rgba(86, 54, 228, 0.08);
  --radius-l: 32px;
  --radius-m: 24px;
  --radius-s: 16px;
  --page: 1080px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d26;
    --surface: #1d1640;
    --warm: #221a3f;
    --wash: #2a2152;
    --tile: #2b2145;
    --text: #f4f1ff;
    --text-2: #c9c2e6;
    --line: #33295f;
    --link: #b3a3ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--glow);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.6rem);
}

h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
}

h3 {
  font-weight: 800;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 6px 2px;
}

@media (max-width: 479px) {
  .site-nav .wide-only {
    display: none;
  }
}

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(255, 170, 110, 0.35), transparent 55%),
    linear-gradient(160deg, var(--violet-top), var(--violet-bottom) 60%, var(--violet-depth));
  color: #ffffff;
  padding: 40px 28px 0;
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 50px rgba(60, 30, 190, 0.28);
}

.hero .eyebrow {
  display: inline-block;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd2ae;
  margin-bottom: 12px;
}

.hero h1 {
  color: #ffffff;
  max-width: 13ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 34rem;
}

.hero-art {
  justify-self: center;
  width: min(320px, 78%);
  margin-top: 8px;
  filter: drop-shadow(0 18px 30px rgba(20, 8, 90, 0.35));
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-top), var(--orange-bottom));
  color: var(--on-orange);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 6px 0 rgba(194, 80, 26, 0.45);
}

@media (min-width: 840px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 56px 56px 48px;
  }

  .hero-art {
    width: 100%;
    max-width: 360px;
    margin: 0;
  }
}

@media (max-width: 839px) {
  .hero-text {
    padding-bottom: 8px;
  }
}

/* Sections */

.section {
  padding: 72px 0 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

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

.cards {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--text-2);
  margin: 0;
}

.step img {
  width: 120px;
  height: 120px;
  margin: -4px 0 12px -6px;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--link);
  font-weight: 900;
  font-size: 0.95rem;
  margin-right: 8px;
  vertical-align: 2px;
}

.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto 1fr;
  gap: 4px 16px;
  align-items: start;
}

.feature .icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--tile);
  font-size: 1.6rem;
  line-height: 1;
}

.feature h3 {
  margin: 4px 0 2px;
}

/* Privacy band */

.band {
  margin-top: 72px;
  border-radius: var(--radius-l);
  background: var(--warm);
  border: 1px solid var(--line);
  padding: 36px 28px;
  display: grid;
  gap: 20px;
}

.band img {
  width: 160px;
  justify-self: center;
}

.band ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.band li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.band li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--orange-bottom);
}

.band li strong {
  color: var(--text);
}

@media (min-width: 760px) {
  .band {
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 44px 48px;
  }

  .band img {
    width: 100%;
  }
}

/* Small pages: support, privacy, terms */

.page-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 8px;
}

.page-head img {
  width: 104px;
  height: 104px;
  flex: none;
}

.page-head p {
  color: var(--text-2);
  margin: 0;
}

.doc {
  max-width: 46rem;
}

.doc h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
}

.doc h3 {
  margin-top: 1.6em;
}

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

.section.doc {
  padding-top: 56px;
}

article.doc {
  padding: 40px 0 72px;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc .meta {
  color: var(--text-2);
  font-size: 0.95rem;
}

.note {
  border-radius: var(--radius-s);
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin: 1em 0 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 900;
  background: var(--wash);
}

tr:last-child td {
  border-bottom: 0;
}

.contact {
  display: grid;
  gap: 18px;
  margin: 24px 0 8px;
}

@media (min-width: 760px) {
  .contact {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact .card a {
  font-size: 1.15rem;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 800;
  font-size: 1.08rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--link);
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--text-2);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

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

/* Not found */

.not-found {
  text-align: center;
  padding: 48px 0 0;
}

.not-found img {
  width: 180px;
  margin: 0 auto 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art {
    transition: transform 300ms ease;
  }

  .hero:hover .hero-art {
    transform: translateY(-4px) rotate(-1deg);
  }
}
