/* ============================================================
   PlumHour — website styles
   Deep Plum design system (see designs/CLAUDE.md)
   ============================================================ */

/* ---------- Self-hosted fonts (no third-party font CDN) ----------
   Variable woff2 files from @fontsource-variable, licensed under the
   SIL OFL — see assets/fonts/OFL-*.txt. */

/* space-grotesk-latin-wght-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* space-grotesk-latin-ext-wght-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* plus-jakarta-sans-latin-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* plus-jakarta-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #110a22;
  --text: #fbf9ff;
  --muted: rgba(251, 249, 255, 0.56);
  --dim: rgba(251, 249, 255, 0.5);
  --violet: #8b6bff;
  --violet-light: #a58fff;
  --violet-label: #c3b2ff;
  --cyan: #1fd8ff;
  --cyan-text: #8beaff;
  --pink: #ff4d9e;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.11);
  --input-bg: rgba(255, 255, 255, 0.07);
  --input-border: rgba(255, 255, 255, 0.13);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(85% 52% at 14% 6%, rgba(128, 92, 255, 0.4), transparent 55%),
    radial-gradient(66% 44% at 92% 14%, rgba(31, 216, 255, 0.16), transparent 55%),
    radial-gradient(90% 58% at 52% 106%, rgba(104, 70, 230, 0.34), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--violet-light);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 10, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Brand lockup per brand-spec.md web-header row: C=15 — font 21px,
   glyph height 30px, gap 7.5px. */
.brand {
  display: flex;
  align-items: center;
  gap: 7.5px;
  color: var(--text);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.04em;
}

/* Two-tone wordmark: "Plum" carries the dark-bg gradient, "Hour" stays
   TextHead. */
.brand-plum {
  background: linear-gradient(90deg, #a58fff 0%, #8b6bff 60%, #d178a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-mark.large {
  height: 84px;
  display: inline-flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #8b6bff, #7a5cf0);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(31, 216, 255, 0.1);
  border: 1px solid rgba(31, 216, 255, 0.3);
  color: var(--cyan-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-eyebrow svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #a58fff, #1fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 32rem;
  margin-bottom: 36px;
}

/* ---------- Store buttons ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

/* Primary CTA: the web app is the one platform people can use today */
.web-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 16px;
  background: linear-gradient(145deg, #8b6bff, #7a5cf0);
  box-shadow: 0 8px 28px rgba(139, 107, 255, 0.4);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: opacity 0.2s, transform 0.2s;
}

.web-cta:hover {
  opacity: 0.94;
  transform: translateY(-2px);
}

.web-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-btn .store-text small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn .store-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.store-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--dim);
}

/* ---------- Phone mockup ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  width: 300px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #2b2440, #181026);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(139, 107, 255, 0.22);
  animation: phonefloat 7s ease-in-out infinite;
}

@keyframes phonefloat {
  0%, 100% { transform: translateY(0) rotateY(-4deg); }
  50% { transform: translateY(-14px) rotateY(-4deg); }
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-grid .glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon.violet { background: rgba(139, 107, 255, 0.16); }
.feature-icon.cyan { background: rgba(31, 216, 255, 0.12); }
.feature-icon.pink { background: rgba(255, 77, 158, 0.14); }

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon.violet svg { fill: var(--violet-light); }
.feature-icon.cyan svg { fill: var(--cyan); }
.feature-icon.pink svg { fill: var(--pink); }

.glass-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Tour (store screenshots) ---------- */

.tour-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 107, 255, 0.35) transparent;
}

.tour-strip::-webkit-scrollbar {
  height: 6px;
}

.tour-strip::-webkit-scrollbar-thumb {
  background: rgba(139, 107, 255, 0.35);
  border-radius: 3px;
}

.tour-strip img {
  width: min(340px, 78vw);
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  background: linear-gradient(120deg, #a58fff, #1fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

details.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--violet-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Download band ---------- */

.download-band {
  text-align: center;
  padding: 64px 32px;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(139, 107, 255, 0.25), transparent 70%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.download-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 24px 0 12px;
}

.download-band p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

.download-band .store-buttons {
  justify-content: center;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 44px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 10px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-label);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Legal/404 pages: footer without the top rule. */
.footer-bottom--flush {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cta-row {
  margin-top: 24px;
}

.spaced-top {
  margin-top: 1.4em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.82rem;
}

/* ---------- Legal / placeholder pages ---------- */

.page-hero {
  padding: 80px 0 30px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
}

.legal-body {
  padding: 20px 0 100px;
}

.placeholder-box {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  color: var(--dim);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

/* Real legal content */

.legal-body h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.7em;
}

.legal-body h2:first-child {
  margin-top: 0.6em;
}

.legal-body h3 {
  font-size: 1.08rem;
  margin: 1.8em 0 0.6em;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.legal-body p {
  margin-bottom: 1em;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.legal-body li {
  margin-bottom: 0.5em;
}

.legal-body strong {
  color: var(--text);
  font-weight: 700;
}

.legal-body a {
  color: var(--violet-light);
}

.legal-body a:hover {
  color: var(--text);
}

.legal-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2.4em 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.legal-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.86rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  line-height: 1.6;
}

.legal-body th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Safety Center: help callout + resource cards ---------- */

.help-callout {
  border: 1px solid rgba(31, 216, 255, 0.3);
  background: rgba(31, 216, 255, 0.06);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 0 0 2em;
}

.help-callout h2 {
  margin-top: 0;
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 0 0;
  transition: border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  border-color: rgba(31, 216, 255, 0.4);
  transform: translateY(-1px);
}

.resource-card .resource-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.resource-card .resource-url {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 2px;
  word-break: break-all;
}

.resource-card .resource-glyph {
  flex-shrink: 0;
  color: var(--cyan-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .phone {
    width: 264px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Brand glyph twinkle — a moment of life every 12s, still otherwise. */
@keyframes brand-twinkle {
  0%, 100% { transform: scale(1); filter: none; }
  3.75% { transform: scale(1.06); filter: brightness(1.4) drop-shadow(0 0 3px rgba(255, 255, 255, 0.45)); }
  10% { transform: scale(1); filter: none; }
}

.logo-mark {
  animation: brand-twinkle 12s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark { animation: none; }
}
