/* Pausely website: the app's night sky, in plain CSS. */

:root {
  --midnight: #060918;
  --night: #0b1030;
  --navy: #131a45;
  --dusk: #241a55;
  --nebula: #3a2470;
  --lavender: #a99bff;
  --lavender-deep: #8c7cf2;
  --moonlight: #c9d4ff;
  --starlight: #ffe3b3;
  --mint: #8fe0cb;
  --text: #f4f2ff;
  --text-2: #bdb9e0;
  --muted: #aca8d6;
  --on-accent: #14103a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --max: 1080px;
  --prose: 760px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--midnight);
  background-image:
    radial-gradient(1200px 700px at 20% -10%, rgba(58, 36, 112, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(36, 26, 85, 0.6), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--midnight) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* A sprinkling of stars behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 72%, var(--moonlight), transparent),
    radial-gradient(1.5px 1.5px at 44% 32%, var(--starlight), transparent),
    radial-gradient(1px 1px at 61% 84%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 74% 22%, var(--moonlight), transparent),
    radial-gradient(1px 1px at 88% 58%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 6% 90%, var(--moonlight), transparent),
    radial-gradient(1px 1px at 93% 92%, var(--starlight), transparent),
    radial-gradient(1px 1px at 52% 8%, #fff, transparent);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--lavender);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--moonlight);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--starlight);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--starlight);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 24, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.brand img {
  width: 40px;
  height: 40px;
}

.brand:hover {
  color: var(--text);
}

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

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  display: inline-block;
}

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

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--lavender);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--lavender), var(--lavender-deep));
  color: var(--on-accent);
}

.button-primary:hover {
  color: var(--on-accent);
  transform: translateY(-1px);
}

.button-ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
}

.button-ghost:hover {
  color: var(--text);
  background: var(--glass-strong);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* ---------- Home ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.hero-art {
  flex: 0 1 300px;
  margin: 0 auto;
}

.hero-art img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 24px 60px rgba(169, 155, 255, 0.35));
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--starlight);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 38em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}

.section {
  padding: 64px 0;
}

.section-intro {
  max-width: 40em;
  color: var(--text-2);
  margin-bottom: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 0.35em;
}

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

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(169, 155, 255, 0.16);
  color: var(--lavender);
  margin-bottom: 14px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  counter-reset: step;
}

.steps .card {
  position: relative;
}

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--starlight);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.price-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
  border-radius: 28px;
  background:
    linear-gradient(var(--night), var(--night)) padding-box,
    linear-gradient(135deg, var(--lavender), #f4a9b1, var(--starlight)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 48px rgba(169, 155, 255, 0.25);
}

.price {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  margin: 8px 0;
}

.price span {
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--text-2);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.price-card li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
}

.price-card li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 700;
}

.faq details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}

.faq details p {
  color: var(--text-2);
}

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

.page {
  padding: 56px 0 72px;
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose p,
.prose li {
  color: var(--text-2);
}

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

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

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

.callout {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 1.5em 0;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 1.2em 0;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

td {
  color: var(--text-2);
}

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

/* Details the owner still has to fill in. Remove the class once done. */
.fill-in {
  background: rgba(255, 227, 179, 0.16);
  color: var(--starlight);
  border: 1px dashed rgba(255, 227, 179, 0.6);
  border-radius: 6px;
  padding: 0 6px;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

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

.site-footer p {
  margin: 0;
}
