/* TMN Creative project inquiry page in the TMN Flow world. Loads after tmn-home.css, which carries the tokens,
   type, buttons, header, menu, form fields, device frame, plan card, FAQ and footer. This file adds only what
   /start-a-project needs on top. Every line of copy and every field is the page's own (docs/start-v2/COPY-CHANGES.md). */

/* ===== Hero: the promise beside the form ===== */
.start-hero { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }

.start-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  align-items: start;
}

/* A form page: the H1 states the promise and gives the form the room */
.start-hero .display {
  max-width: 13em;
  font-size: clamp(2.4rem, 3.9vw, 3.45rem);
  line-height: 1.02;
}
.start-hero .display em { display: inline; }
.start-hero .hero-deck { margin-top: 1.4rem; max-width: 33em; font-size: clamp(1.0625rem, 1.15vw, 1.1875rem); }

/* The 3 project facts read as a short ledger, never a stat strip. The inquiry script rewrites the first 2. */
.fit-line {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.fit-line .metric {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 0.15rem 1.25rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.fit-line .metric strong {
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.fit-line .metric span { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }

/* The 3 fit lines, in the home page's check style */
.fit-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.fit-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.fit-item svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.fit-item strong { font-weight: 600; color: var(--ink); }

/* The form panel */
.start-form { position: relative; }
.start-form h2 {
  max-width: none;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.08;
}
.start-form .form-intro {
  max-width: 36em;
  margin: 0.7rem 0 1.6rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.fg label span { font-weight: 400; color: var(--ink-3); }

/* The honeypot stays off screen, as before */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-note {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.contact-note a,
.fine a,
.start-faq .faq-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(15 27 47 / 0.35);
  transition: text-decoration-color 0.2s ease;
}
.contact-note a:hover,
.fine a:hover,
.start-faq .faq-a a:hover { text-decoration-color: var(--ink); }

/* Service labels run to 32 characters, so the submit may take 2 lines on a phone */
.start-form .form-submit { white-space: normal; line-height: 1.25; text-align: center; }

.fine {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-3);
}

/* Inquiry modes, set by the page's inline script (body.ai-visibility-inquiry for every service) */
.ai-only { display: none; }
body.ai-visibility-inquiry .project-only { display: none !important; }
body.ai-visibility-inquiry .ai-only { display: grid; }
body.ai-visibility-inquiry #scope-row { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1000px) {
  .start-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.3fr);
    gap: clamp(3rem, 5vw, 5rem);
  }
}

/* Wide and tall screens: the promise stays in view while the visitor fills the form */
@media (min-width: 1000px) and (min-height: 820px) {
  .start-copy { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

@media (max-width: 999px) {
  .start-copy { max-width: 44rem; }
  .start-form { max-width: 46rem; }
}

@media (max-width: 640px) {
  .start-grid { gap: 2.25rem; }
  .start-hero .hero-deck { margin-top: 1.1rem; font-size: 1.0625rem; }
  .fit-line { margin-top: 1.6rem; }
  .fit-line .metric { grid-template-columns: minmax(0, 8.25rem) minmax(0, 1fr); column-gap: 1rem; padding: 0.7rem 0; }
  .fit-line .metric strong { font-size: 1rem; }
  .fit-line .metric span { font-size: 0.875rem; }
  .fit-card { gap: 0.65rem; margin-top: 1.3rem; font-size: 0.9375rem; }
  .start-form h2 { font-size: 1.75rem; }
  .start-form .form-intro { margin-bottom: 1.35rem; font-size: 0.9375rem; }
}

@media (max-width: 640px) {
  .start-form .fg { margin-bottom: 0.85rem; }
  .start-form .fg input,
  .start-form .fg select { min-height: 48px; }
  .start-form .fg textarea { min-height: 6.25rem; }
}

@media (max-width: 360px) {
  .fit-line .metric { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Work: the page's single dark band (the list and MacBook styles are shared in tmn-home.css) ===== */
.start-work .sw-intro { max-width: 52rem; }
.start-work .sw-intro h2 { max-width: 15ch; }

/* ===== Process: stage names sit in the plan card's right column, sized to the word ===== */
.start-process .proc-intro h2 { max-width: 12ch; }
.start-process .proc-row { grid-template-columns: 1.35rem minmax(0, 1fr) minmax(0, 8rem); }
@media (max-width: 640px) {
  .start-process .proc-row { grid-template-columns: 1.35rem minmax(0, 1fr); }
}

/* ===== FAQ: each summary holds only its question (the inquiry script rewrites 1), so the chevron is CSS ===== */
.start-faq .faq-item summary::after {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.start-faq .faq-item[open] summary::after { transform: rotate(180deg); }
.start-faq .faq-head h2 { max-width: 10ch; }

/* ===== Footer: the page's own line and contact links on 1 bar ===== */
.start-foot { padding: 0.5rem 0 1.75rem; }
.start-foot .foot-bar { justify-content: space-between; margin-top: 0; padding-top: 0.5rem; border-top: 0; }
.start-foot .foot-sig { margin-left: auto; }
@media (max-width: 820px) {
  .start-foot .foot-sig { margin-left: 0; }
}
@media (max-width: 900px) {
  .start-foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ===== Load choreography: the home page's entrance, then the form panel settles. Hidden states never apply
   without motion. ===== */
@media (prefers-reduced-motion: no-preference) {
  .start-copy .fit-line,
  .start-copy .fit-card { animation: focus-up 1s var(--ease-out) 0.34s both; }
  .start-form { animation: stage-in 1.2s var(--ease-out) 0.12s both; }
}
