/* Petcast site. Quiet neutrals, one warm accent, medium-weight type. */

:root {
  --bg: #ffffff;
  --soft: #f8f6f3;
  --card: #ffffff;
  --ink: #1c1917;
  --body: #57534e;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #e4613f;
  --accent-ink: #c2492a;
  --dark: #1c1917;
  --dark-body: #d6d3d1;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d0c; --soft: #171412; --card: #1c1917; --ink: #f5f5f4; --body: #c9c5c1; --muted: #a8a29e;
    --line: #2e2a27; --accent: #f27d5f; --accent-ink: #f59a80; --dark: #171412; --dark-body: #c9c5c1;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d0c; --soft: #171412; --card: #1c1917; --ink: #f5f5f4; --body: #c9c5c1; --muted: #a8a29e;
  --line: #2e2a27; --accent: #f27d5f; --accent-ink: #f59a80; --dark: #171412; --dark-body: #c9c5c1;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
h1, h2, h3, p { overflow-wrap: break-word; }
[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  font-weight: 500; font-size: 15px; text-decoration: none; background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
}
.button:hover { opacity: 0.9; }
.button.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button.outline:hover { border-color: var(--muted); opacity: 1; }
.button.light { background: #fff; color: #1c1917; border-color: #fff; }
.button svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-ink); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; margin: 0 0 22px; }
.lede { font-size: 19px; color: var(--body); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-visual .rings { position: absolute; left: 50%; top: 50%; width: 820px; height: 820px; transform: translate(-50%, -50%); color: var(--line);
  mask-image: radial-gradient(closest-side, #000 60%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); }
/* Hero: a collage of Home Screen widgets in their real shapes (medium ~2.14:1, small square). */
.widgets {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; width: min(460px, 92vw);
  transform: rotate(-3deg);
}
.widgets .w { margin: 0; }
.widgets .w img {
  display: block; width: 100%; height: auto; object-fit: cover; border-radius: 26px;
  box-shadow: 0 24px 50px -22px rgba(28, 25, 23, 0.55), 0 0 0 1px rgba(28, 25, 23, 0.06);
}
.widgets .medium { grid-column: span 2; }
.widgets .medium img { aspect-ratio: 2.14 / 1; }
.widgets .small img { aspect-ratio: 1; }
.widgets .small:nth-of-type(2) { transform: translateY(10px) rotate(2deg); }
.widgets .small:nth-of-type(3) { transform: translateY(-6px) rotate(-1.5deg); }
.widgets figcaption { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 7px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin: 0 0 14px; }
.section-head p { font-size: 18px; color: var(--body); margin: 0; }
.soft { background: var(--soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--body); }

/* Style strip */
.styles-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.styles-strip figure { margin: 0; }
.styles-strip img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 14px; width: 100%; box-shadow: 0 10px 30px -14px rgba(28, 25, 23, 0.35); }
.styles-strip figcaption { margin-top: 10px; font-size: 14px; color: var(--body); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); }
.feature svg { width: 26px; height: 26px; color: var(--accent); }
.feature h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 18px 0 6px; }
.feature p { margin: 0; color: var(--body); font-size: 15px; }

/* Dark giving band */
.dark { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.dark h2 { color: #fff; }
.dark p { color: var(--dark-body); }
.dark a:not(.button) { color: #fff; }
.giving { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
.giving .big { font-size: clamp(72px, 10vw, 128px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; color: #fff; }
.giving .big span { color: var(--accent); }
.giving h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; }
.giving p { margin: 0 0 12px; font-size: 17px; }
.dark .rings { position: absolute; right: -220px; top: 50%; width: 760px; height: 760px; transform: translateY(-50%); color: rgba(255, 255, 255, 0.1); }

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; padding: 36px; background: var(--card); text-align: center; }
.price-card .label { font-weight: 600; margin: 0; }
.price-card .amount { font-size: 52px; font-weight: 500; letter-spacing: -0.04em; margin: 8px 0 0; color: var(--ink); }
.price-card .amount small { font-size: 17px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.price-card .sub { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 9px 0 9px 30px; position: relative; color: var(--body); border-top: 1px solid var(--line); }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ grid on the landing page */
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.faq-grid h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.faq-grid p { margin: 0; color: var(--body); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal and support pages */
.doc { padding-top: 32px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 8px 0 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--body); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--soft); border-radius: var(--radius); padding: 20px 24px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 500; }
.doc td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc tr.total td { color: var(--ink); font-weight: 600; }
.giving-month { margin-top: 40px; }
.giving-month table { display: table; }
.caps { text-transform: uppercase; font-size: 14px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
summary {
  font-weight: 500; cursor: pointer; list-style: none; padding: 15px 44px 15px 18px; position: relative;
  border-radius: 14px; outline: none; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover::after { border-color: var(--accent); }
summary:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
details p { color: var(--body); margin: 0; padding: 0 18px 16px; }

/* Small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 48px; }
  .hero-visual { min-height: 0; padding: 32px 0; overflow: hidden; }
  .steps, .features, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .styles-strip { grid-template-columns: repeat(6, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .styles-strip figure { scroll-snap-align: start; }
  .giving { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  section { padding: 64px 0; }
  .nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 480px) {
  .nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .dark .rings { animation: spin 120s linear infinite; }
  @keyframes spin { from { transform: translateY(-50%) rotate(0); } to { transform: translateY(-50%) rotate(360deg); } }
}
