/* ============================================================================
   TidalAI landing — "Studio" system
   Scoped to the marketing page only (body.landing-page); the app keeps the
   warm Switchboard theme. White paper, near-black ink, hairlines, black pill
   controls. The brand vermilion appears in exactly one role: the live line —
   the pulsing LED that says a call is being answered right now.
   ========================================================================== */

body.landing-page {
  background: #fff;
  color: #0a0a0a;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.landing-page::before { display: none; } /* no grain on the marketing page */
body.landing-page .container { max-width: none; padding: 0; }

.landing {
  --paper: #ffffff;
  --band: #f6f6f4;
  --ink: #0a0a0a;
  --ink-2: #45453f;
  --mut: #8a8a82;
  --line: #e9e9e4;
  --live: #e6430c;
  --night: #0d0d0c;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.6;
}

/* page-wide resets inside the landing scope */
.landing h1, .landing h2, .landing h3, .landing h4 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 .45em;
}
.landing a { color: inherit; }
.landing a:hover { text-decoration: none; }
.landing .wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }

/* ---- pills ---------------------------------------------------------------- */
.landing .pill-btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
  padding: .78em 1.5em; border-radius: 999px;
  border: 1px solid var(--ink);
  box-shadow: none; text-decoration: none;
  transition: background .16s, transform .14s;
}
.landing .pill-btn:hover { background: #2a2a26; transform: translateY(-1px); text-decoration: none; }
.landing .pill-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.landing .pill-btn.ghost:hover { background: var(--band); border-color: var(--ink-2); }
.landing .pill-btn.on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.landing .pill-btn.on-dark:hover { background: #e9e9e4; }

/* mono eyebrow chip */
.landing .chip {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42em 1em; margin-bottom: 1.3rem; background: var(--paper);
}
.landing .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: chipPulse 2.4s infinite; }
@keyframes chipPulse {
  0% { box-shadow: 0 0 0 0 rgba(230,67,12,.4); }
  70% { box-shadow: 0 0 0 6px rgba(230,67,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,67,12,0); }
}

/* ---- announcement bar + nav ----------------------------------------------- */
.landing .promo-bar {
  background: var(--night); color: #cfcfc8;
  font-size: .78rem; font-weight: 500; text-align: center;
  padding: .55em 1em;
}
.landing .promo-bar b { color: #fff; font-weight: 700; }

.landing .site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.landing .nav-brand { font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.landing .nav-brand em { font-style: normal; color: var(--live); }
.landing .nav-center { display: flex; gap: 1.6rem; }
.landing .nav-center a { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.landing .nav-center a:hover { color: var(--ink); }
.landing .nav-right { display: flex; align-items: center; gap: 1.1rem; }
.landing .nav-signin { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.landing .nav-right .pill-btn { padding: .55em 1.15em; font-size: .84rem; }

/* ---- hero ------------------------------------------------------------------ */
.landing .hero { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 0; }
.landing .hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  max-width: 21ch; margin-left: auto; margin-right: auto;
}
.landing .hero h1 em { font-style: normal; color: var(--live); }
.landing .hero .sub {
  color: var(--ink-2); font-size: clamp(.98rem, 1.6vw, 1.08rem);
  max-width: 54ch; margin: .9rem auto 1.7rem;
}
.landing .hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.landing .hero-note { color: var(--mut); font-size: .82rem; margin-top: 1rem; }

/* hero visual — the live call card. Our product photo is a phone call. */
.landing .hero-stage {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 6vw, 4rem);
  position: relative;
}
.landing .hero-stage::after { /* soft floor band, like the template's grey stage */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: var(--band); z-index: 0;
}
.landing .call-card {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(10,10,10,.28), 0 4px 14px rgba(10,10,10,.05);
  text-align: left; overflow: hidden;
}
.landing .call-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.3rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mut);
}
.landing .call-head .live { color: var(--live); font-weight: 600; display: inline-flex; align-items: center; gap: .5em; }
.landing .call-head .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  animation: chipPulse 2.4s infinite;
}
/* the live line — signature element */
.landing .live-line { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.landing .live-line::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--live), transparent);
  animation: sweep 2.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes sweep { to { left: 105%; } }

.landing .call-body { padding: 1.15rem 1.3rem 1.25rem; display: grid; gap: .7rem; }
.landing .call-line { display: flex; gap: .8rem; font-size: .88rem; line-height: 1.5; }
.landing .call-line b {
  font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em;
  color: var(--mut); flex: 0 0 52px; padding-top: .3em;
}
.landing .call-line.ai b { color: var(--live); }
.landing .call-line p { margin: 0; color: var(--ink-2); }
.landing .call-line.ai p { color: var(--ink); }
.landing .call-result {
  margin: .4rem 1.3rem 1.25rem;
  display: flex; align-items: center; gap: .6em;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--band);
  padding: .7rem 1rem;
  font-family: var(--mono); font-size: .74rem; color: var(--ink-2);
}
.landing .call-result b { color: var(--ink); font-weight: 600; }
.landing .call-result .tick { color: var(--live); font-weight: 700; }

/* staggered entrance for the transcript */
@media (prefers-reduced-motion: no-preference) {
  .landing .call-line, .landing .call-result { animation: lineIn .5s cubic-bezier(.2,.7,.2,1) backwards; }
  .landing .call-line:nth-child(1) { animation-delay: .5s; }
  .landing .call-line:nth-child(2) { animation-delay: 1.1s; }
  .landing .call-line:nth-child(3) { animation-delay: 1.7s; }
  .landing .call-line:nth-child(4) { animation-delay: 2.3s; }
  .landing .call-result { animation-delay: 3s; }
  .landing .hero h1, .landing .hero .sub, .landing .hero-cta, .landing .hero-note, .landing .hero .chip {
    animation: lineIn .55s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .landing .hero .chip { animation-delay: .02s; }
  .landing .hero h1 { animation-delay: .08s; }
  .landing .hero .sub { animation-delay: .15s; }
  .landing .hero-cta { animation-delay: .2s; }
  .landing .hero-note { animation-delay: .25s; }
}
@keyframes lineIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- sections --------------------------------------------------------------- */
.landing section { padding: clamp(3rem, 7vw, 4.6rem) 0; }
.landing section.banded { background: var(--band); }
.landing .sec-head { max-width: 620px; }
.landing .sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
.landing .sec-head .lede { color: var(--ink-2); margin: .4rem 0 0; }

/* stats band */
.landing .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.landing .stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.4rem 1.35rem;
}
.landing .stat-card .n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.landing .stat-card .n em { font-style: normal; color: var(--live); }
.landing .stat-card p { margin: .45rem 0 0; color: var(--ink-2); font-size: .9rem; }

/* alternating feature rows */
.landing .feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.landing .feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 4.5rem); }
.landing .feature-row.flip .f-copy { order: 2; }
.landing .f-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; max-width: 18ch; }
.landing .f-copy p { color: var(--ink-2); max-width: 46ch; }
.landing .f-copy p:last-child { margin-bottom: 0; }

/* receipt — restyled quiet */
.landing .receipt {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.4rem 1.45rem;
  font-family: var(--mono); font-size: .82rem;
  box-shadow: 0 18px 40px -24px rgba(10,10,10,.18);
  transform: none;
}
.landing .receipt::after { display: none; }
.landing .receipt-head {
  letter-spacing: .12em; font-size: .64rem; color: var(--mut);
  border-bottom: 1px dashed var(--line); padding-bottom: .6rem; margin: 0 0 .3rem;
}
.landing .receipt ul { list-style: none; margin: 0; padding: 0; }
.landing .receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px dotted var(--line); color: var(--ink-2); }
.landing .receipt li span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.landing .receipt-total {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: .6rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--ink-2);
  font-weight: 700; color: var(--live); font-size: .92rem;
}

/* recordings */
.landing .sample-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.landing .sample-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: none;
}
.landing .sample-tile strong { display: block; letter-spacing: -.01em; }
.landing .sample-tile .quote { color: var(--mut); font-size: .84rem; margin: .25rem 0 .75rem; }
.landing .sample-tile audio { width: 100%; }

/* steps */
.landing .step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.landing .step-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.35rem; background: var(--paper); }
.landing .step-card .k {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--live);
  display: block; margin-bottom: .8rem;
}
.landing .step-card strong { font-size: 1.02rem; letter-spacing: -.01em; display: block; }
.landing .step-card p { margin: .35rem 0 0; color: var(--ink-2); font-size: .92rem; }
.landing .step-note { color: var(--mut); font-size: .84rem; margin-top: 1.1rem; }

/* owner list — quiet checklist */
.landing .own-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem 2.4rem; margin-top: 1.8rem; }
.landing .own-item strong { display: block; letter-spacing: -.01em; margin-bottom: .3rem; }
.landing .own-item strong::before { content: "— "; color: var(--live); }
.landing .own-item p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.landing .own-item .code {
  font-family: var(--mono); font-size: .8em; background: var(--band);
  border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em;
}

/* FAQ — split layout */
.landing .faq-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.landing .faq-grid details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.landing .faq-grid details:first-of-type { border-top: 1px solid var(--line); }
.landing .faq-grid summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.landing .faq-grid summary::-webkit-details-marker { display: none; }
.landing .faq-grid summary::after { content: "+"; font-family: var(--mono); color: var(--mut); transition: transform .18s; flex-shrink: 0; }
.landing .faq-grid details[open] summary::after { transform: rotate(45deg); color: var(--live); }
.landing .faq-grid details p { margin: .7rem 0 .1rem; color: var(--ink-2); font-size: .93rem; max-width: 58ch; }
.landing .faq-grid details a { color: var(--live); font-weight: 600; }

/* pricing */
.landing .price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.8rem; align-items: stretch; }
.landing .price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem 1.5rem 1.7rem; position: relative; box-shadow: none;
  display: flex; flex-direction: column;
}
.landing .price-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: .1rem; }
.landing .plan-for { color: var(--mut); font-size: .85rem; margin: 0 0 1rem; font-style: normal; font-family: inherit; }
.landing .plan-price { margin: 0 0 1.1rem; color: var(--mut); font-size: .9rem; }
.landing .plan-price strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-family: inherit; }
.landing .price-card ul { margin: 0 0 1.3rem; padding: 0; list-style: none; }
.landing .price-card li { padding: .42rem 0; font-size: .9rem; color: var(--ink-2); border-bottom: 1px dotted var(--line); }
.landing .price-card li:last-child { border-bottom: 0; }
.landing .price-card .pill-btn { margin-top: auto; justify-content: center; }
/* featured plan inverts to night — the black pill, made a card */
.landing .price-card.featured { background: var(--night); border-color: var(--night); color: #d8d8d0; }
.landing .price-card.featured h4, .landing .price-card.featured .plan-price strong { color: #fff; }
.landing .price-card.featured li { color: #b9b9b0; border-bottom-color: #2c2c28; }
.landing .price-card.featured .plan-for { color: #8f8f86; }
.landing .price-card.featured .pick-tag {
  position: absolute; top: 1.35rem; right: 1.4rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--live); border: 1px solid rgba(230,67,12,.45); border-radius: 999px; padding: .3em .8em; margin: 0;
  background: transparent;
}
.landing .deal-note { color: var(--mut); font-size: .88rem; max-width: 68ch; margin-top: 1.5rem; }
.landing .deal-note b { color: var(--ink); }

/* closer band */
.landing .closer-band { background: var(--band); }
.landing .closer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.landing .closer-grid h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; max-width: 16ch; }
.landing .closer-grid p { color: var(--ink-2); max-width: 42ch; }

/* ---- footer — night, giant ghost wordmark ---------------------------------- */
.landing .site-foot {
  background: var(--night); color: #a8a8a0;
  padding: 3.2rem 0 0; position: relative; overflow: hidden;
}
.landing .foot-top {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; z-index: 1; font-size: .88rem;
}
.landing .foot-brand { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.03em; }
.landing .foot-brand em { font-style: normal; color: var(--live); }
.landing .foot-tag { margin-top: .3rem; font-size: .82rem; color: #6f6f67; }
.landing .foot-links { display: flex; gap: 2.6rem; }
.landing .foot-links div { display: grid; gap: .45rem; align-content: start; }
.landing .foot-links b {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: #6f6f67; font-weight: 600; margin-bottom: .25rem;
}
.landing .foot-links a { color: #c9c9c1; font-weight: 500; font-size: .86rem; }
.landing .foot-links a:hover { color: #fff; }
.landing .ghost-mark {
  font-weight: 800; letter-spacing: -.05em; line-height: .78;
  font-size: clamp(4.5rem, 17.5vw, 15rem);
  color: #171716; text-align: center; user-select: none; pointer-events: none;
  margin-top: 1.6rem; transform: translateY(12%);
}
.landing .foot-base {
  position: relative; z-index: 1;
  border-top: 1px solid #1e1e1c;
  padding: 1rem 0 1.2rem; font-size: .76rem; color: #6f6f67;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .landing .nav-center { display: none; }
  .landing .feature-row { grid-template-columns: 1fr; }
  .landing .feature-row.flip .f-copy { order: 0; }
  .landing .faq-grid { grid-template-columns: 1fr; }
  .landing .closer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .landing .hero-cta { flex-direction: column; align-items: stretch; padding: 0 1.2rem; }
  .landing .call-line b { flex-basis: 44px; }
  .landing .foot-links { gap: 1.8rem; }
}

/* a11y */
.landing :focus-visible { outline: 2.5px solid var(--live); outline-offset: 3px; border-radius: 6px; }
