/* =========================================================
   Attenda — product page styles.
   Standalone for v1; common patterns will get factored into
   products/_shared/ when the second product page is built
   (task-watcher #78).
   ----------------------------------------------------------
   Palette is sampled from the Attenda app icon (warm yellow +
   orange "raise your hand" character) — distinct from
   AnchorKite's sage/navy and from the tool suite's teal.
   ========================================================= */

:root {
  /* ---------- Color ---------- */
  --bg:                #FFFFFF;
  --surface:           #FFFFFF;
  --surface-inset:     #FEF8E7;   /* very pale warm yellow */
  --surface-tint:      #FFF1D6;   /* peach tint for callouts */
  --surface-warm:      #FFEDC2;   /* warmer peach for hover surfaces */

  --text:              #0F172A;   /* navy — matches Attenda app */
  --text-secondary:    #334155;
  --text-muted:        #64748B;
  --text-subtle:       #94A3B8;

  --border:            #E2E8F0;
  --border-strong:     #CBD5E1;

  --accent:            #F59E3B;   /* orange — icon backdrop */
  --accent-hover:      #D97706;   /* deeper orange */
  --accent-soft:       #FEF3DC;   /* pale yellow */
  --accent-fg:         #FFFFFF;   /* text on accent button */
  --accent-glow:       rgba(245, 158, 59, 0.18);

  --privacy-bg:        #F1FAF4;   /* very soft green — privacy callout */
  --privacy-accent:    #16A34A;

  --danger:            #DC2626;
  --danger-soft:       #FEE2E2;

  --shadow-sm:         0 1px 2px rgba(15, 23, 42, 0.04),
                       0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow:            0 4px 12px rgba(15, 23, 42, 0.06),
                       0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-mockup:     0 24px 60px -20px rgba(15, 23, 42, 0.28),
                       0 8px 24px -8px rgba(15, 23, 42, 0.12);

  /* ---------- Typography ---------- */
  --font-display:      'Nunito', system-ui, -apple-system, "Segoe UI",
                       Roboto, sans-serif;
  --font-body:         'Nunito', system-ui, -apple-system, "Segoe UI",
                       Roboto, sans-serif;

  /* ---------- Spacing ---------- */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-8: 32px;  --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* ---------- Radius ---------- */
  --radius-sm:    8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --container:       960px;
  --container-narrow: 680px;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--accent);
  color: var(--accent-fg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-hover);
  margin-bottom: var(--space-4);
  text-align: center;
}

/* =========================================================
   Header (small parent-company breadcrumb)
   ========================================================= */
.product-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) 0;
}
.product-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.product-breadcrumb:hover {
  color: var(--accent-hover);
}
.breadcrumb-parent { font-weight: 600; }
.breadcrumb-sep { color: var(--text-subtle); }
.breadcrumb-current {
  color: var(--text);
  font-weight: 700;
}

/* =========================================================
   Hero
   ========================================================= */
.product-hero {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-10);
  text-align: center;
}

.product-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.product-name {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.product-tagline {
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-6);
  font-weight: 500;
}

.product-launch {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.product-cta-button {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: background 0.15s ease, transform 0.08s ease,
              box-shadow 0.15s ease;
}
.product-cta-button:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.product-cta-button:active { transform: translateY(0); }

@media (max-width: 640px) {
  .product-hero { padding: var(--space-8) var(--space-5) var(--space-8); }
  .product-name { font-size: 44px; }
  .product-tagline { font-size: 17px; }
}

/* =========================================================
   Mockups
   The Phone Mockup PNGs include a phone bezel + flattened white
   background. They render at 640x1276 (aspect ~0.501). Grid is
   responsive: 1-up mobile, 2x2 tablet, 4-up wide desktop.
   ========================================================= */
.product-mockups {
  /* Wider than other sections so the 4-up row of phone mockups
     has room to breathe at a larger display size. Text sections
     stay at the narrower --container for readability. */
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-12);
}
.product-mockups .section-eyebrow {
  margin-bottom: var(--space-8);
}
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  justify-items: center;
}
@media (min-width: 560px) {
  .mockup-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}
@media (min-width: 1000px) {
  .mockup-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  max-width: 320px;
}
.mockup img {
  display: block;
  width: 100%;
  height: auto;
  /* No box-shadow — the phone-frame mockup has its own bezel
     and a subtle drop shadow baked in. */
}
.mockup figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
}
.mockup figcaption strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
@media (min-width: 1000px) {
  .mockup { max-width: 340px; }
}

/* =========================================================
   Features
   ========================================================= */
.product-features {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-12);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.12s ease,
              box-shadow 0.15s ease;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: var(--radius);
}
.feature h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =========================================================
   Pricing (paywall pre-positioning)
   ========================================================= */
.product-pricing {
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-12);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.pricing-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.pricing-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto var(--space-8);
  max-width: 520px;
}
.pricing-lead strong {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}
.pricing-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.pricing-points li {
  position: relative;
  padding-left: var(--space-6);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.pricing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 640px) {
  .product-pricing { padding: var(--space-8) var(--space-5); }
  .pricing-title { font-size: 26px; }
  .pricing-lead { font-size: 16px; }
}

/* =========================================================
   Notify-me CTA
   ========================================================= */
.product-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  background: var(--surface-inset);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: var(--space-12);
  margin-left: var(--space-6);
  margin-right: var(--space-6);
}
@media (min-width: 720px) {
  .product-cta { max-width: var(--container); margin-left: auto; margin-right: auto; }
}
.product-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.product-cta-lead {
  max-width: 480px;
  margin: 0 auto var(--space-6);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}
@media (max-width: 640px) {
  .product-cta { padding: var(--space-10) var(--space-5); }
  .product-cta h2 { font-size: 26px; }
}

.notify-form {
  max-width: 540px;
  margin: 0 auto;
}
.notify-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 560px) {
  .notify-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
}

.notify-field {
  display: flex;
  align-items: stretch;
}
.notify-field input,
.notify-field select {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.notify-field input::placeholder { color: var(--text-subtle); }
.notify-field input:focus,
.notify-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.notify-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: background 0.15s ease, transform 0.06s ease,
              box-shadow 0.15s ease;
}
.notify-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.notify-submit:active:not(:disabled) { transform: translateY(1px); }
.notify-submit:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.notify-message {
  margin-top: var(--space-3);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.notify-message.is-success { color: var(--privacy-accent); }
.notify-message.is-error { color: var(--danger); }

/* =========================================================
   Privacy callout
   ========================================================= */
.product-privacy {
  max-width: var(--container);
  margin: 0 auto var(--space-12);
  padding: var(--space-12) var(--space-6);
  background: var(--privacy-bg);
  border-radius: var(--radius-xl);
  margin-left: var(--space-6);
  margin-right: var(--space-6);
}
@media (min-width: 720px) {
  .product-privacy {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
  }
}
.privacy-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--privacy-accent);
  margin-bottom: var(--space-4);
  text-align: center;
}
.product-privacy h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.product-privacy p {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
}
.product-privacy p:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) {
  .product-privacy { padding: var(--space-8) var(--space-5); }
  .product-privacy h2 { font-size: 22px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.product-faq {
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-12);
  padding: var(--space-12) var(--space-6);
}
.faq-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-8);
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: var(--space-2) 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: var(--space-4) var(--space-8) var(--space-4) 0;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-hover);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item summary:hover { color: var(--accent-hover); }
.faq-item p {
  padding: 0 0 var(--space-4);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.faq-item p a {
  color: var(--accent-hover);
  border-bottom: 1px solid currentColor;
}
.faq-item p a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .product-faq { padding: var(--space-8) var(--space-5); }
  .faq-title { font-size: 22px; }
}

/* =========================================================
   Store badges (disabled / coming soon)
   ========================================================= */
.product-stores {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
}
.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--text);
  color: #FFFFFF;
  border-radius: var(--radius);
  opacity: 0.45;
  cursor: not-allowed;
  user-select: none;
  min-width: 200px;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.store-badge-small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.store-badge-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* =========================================================
   Footer (parent-company credit)
   ========================================================= */
.product-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-8) var(--space-6);
}
.product-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.product-footer-credit {
  font-size: 14px;
  color: var(--text-muted);
}
.product-footer-credit a { color: var(--text); }
.product-footer-credit a:hover { color: var(--accent-hover); }
.product-footer-credit strong { font-weight: 800; }
.product-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: 13px;
}
.product-footer-nav a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.product-footer-nav a:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
}
@media (max-width: 640px) {
  .product-footer-inner { flex-direction: column; align-items: flex-start; }
}
