/* DearPlay Digital — site styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ivory: #F8F7F3;
  --ivory-2: #F0EEE7;
  --ink: #16161C;
  --ink-2: #3A3A42;
  --muted: #6E6E73;
  --hair: #E2DFD6;
  --coral: #F26C5F;
  --wrap: 980px;
  --narrow: 692px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 22px; }

/* Wordmark */
.wordmark {
  font-weight: 800; letter-spacing: -0.045em; color: var(--ink);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.wordmark .dot {
  display: inline-block; width: 0.19em; height: 0.19em; background: var(--coral);
  margin-left: 0.12em; vertical-align: baseline;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 247, 243, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav .wordmark { font-size: 21px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav ul a { text-decoration: none; font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 120px 0 112px; }
.hero .wordmark { font-size: clamp(64px, 13vw, 136px); display: inline-block; }
.hero .rule { width: 56px; height: 4px; border-radius: 2px; background: var(--ink); margin: 40px auto 36px; }
.hero h1 {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.2; margin: 0 auto 14px; max-width: 22em; text-wrap: balance;
}
.hero p { color: var(--muted); font-size: clamp(17px, 2vw, 21px); margin: 0 auto; max-width: 30em; line-height: 1.4; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--hair); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.08; margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 32em; text-wrap: balance; }

.tile {
  background: var(--ivory-2); border-radius: 22px; padding: 56px 40px; text-align: center;
  max-width: 640px; margin: 0 auto;
}
.app-icon {
  width: 104px; height: 104px; border-radius: 24px; background: var(--ink);
  margin: 0 auto 24px; display: grid; place-items: center;
}
.app-icon span { display: block; width: 22px; height: 22px; background: var(--coral); }
.tile h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.tile p { color: var(--muted); margin: 0; }
.status { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); margin-right: 8px; vertical-align: 1px;
}

/* Spec table */
.specs { max-width: var(--narrow); margin: 0 auto; border-top: 1px solid var(--hair); }
.specs div {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.specs a { text-decoration: none; }
.specs a:hover { text-decoration: underline; }

.cta { text-align: center; margin-top: 40px; }
.button {
  display: inline-block; background: var(--ink); color: var(--ivory); text-decoration: none;
  font-size: 17px; font-weight: 500; padding: 12px 24px; border-radius: 980px;
}
.button:hover { background: #2C2C34; }
.link-arrow { color: var(--ink); font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Document pages */
.doc-head { text-align: center; padding: 88px 0 56px; }
.doc-head h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; }
.doc-head p { color: var(--muted); font-size: 19px; margin: 0; }

.doc { padding-bottom: 104px; }
.doc h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 10px; line-height: 1.25; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--hair); }
.doc a:hover { text-decoration-color: var(--ink); }

.contact-tile { background: var(--ivory-2); border-radius: 22px; padding: 40px; text-align: center; margin-bottom: 40px; }
.contact-tile p { margin: 0; color: var(--muted); }
.contact-tile .email { font-size: clamp(20px, 3.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 8px 0; word-break: break-word; }
.contact-tile .email a { text-decoration: none; }

details { border-bottom: 1px solid var(--hair); }
details:first-of-type { border-top: 1px solid var(--hair); }
summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-weight: 500; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--muted);
}
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 28px 0 40px; font-size: 12px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 0; flex-wrap: wrap; }
.footer nav a { text-decoration: none; padding: 0 10px; border-left: 1px solid var(--hair); }
.footer nav a:first-child { border-left: 0; padding-left: 0; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .nav ul { gap: 18px; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 72px 0; }
  .tile { padding: 40px 24px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .contact-tile { padding: 32px 20px; }
}
