/* Golden Maple Group — /crm/ early-access page. Builds on /styles.css tokens. */

/* crm.js switches copy with the hidden attribute; .btn and friends set their own display. */
.c-page [hidden] { display: none !important; }

/* ---------- hero ---------- */
.c-hero-grid {
  position: relative; z-index: 1; display: grid; gap: 2.8rem; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vh, 4.5rem)); padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}
@media (min-width: 980px) { .c-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 3.5rem; } }
.c-hero h1 { max-width: 9.5em; font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.c-hero .hero-sub { margin: 1.4rem 0 1.5rem; }

.c-offer {
  max-width: 34rem; margin: 0 0 1.8rem; padding: 0.85rem 1.05rem; border-radius: 10px;
  border: 1px solid rgba(192, 138, 46, 0.45); background: rgba(192, 138, 46, 0.08);
  color: var(--cream-on-forest); font-size: 0.97rem; line-height: 1.55;
}
.c-offer b { color: var(--gold-glow); font-weight: 600; }
.c-offer a, .c-paused a { color: var(--gold-glow); }
.c-signin { color: var(--soft-on-forest); text-decoration: none; font-size: 0.95rem; }
.c-signin b { color: var(--cream-on-forest); font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 1px; transition: color var(--t-fast) ease; }
.c-signin:hover b { color: var(--gold-glow); }
.c-legal a { color: var(--cream-on-forest); }
.c-legal a:hover { color: var(--gold-glow); }
.c-hero-micro { margin-top: 1.3rem; max-width: 32rem; }

/* The job ticket: one job's path through the CRM. An illustration, no numbers. */
.c-ticket {
  margin: 0; width: 100%; max-width: 29rem; justify-self: center;
  background: var(--card); color: var(--ink); border-radius: 14px;
  padding: 1.2rem 1.35rem 1rem; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
  transform: rotate(1deg);
}
.c-ticket-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--line-dark); padding-bottom: 0.7rem;
}
.c-ticket-label {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.c-ticket-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(192, 138, 46, 0.2); }
.c-ticket-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 0.8rem 0 0.5rem; }
.c-trail { list-style: none; margin: 0; padding: 0; }
.c-trail li {
  position: relative; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: 0.85rem;
  padding: 0.42rem 0;
}
.c-trail li::before {
  content: ""; grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-top: 0.12rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid rgba(20, 38, 28, 0.3); background: var(--card);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; line-height: 1; color: var(--forest-deep);
}
.c-trail li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(0.7rem - 1px); top: 1.72rem; bottom: -0.3rem; width: 2px;
  background: rgba(20, 38, 28, 0.12);
}
.c-trail li.is-done::before { content: "\2713"; background: var(--gold); border-color: var(--gold); }
.c-trail li.is-done::after { background: linear-gradient(180deg, var(--gold), rgba(192, 138, 46, 0.45)); }
.c-trail li.is-now::before { border: 2px solid var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--card), 0 0 0 4px rgba(192, 138, 46, 0.18); }
.c-trail b { grid-column: 2; font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.c-trail span { grid-column: 2; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.c-trail li.is-now b { color: var(--gold-text); }
.c-ticket figcaption { margin-top: 0.9rem; font-size: 0.74rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .c-ticket { animation: ticketIn 1s var(--ease-out) 0.5s both; }
  .c-trail li { animation: fadeUp 0.6s var(--ease-out) both; }
  .c-trail li:nth-child(1) { animation-delay: 1.05s; }
  .c-trail li:nth-child(2) { animation-delay: 1.17s; }
  .c-trail li:nth-child(3) { animation-delay: 1.29s; }
  .c-trail li:nth-child(4) { animation-delay: 1.41s; }
  .c-trail li:nth-child(5) { animation-delay: 1.53s; }
  .c-trail li:nth-child(6) { animation-delay: 1.65s; }
  .c-trail li.is-now::before { animation: nowPulse 4s ease-in-out 2.2s infinite; }
  .c-ticket-dot { animation: breatheSoft 4s ease-in-out infinite; }
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(24px) rotate(1deg); } to { opacity: 1; transform: rotate(1deg); } }
@keyframes nowPulse {
  0%, 100% { box-shadow: inset 0 0 0 3px var(--card), 0 0 0 4px rgba(192, 138, 46, 0.18); }
  50% { box-shadow: inset 0 0 0 3px var(--card), 0 0 0 8px rgba(192, 138, 46, 0.06); }
}

/* ---------- what's in it ---------- */
.sect.c-inside { background: var(--cream); }
.c-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 36rem; }
.c-grid {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 620px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.c-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 1.5rem 1.5rem 1.4rem;
}
.c-card svg {
  display: block; width: 28px; height: 28px; margin-bottom: 0.8rem; color: var(--gold-deep);
  stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.c-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.c-card p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .c-card { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease; }
  .c-card:hover { transform: translateY(-3px); box-shadow: 0 26px 44px -30px rgba(20, 38, 28, 0.6); border-color: rgba(192, 138, 46, 0.45); }
}

.c-extras {
  position: relative; overflow: hidden; margin-top: 1.1rem;
  background: var(--forest); color: var(--cream-on-forest); border-radius: 12px;
  padding: 1.6rem 1.7rem; display: grid; gap: 1rem 2.4rem; align-items: center;
}
.c-extras::before {
  content: ""; position: absolute; left: 1.7rem; right: 1.7rem; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
@media (min-width: 860px) { .c-extras { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.c-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.45rem; }
.c-extras h3 { color: var(--cream-on-forest); font-size: 1.5rem; margin-bottom: 0.45rem; }
.c-extras p:not(.c-tag) { margin: 0; font-size: 0.93rem; color: var(--soft-on-forest); }
.c-extras ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.c-extras li {
  font-size: 0.88rem; line-height: 1.5; color: var(--cream-on-forest);
  background: rgba(192, 138, 46, 0.1); border: 1px solid rgba(192, 138, 46, 0.45);
  border-radius: 99px; padding: 0.3rem 0.85rem;
}
.c-extras li::before { content: "\2713\00a0"; color: var(--gold-glow); }

.c-not { margin: 1.8rem 0 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 46rem; }
.c-not b { color: var(--ink); }
.c-not a { font-weight: 600; white-space: nowrap; }

/* ---------- how sign-up works ---------- */
.sect.c-how { background: var(--cream-deep); }
.c-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: step; }
.c-steps li { position: relative; padding: 0 0 1.9rem 3.4rem; counter-increment: step; }
.c-steps li:last-child { padding-bottom: 0; }
.c-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; font-weight: 700;
  background: var(--forest); color: var(--gold);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.c-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.1rem - 1px); top: 2.5rem; bottom: 0.3rem; width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(192, 138, 46, 0.2));
}
.c-when { margin: 0.35rem 0 0.2rem !important; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.c-steps h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.c-steps p:not(.c-when) { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- price ---------- */
.sect.c-price { background: var(--forest); color: var(--cream-on-forest); }
.c-price .eyebrow { color: var(--gold); }
.c-price-lead { color: var(--soft-on-forest); font-size: 1.08rem; max-width: 38rem; }
.c-plans {
  display: grid; gap: 1.1rem; margin-top: 2.2rem; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.c-plan {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.c-plan-free::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-glow));
}
.c-plan-name { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 0.7rem; }
.c-amount {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.6rem; font-weight: 700; line-height: 1;
  margin: 0 0 1.1rem; color: var(--forest); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.c-cur { font-size: 1.4rem; vertical-align: 1.5rem; margin-right: 0.12rem; color: var(--ink-soft); }
.c-per { font-family: Inter, sans-serif; font-size: 0.92rem; font-weight: 500; color: var(--muted); margin-left: 0.35rem; }
.c-plan-note { margin: -0.4rem 0 1rem; font-size: 0.93rem; color: var(--ink-soft); }
.c-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.c-incl li { position: relative; padding-left: 1.7rem; font-size: 0.95rem; color: var(--ink-soft); }
.c-incl li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--gold); }
.c-incl li::after { content: ""; position: absolute; left: 0.37rem; top: 0.46em; width: 0.27rem; height: 0.5rem; border: solid var(--forest-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.c-price-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.c-fine { margin: 0; font-size: 0.86rem; color: var(--soft-on-forest); max-width: 30rem; }

/* ---------- FAQ ---------- */
.sect.c-faq { background: var(--cream); }
.c-faq-list { margin-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.c-faq-list details { border-bottom: 1px solid var(--line-dark); }
.c-faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--ink);
}
.c-faq-list summary::-webkit-details-marker { display: none; }
.c-faq-list summary::after {
  content: "+"; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  font-family: Inter, sans-serif; font-size: 1.1rem; color: var(--gold-text); border: 1px solid var(--line-dark);
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}
.c-faq-list details[open] summary::after { transform: rotate(45deg); background: rgba(192, 138, 46, 0.14); }
.c-faq-list summary:hover::after { border-color: var(--gold); }
.c-faq-list summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.c-faq-list details p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- start ---------- */
.c-start h2 { max-width: 16em; }
.c-start .book-sub { margin-bottom: 1.8rem; }
.c-start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.c-start-micro { margin-top: 1.4rem; max-width: 34rem; }
.c-paused b { color: var(--cream-on-forest); }

/* ---------- focus ---------- */
/* The shared ring is --gold, which is 5.2:1 on forest but under 3:1 on cream,
   cream-deep and card (WCAG 1.4.11). On the light sections and the plan cards
   it takes --gold-text (about 5.6:1); the forest panels keep --gold. */
.c-inside :focus-visible, .c-how :focus-visible, .c-faq :focus-visible, .c-plan :focus-visible { outline-color: var(--gold-text); }
.c-extras :focus-visible { outline-color: var(--gold); }

@media (max-width: 760px) {
  .c-amount { font-size: 3.1rem; }
  .c-ticket { transform: none; }
  .c-extras { padding: 1.5rem 1.3rem; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .c-ticket { animation-name: fadeUp; }
}
