/* tasteskill / landing.css · dealt direction "Clerk language" (reference: clerk.com)
   Light ground, near-black display type at 800, floating pill nav, product UI in
   bordered frames, full-bleed dark bands, one purple accent used sparingly. */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #101013;
  --muted: #63666d;
  --faint: #6f7278;
  --line: #e9e9ec;
  --line-deep: #d9d9de;

  --accent: #6c47ff;
  --accent-deep: #5b38e6;
  --accent-soft: #f2edff;
  --accent-line: #d9ccff;

  --dark: #0b0b0e;
  --dark-card: #141419;
  --dark-line: #26262d;
  --dark-ink: #f5f5f7;
  --dark-muted: #a4a6ad;

  --positive: #17803d;
  --positive-bg: #e5f6ec;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-head: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  --step-hero: clamp(2.9rem, 6vw, 5.5rem);
  --step-quote: clamp(2.4rem, 7vw, 5.5rem);

  --edge: clamp(20px, 6vw, 96px);
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-ui: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html, body { overflow-x: clip; }

/* reveal-on-view contract: .hg starts hidden, ui.js adds .in */
.hg { opacity: 0; transform: translateY(22px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); transition-delay: var(--d, 0ms); }
.hg.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hg { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- shared type ---------- */
.hero h1, .showcase h2, .pricing-sec h2, .lede h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.sub { color: var(--muted); font-size: var(--step-lead); line-height: 1.5; }

/* ---------- floating pill nav ---------- */
.bar {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1160px, calc(100% - 24px));
  display: flex; align-items: center; gap: 22px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 16, 19, 0.04), 0 8px 24px rgba(16, 16, 19, 0.05);
}
.wordmark { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.bar nav { display: flex; gap: 22px; margin: 0 auto; }
.bar nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color var(--t-ui) ease; }
.bar nav a:hover { color: var(--ink); }
.bar .signin { font-size: 15px; font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--surface); padding: 148px 0 96px; overflow: hidden; }
.shape { display: none; }
.hero .inner { max-width: 1160px; margin: 0 auto; padding: 0 var(--edge); position: relative; }
.hero h1 { font-size: var(--step-hero); max-width: 14ch; }
.hero .sub { max-width: 52ch; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}
.btn:hover { background: #26262b; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.on-field { background: var(--surface); color: var(--ink); border: 1px solid var(--line-deep); }
.btn.on-field:hover { background: var(--bg); }

.hero-artifact {
  position: absolute; right: var(--edge); bottom: -28px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px;
}
.hero-artifact .stars { display: flex; gap: 3px; color: var(--accent); }
.hero-artifact .stars svg { width: 15px; height: 15px; }
.hero-artifact .who { display: block; font-size: 12.5px; color: var(--faint); }
.hero-artifact .quote-line { font-weight: 600; font-size: 14px; }
@media (max-width: 960px) { .hero-artifact { position: static; margin-top: 40px; } }

/* ---------- showcase · the product frame ---------- */
.showcase { padding: 110px var(--edge); max-width: 1240px; margin: 0 auto; text-align: center; }
.showcase h2 { font-size: var(--step-head); }
.showcase .sub { max-width: 56ch; margin: 16px auto 0; }
.showcase .word { font-size: var(--step-quote); font-weight: 800; letter-spacing: -0.03em; margin-top: 40px; }
.showcase .readout { color: var(--muted); margin-top: 8px; font-size: 16px; }
.stage {
  margin: 44px auto 0; max-width: 980px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(36px, 7vw, 88px);
  display: grid; place-items: center;
}
.star-control { display: flex; gap: 10px; }
.star-control button {
  width: clamp(54px, 8vw, 76px); height: clamp(54px, 8vw, 76px);
  border: 1px solid var(--line-deep); border-radius: 16px; background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: transform 140ms var(--ease-out), border-color var(--t-ui) ease, color var(--t-ui) ease;
}
.star-control button svg { width: 45%; height: 45%; }
.star-control button:hover { border-color: var(--accent); color: var(--accent); }
.star-control button:active { transform: scale(0.94); }
.star-control button.dim { color: var(--line-deep); }

/* ---------- features · bordered cards with switches ---------- */
.features { padding: 40px var(--edge) 110px; max-width: 1240px; margin: 0 auto; }
.sec-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 40px; }
.sec-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sec-head h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; }
.features .band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 14px;
  transition: border-color var(--t-ui) ease, opacity var(--t-ui) ease;
}
.features .sentence { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; grid-column: 1; }
.features .consequence { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 64ch; }
.features .control-slot { grid-column: 2; grid-row: 1 / span 2; }
.features .band.on { background: var(--accent-soft); border-color: var(--line); }
.features .band:not(.on) { opacity: 0.68; }

.switch { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-deep); position: relative; cursor: pointer; transition: background-color var(--t-ui) ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- how it works · four bordered blocks ---------- */
.hiw-sec { padding: 0 var(--edge) 110px; max-width: 1240px; margin: 0 auto; }
.hiw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1160px; margin: 0 auto; }
.field-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.field-block h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.clause { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.submit-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: center; flex: 1; min-height: 152px; }
.submit-card .stars { display: flex; gap: 3px; color: var(--accent); }
.submit-card .stars svg { width: 15px; height: 15px; }
.submit-card .stars .dim { color: var(--line-deep); }
.ask { font-size: 14px; font-weight: 600; }
.ask.faint { color: var(--faint); font-weight: 400; }
.quote-line { font-size: 14.5px; line-height: 1.5; }
.quote-line.muted { color: var(--faint); }
.pill-approved { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--positive-bg); color: var(--positive); font-size: 12.5px; font-weight: 600; }
@media (max-width: 1080px) { .hiw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hiw { grid-template-columns: minmax(0, 1fr); } }

/* ---------- testimonial · the dark band ---------- */
.testimonial-sec { background: var(--dark); color: var(--dark-ink); padding: 120px var(--edge); text-align: center; }
.testimonial-sec h2 { font-size: 15px; font-weight: 500; color: var(--dark-muted); }
.quote-spread { margin-top: 34px; }
.qline { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.22em; font-size: var(--step-quote); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.qrow { margin-top: 30px; display: grid; gap: 2px; justify-items: center; }
.qrow .name { font-weight: 700; }
.qrow span:last-child { color: var(--dark-muted); font-size: 14.5px; }

/* ---------- pricing · two bordered plans ---------- */
.pricing-sec { padding: 110px var(--edge); max-width: 1240px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 960px; margin: 0 auto; }
.plan-head-slot { grid-column: 1 / -1; text-align: center; margin-bottom: 34px; }
.plan-head-slot h2 { font-size: var(--step-head); }
.plan-head-slot p { color: var(--muted); max-width: 52ch; margin: 14px auto 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); }
.plan-name { font-size: 15px; font-weight: 700; }
.plan.pro .plan-name { color: var(--accent-deep); }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-lines { margin: 22px 0 26px; display: grid; gap: 9px; color: var(--muted); font-size: 15px; }
.plan-note { color: var(--faint); font-size: 13.5px; margin-bottom: 26px; }
.stripe { margin-top: auto; }
.stripe a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.stripe a:hover { transform: translateY(-1px); }
.plan.free .stripe a { background: var(--ink); color: #fff; }
.plan.free .stripe a:hover { background: #26262b; }
.plan.pro .stripe a { background: var(--accent); color: #fff; }
.plan.pro .stripe a:hover { background: var(--accent-deep); }
@media (max-width: 780px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq · bordered index cards ---------- */
.faq-sec { padding: 0 var(--edge) 110px; max-width: 820px; margin: 0 auto; }
.faq-stack { display: grid; gap: 12px; }
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; }
.faq-card .tab { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 16px 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; color: var(--muted); transition: color var(--t-ui) ease; }
.faq-card .tab::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--faint); transition: transform var(--t-ui) var(--ease-out); }
.faq-card.open .tab { color: var(--ink); }
.faq-card.open .tab::after { transform: rotate(45deg); }
.faq-card .topicq, .faq-card .ans { display: none; }
.faq-card.open .topicq, .faq-card.open .ans { display: block; }
.faq-card .q { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.faq-card .ans { color: var(--muted); font-size: 15px; line-height: 1.6; padding: 0 0 20px; max-width: 60ch; }

/* ---------- cta · dark pre-footer with the open dialog ---------- */
.cta-sec { background: var(--dark); color: var(--dark-ink); padding: 110px var(--edge); }
.lede { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.lede h2 { font-size: var(--step-head); }
.lede p { color: var(--dark-muted); margin-top: 14px; font-size: 16.5px; line-height: 1.55; }
.create-dialog { max-width: 460px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 30px 28px; display: grid; gap: 16px; }
.dialog-title { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.dialog-sub { color: var(--muted); font-size: 14px; margin-top: -10px; }
.create-dialog .row { display: grid; gap: 7px; }
.create-dialog label { font-size: 13.5px; font-weight: 600; }
.create-dialog input, .create-dialog select {
  height: 44px; padding: 0 12px; border: 1px solid var(--line-deep); border-radius: 10px; background: var(--surface);
}
.create-dialog input:focus, .create-dialog select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.primary-btn { width: 100%; height: 46px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.primary-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 90px var(--edge) 36px; }
.mark-word { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.mark-large { display: flex; align-items: flex-end; margin-top: 18px; }
.mark-large .blk { display: inline-block; background: var(--ink); }
.mark-large .round { width: clamp(40px, 8vw, 84px); height: clamp(40px, 8vw, 84px); border-radius: 50%; background: var(--accent); }
.mark-large .tail { width: clamp(14px, 2.6vw, 26px); height: clamp(64px, 12vw, 130px); border-radius: 4px; margin-left: 10px; transform: skewX(-14deg); }
.foot-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 64px 0 56px; }
.foot-links h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.foot-links a { display: block; color: var(--muted); font-size: 14.5px; padding: 3px 0; transition: color var(--t-ui) ease; }
.foot-links a:hover { color: var(--ink); }
.foot-links p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 3px 0; }
.base-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; color: var(--faint); font-size: 13.5px; }
@media (max-width: 780px) { .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .bar { gap: 14px; padding: 10px 16px; }
  .bar nav { gap: 14px; margin: 0 0 0 auto; }
  .bar nav a:not(.nav-cta) { display: none; }
  .hero { padding: 128px 0 72px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .showcase, .features, .pricing-sec, .faq-sec, .cta-sec { padding-top: 72px; padding-bottom: 72px; }
  .features .band { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .features .control-slot { grid-column: 1; grid-row: auto; justify-self: start; }
  .testimonial-sec { padding: 84px var(--edge); }
}
