:root {
  color-scheme: light;
  --background: 0 0% 100%;
  --foreground: 220 9% 20%;
  --card: 0 0% 100%;
  --card-foreground: 220 9% 20%;
  --muted: 220 20% 97%;
  --muted-foreground: 220 6% 46%;
  --secondary: 220 16% 96%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --primary: 217 89% 51%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 217 76% 45%;
  --accent-soft: 217 90% 96%;
  --ring: 217 89% 51%;
  --radius: 0.5rem;
  --shadow: 0 1px 3px hsl(220 9% 20% / 0.08), 0 12px 40px hsl(220 9% 20% / 0.08);
  --section-pad: clamp(48px, 8vw, 88px);
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Corin brand palette — landing page only */
.marketing-page {
  --brand-indigo-start: #4f46e5;
  --brand-indigo-end: #3a2fb0;
  --brand-amber-start: #fcd34d;
  --brand-amber-end: #f59e0b;
  --foreground: 243 43% 22%;
  --muted-foreground: 243 18% 42%;
  --muted: 243 45% 98%;
  --secondary: 243 35% 96%;
  --border: 243 22% 90%;
  --primary: 243 75% 59%;
  --primary-hover: 247 58% 44%;
  --primary-foreground: 0 0% 100%;
  --accent-soft: 243 75% 97%;
  --ring: 243 75% 59%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ——— Nav ——— */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 12px;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-ghost {
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--primary));
  font-weight: 500;
}

.nav-cta {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-cta:hover {
  background: hsl(var(--primary-hover));
}

/* ——— Hero ——— */

.marketing-hero {
  padding: var(--section-pad) clamp(16px, 4vw, 40px) 56px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, hsl(243 75% 59% / 0.08), transparent 55%),
    linear-gradient(180deg, hsl(243 75% 97%) 0%, hsl(var(--background)) 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: hsl(var(--primary));
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketing-page .hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber-start), var(--brand-amber-end));
  vertical-align: middle;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-subhead {
  max-width: 520px;
  margin: 20px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-cta,
.hero-cta-secondary {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
}

.hero-cta-secondary {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
}

.hero-checklist li::before {
  content: "✓ ";
  color: var(--brand-indigo-start);
  font-weight: 700;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-mock-spreadsheet,
.hero-mock-phone {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-mock-spreadsheet {
  width: 200px;
  padding: 12px;
}

.mock-bar {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: hsl(var(--secondary));
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.65rem;
  font-weight: 500;
}

.mock-row span {
  padding: 6px 4px;
  border-radius: 4px;
  background: hsl(var(--accent-soft));
  text-align: center;
}

.mock-row.faded span {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.hero-mock-arrow {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  font-weight: 700;
}

.hero-mock-phone {
  width: 160px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--brand-indigo-start), var(--brand-indigo-end));
}

.hero-mock-screen {
  padding: 10px;
  border-radius: 14px;
  background: white;
}

.hero-mock-header {
  height: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: hsl(var(--accent-soft));
}

.hero-mock-metric {
  height: 28px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, hsl(45 96% 88%), hsl(38 92% 82%));
}

.hero-mock-metric.wide {
  background: hsl(var(--accent-soft));
}

.hero-mock-list {
  height: 22px;
  margin-bottom: 5px;
  border-radius: 4px;
  background: hsl(var(--secondary));
}

.hero-mock-list.short {
  width: 70%;
}

/* ——— Trust strip ——— */

.trust-strip {
  padding: 28px clamp(16px, 4vw, 40px);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  text-align: center;
}

.trust-strip p {
  margin: 0 0 14px;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid hsl(var(--border));
  font-size: 0.82rem;
  font-weight: 500;
}

/* ——— Sections ——— */

.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(16px, 4vw, 40px);
}

.section-wrap.narrow {
  max-width: 720px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 12px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

/* ——— Feature tabs (Google Forms style) ——— */

.feature-tabs-section {
  background: hsl(var(--muted));
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.feature-tab {
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.feature-tab:hover,
.feature-tab.active {
  background: white;
  color: hsl(var(--primary));
  box-shadow: 0 1px 4px hsl(243 43% 22% / 0.08);
}

.marketing-page .feature-tab.active {
  background: linear-gradient(135deg, var(--brand-indigo-start), var(--brand-indigo-end));
  color: white;
}

.feature-panels {
  position: relative;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.feature-panel[hidden] {
  display: none;
}

.feature-panel-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 500;
}

.feature-panel-copy p {
  margin: 0 0 16px;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.feature-panel-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: hsl(var(--foreground));
}

.feature-panel-copy li {
  margin-bottom: 8px;
}

.feature-panel-art {
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 12px;
  background: hsl(var(--muted));
}

.art-card {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background: white;
  border: 1px solid hsl(var(--border));
}

.art-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.art-quote {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.art-field {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: white;
  border: 1px solid hsl(var(--border));
  font-weight: 500;
}

.art-field em {
  color: hsl(var(--primary));
  font-style: normal;
  font-size: 0.82rem;
}

.art-link {
  padding: 14px 20px;
  border-radius: 8px;
  background: white;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.95rem;
}

.art-avatars {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.art-avatars span {
  padding: 8px 12px;
  border-radius: 999px;
  background: hsl(var(--accent-soft));
  font-size: 0.78rem;
  font-weight: 500;
}

/* ——— Templates ——— */

.templates-section {
  border-top: 1px solid hsl(var(--border));
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.template-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: inherit;
}

.template-card:hover {
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow);
}

.template-icon {
  font-size: 1.5rem;
}

.template-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.template-card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.inline-cta {
  display: inline-block;
  margin-top: 16px;
  color: hsl(var(--primary));
  font-weight: 500;
}

.inline-cta:hover {
  text-decoration: underline;
}

/* ——— Demo (marketing) ——— */

.demo-section {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.demo-features {
  margin: 0 0 24px;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.demo-features strong {
  font-weight: 500;
}

.demo-phone {
  margin: 0 auto;
}

.demo-runtime {
  min-height: 520px;
}

.demo-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
}

.demo-tab {
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  font-weight: 500;
}

.demo-tab.active {
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
}

.marketing-page .demo-tab.active {
  background: linear-gradient(135deg, hsl(243 75% 94%), hsl(243 75% 90%));
  color: var(--brand-indigo-end);
}

.record-item.static {
  pointer-events: none;
}

/* ——— Build page ——— */

.build-page {
  background: hsl(var(--muted));
}

.build-shell {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 48px;
  align-items: start;
}

.build-sidebar {
  display: grid;
  gap: 20px;
}

.build-stepper {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-step {
  flex: 1;
  display: grid;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 10px;
  background: white;
  border: 1px solid hsl(var(--border));
  text-align: center;
}

.build-step.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
}

.build-step.done .step-index {
  background: hsl(var(--primary));
  color: white;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-radius: 999px;
  background: hsl(var(--secondary));
  font-size: 0.75rem;
  font-weight: 700;
}

.step-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.build-step.active .step-label {
  color: hsl(var(--primary));
}

.build-panel {
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.build-panel[hidden] {
  display: none;
}

.build-panel h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 500;
}

.panel-lead {
  margin: 0 0 20px;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.import-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  font-weight: 500;
}

.import-divider::before,
.import-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}

.csv-import-block {
  margin-bottom: 18px;
}

.csv-upload-button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px dashed hsl(var(--primary));
  border-radius: var(--radius);
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
  font-weight: 500;
}

.csv-upload-button:hover {
  background: hsl(var(--accent-soft));
  border-style: solid;
}

.import-hint {
  margin: 8px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.45;
}

.tracker-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.tracker-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--secondary));
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.tracker-card:hover,
.tracker-card:focus-visible {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
}

.tracker-card-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
  box-shadow: var(--shadow);
}

.tracker-icon {
  font-size: 1.35rem;
  line-height: 1.2;
}

.tracker-card-body {
  display: grid;
  gap: 2px;
}

.tracker-card-body strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.tracker-card-body span {
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.4;
}

.tracker-import-block {
  margin-bottom: 18px;
  padding-top: 4px;
}

.selected-tracker-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
  font-size: 0.88rem;
  font-weight: 500;
}

.import-section-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.import-section-lead {
  margin: 0 0 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  line-height: 1.45;
}

.sample-data-button {
  width: 100%;
}

.builder-advanced {
  margin: 8px 0 4px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 10px 12px;
  background: hsl(var(--secondary));
}

.builder-advanced summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.builder-advanced[open] summary {
  margin-bottom: 12px;
  color: hsl(var(--foreground));
}

.mapping-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--accent-soft));
}

.mapping-summary-lead {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.mapping-summary-detail {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

.teammate-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.teammate-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}

.dialog-open-link {
  display: inline-block;
  margin: 8px 0 16px;
  font-size: 0.88rem;
}

.sheets-import-block {
  margin-bottom: 18px;
}

.sheets-url-input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font: inherit;
}

.sheets-import-button {
  width: 100%;
  margin-top: 8px;
}

.publish-card {
  padding: 20px;
  border-radius: 10px;
  background: hsl(var(--muted));
}

.publish-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.publish-card p {
  margin: 0 0 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.publish-card .primary-button {
  width: 100%;
  margin-bottom: 8px;
}

.access-mode-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.access-mode-fieldset .prompt-label {
  margin-bottom: 10px;
}

.access-mode-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  cursor: pointer;
}

.access-mode-option:last-child {
  margin-bottom: 0;
}

.access-mode-option input {
  margin-top: 3px;
  flex-shrink: 0;
}

.access-mode-option strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
}

.access-mode-option small {
  display: block;
  margin-top: 2px;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  line-height: 1.4;
}

.access-mode-warning {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid hsl(38 92% 50% / 0.35);
  background: hsl(48 100% 96%);
  color: hsl(32 80% 28%);
  font-size: 0.82rem;
  line-height: 1.45;
}

.publish-privacy-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.45;
}

.published-tools-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
}

.published-tools-heading h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.published-tools-note {
  margin: 0 0 12px;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
}

.published-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.published-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
}

.published-tool-meta {
  min-width: 0;
}

.published-tool-meta strong {
  display: block;
  font-size: 0.92rem;
}

.published-tool-meta span {
  display: block;
  margin-top: 2px;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.published-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  flex-shrink: 0;
}

.published-tool-remove {
  color: hsl(var(--muted-foreground));
}

.confirm-help-callout {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid hsl(243 75% 59% / 0.2);
  background: hsl(243 75% 97%);
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  line-height: 1.55;
}

.confirm-help-callout strong {
  font-weight: 500;
}

.confirm-help-callout strong + strong {
  margin-left: 12px;
}

.save-tools-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
}

.save-tools-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.save-tools-saved-msg {
  margin: 0 0 4px;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.tools-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(16px, 4vw, 40px);
}

.tools-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
}

.tools-lead {
  margin: 0 0 28px;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.tools-signin-panel,
.tools-list-panel {
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.tools-signin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tools-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tools-signed-in-as {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
}

.tools-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tools-account-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
}

.tools-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.tool-refine-panel {
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed hsl(var(--border));
}

.tool-refine-hint {
  margin: 4px 0 10px;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.45;
}

.tool-refine-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-refine-form input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.tool-refine-note {
  margin: 8px 0 0;
}

.workflow-chip-gated {
  opacity: 0.55;
  cursor: not-allowed;
}

.access-mode-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  font-size: 0.88rem;
  line-height: 1.5;
}

.template-card-gated {
  position: relative;
  opacity: 0.72;
  cursor: default;
}

.template-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: hsl(243 75% 97%);
  color: var(--brand-indigo-end, #3a2fb0);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-tag-soon {
  opacity: 0.65;
}

.pricing-section {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
}

.pricing-card {
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.pricing-card p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: hsl(var(--foreground));
}

.pricing-card p:last-child {
  margin-bottom: 0;
}

.tools-account-meta {
  min-width: 0;
}

.tools-account-meta strong {
  display: block;
  font-size: 0.95rem;
}

.tools-account-meta span {
  display: block;
  margin-top: 2px;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

.tools-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  flex-shrink: 0;
}

.beta-pricing-note {
  margin: 16px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  text-align: center;
}

.hero-pricing-note {
  margin: 14px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
}

.build-preview {
  position: sticky;
  top: 80px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(400px, 100%);
}

.preview-open-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: white;
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 500;
}

.preview-open-button:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
}

/* ——— Full screen preview route ——— */

.preview-fullscreen-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: hsl(var(--background));
}

.preview-fullscreen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(12px, 4vw, 20px);
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.96);
  backdrop-filter: blur(8px);
}

.preview-back-link {
  display: inline-flex;
  align-items: center;
  color: hsl(var(--primary));
  font-size: 0.9rem;
  font-weight: 500;
}

.preview-fullscreen-title {
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  font-weight: 500;
}

.preview-fullscreen-main {
  display: grid;
  place-items: stretch;
  min-height: calc(100dvh - 52px);
  padding: 0;
}

.preview-fullscreen-runtime {
  min-height: calc(100dvh - 52px);
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.preview-fullscreen-runtime .runtime-view {
  flex: 1;
  overflow: auto;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.preview-fullscreen-note {
  padding: 24px;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.preview-fullscreen-note a {
  color: hsl(var(--primary));
  font-weight: 500;
}

.share-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.share-link-row input {
  flex: 1;
  min-width: 0;
}

.auth-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: hsl(220 9% 20% / 0.45);
}

.auth-dialog-inner {
  padding: 28px 24px 24px;
}

.auth-dialog-inner h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 500;
}

.auth-dialog-inner > p {
  margin: 0 0 18px;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: hsl(var(--secondary));
  font-size: 1.4rem;
  line-height: 1;
}

.dialog-submit {
  width: 100%;
  margin-top: 12px;
}

.dialog-note {
  margin: 14px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-dialog-inner {
  position: relative;
}

.workspace,
.pane-heading,
.button-row,
.runtime-header,
.tabs,
.record-actions,
.form-actions,
.metric-grid,
.field-row,
.detail-line {
  display: flex;
}

.workspace {
  align-items: stretch;
  gap: 24px;
}

.builder-pane,
.preview-pane {
  min-width: 0;
}

.builder-pane {
  flex: 0 0 min(400px, 100%);
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.preview-pane {
  flex: 1;
  display: grid;
  place-items: start center;
  gap: 10px;
}

.preview-label {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pane-heading,
.runtime-header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pane-heading h2,
.runtime-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.compact {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 3px;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.prompt-label {
  display: block;
  margin: 16px 0 8px;
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
  font-weight: 500;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

textarea {
  resize: vertical;
  min-height: 130px;
  padding: 12px;
  line-height: 1.45;
}

.button-row {
  gap: 10px;
  margin: 14px 0 18px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.workflow-chip {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 0.82rem;
  font-weight: 500;
}

.workflow-chip:hover,
.workflow-chip:focus-visible {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
}

.transform-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
}

.transform-strip span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: calc(var(--radius) - 2px);
  background: white;
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
}

.transform-strip strong {
  color: hsl(var(--muted-foreground));
}

.primary-button,
.secondary-button,
.share-button,
.text-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: white;
  color: hsl(var(--foreground));
  font-weight: 500;
}

.primary-button {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: white;
}

.primary-button:hover:not(:disabled) {
  background: hsl(var(--primary-hover));
}

.marketing-page .nav-cta,
.marketing-page .hero-cta,
.marketing-page .primary-button,
.marketing-page .concierge-actions .primary-button {
  border: none;
  background: linear-gradient(135deg, var(--brand-indigo-start) 0%, var(--brand-indigo-end) 100%);
  color: white;
  box-shadow: 0 8px 24px hsl(243 75% 59% / 0.22);
}

.marketing-page .nav-cta:hover,
.marketing-page .hero-cta:hover,
.marketing-page .primary-button:hover:not(:disabled),
.marketing-page .concierge-actions .primary-button:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, var(--brand-indigo-start) 0%, var(--brand-indigo-end) 100%);
}

.marketing-page .nav-ghost {
  color: var(--brand-indigo-start);
}

.marketing-page .hero-cta-secondary:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.marketing-page .trust-tags span {
  border-color: hsl(243 22% 88%);
}

.marketing-page .compare-card.highlight {
  border-color: var(--brand-indigo-start);
  background: linear-gradient(180deg, hsl(243 75% 98%), hsl(243 75% 96%));
}

.marketing-page .compare-list.good li::before {
  color: var(--brand-indigo-start);
}

.marketing-page .faq-item summary::after {
  color: var(--brand-indigo-start);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button-row .primary-button,
.button-row .secondary-button {
  flex: 1;
}

.text-button {
  color: hsl(var(--primary));
  border: none;
  background: transparent;
}

.schema-panel {
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
}

.field-list {
  display: grid;
  gap: 8px;
}

.field-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
}

.field-row-main {
  flex: 1;
  min-width: 0;
}

.field-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.field-name-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  font: inherit;
  font-weight: 500;
}

.field-row-hint,
.field-row strong,
.field-row span {
  display: block;
}

.field-row-hint,
.field-row span {
  margin-top: 4px;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

.field-row select {
  width: min(140px, 34vw);
  min-height: 40px;
  padding: 0 8px;
}

.field-remove-button {
  white-space: nowrap;
  font-size: 0.82rem;
}

.field-remove-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.list-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.list-toolbar .search-input {
  flex: 1;
  min-width: 0;
}

.list-export-button {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 8px 10px;
}

.calendar-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calendar-week-label {
  flex: 1;
  min-width: 140px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.calendar-nav-button,
.calendar-today-button {
  font-size: 0.82rem;
  padding: 6px 10px;
}

.calendar-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-day {
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 10px 12px;
  background: hsl(var(--muted) / 0.25);
}

.calendar-day-today {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.06);
}

.calendar-day-heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.calendar-day-empty {
  margin: 0;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
}

.calendar-record-item {
  width: 100%;
  text-align: left;
  margin-top: 6px;
}

.calendar-unscheduled {
  border: 1px dashed hsl(var(--border));
  border-radius: 10px;
  padding: 10px 12px;
}

/* ——— Phone preview / runtime ——— */

.phone-frame {
  width: min(400px, 100%);
  min-height: 720px;
  padding: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 28px;
  background: hsl(220 9% 20%);
  box-shadow: var(--shadow);
}

.app-runtime {
  min-height: 696px;
  overflow: hidden;
  border-radius: 18px;
  background: white;
}

.runtime-header {
  padding: 18px 16px 12px;
}

.runtime-header > div {
  min-width: 0;
}

.runtime-header h2 {
  overflow-wrap: anywhere;
}

.share-button {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: white;
}

.tabs {
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 0 12px 12px;
  overflow-x: auto;
}

.tab-button {
  flex: 0 0 auto;
  min-width: 80px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: white;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.tab-button[aria-selected="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
  color: hsl(var(--primary));
}

.runtime-view {
  padding: 14px;
}

.metric-grid {
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  flex: 1;
  min-height: 80px;
  padding: 12px;
  border-radius: 8px;
  background: hsl(var(--accent-soft));
}

.metric:nth-child(2) {
  background: hsl(41 75% 92%);
}

.metric:nth-child(3) {
  background: hsl(11 47% 93%);
}

.metric span {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.search-input {
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 12px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.list-group-heading {
  margin: 8px 0 4px;
  padding: 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.list-group-heading:first-child {
  margin-top: 0;
}

.record-item {
  width: 100%;
  padding: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: white;
  text-align: left;
}

.record-item strong,
.record-item span {
  display: block;
}

.record-item span {
  margin-top: 4px;
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
}

.record-actions,
.form-actions {
  gap: 10px;
  margin-top: 14px;
}

.record-actions button,
.form-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: white;
  font-weight: 500;
}

.form-actions button:first-child {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: white;
}

.detail-line {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid hsl(var(--border));
}

.detail-line span {
  color: hsl(var(--muted-foreground));
}

.runtime-form {
  display: grid;
  gap: 12px;
}

.runtime-form label {
  display: grid;
  gap: 6px;
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
  font-weight: 500;
}

.runtime-form input,
.runtime-form select,
.runtime-form textarea {
  min-height: 44px;
  padding: 0 10px;
}

.runtime-form textarea {
  min-height: 90px;
  padding-top: 10px;
}

.runtime-form .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 10px -14px -14px;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.96);
}

.empty-state {
  padding: 26px 14px;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* ——— Compare ——— */

.compare-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.compare-grid article h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 400;
}

.compare-grid article > p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.compare-card {
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
}

.compare-card.highlight {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent-soft));
}

.compare-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 500;
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.9rem;
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list.bad li::before {
  content: "✕ ";
  color: hsl(0 60% 50%);
}

.compare-list.good li::before {
  content: "✓ ";
  color: hsl(var(--primary));
  font-weight: 700;
}

/* ——— Testimonials ——— */

.testimonials-section {
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
}

.section-lead {
  max-width: 42rem;
  margin: 8px auto 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.55;
}

.pilot-spotlight {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.pilot-spotlight p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pilot-spotlight footer {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.pilot-spotlight footer strong {
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.use-case-card {
  padding: 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: white;
}

.use-case-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.use-case-card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
  line-height: 1.45;
}

.pilot-cta {
  margin: 24px 0 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.pilot-cta a {
  color: hsl(var(--primary));
  font-weight: 500;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
}

.testimonial-grid p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.testimonial-grid footer {
  margin-top: 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
}

/* ——— FAQ ——— */

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: hsl(var(--primary));
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ——— Final CTA ——— */

.concierge-section {
  padding: var(--section-pad) clamp(16px, 4vw, 40px);
  border-top: 1px solid hsl(var(--border));
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, hsl(243 75% 59% / 0.06), transparent 50%),
    hsl(var(--accent-soft));
}

.concierge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.concierge-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
}

.concierge-copy p:last-child {
  margin: 0;
  max-width: 520px;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.concierge-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: min(100%, 240px);
}

.concierge-actions .primary-button,
.concierge-actions .secondary-button {
  text-align: center;
}

.final-cta {
  padding: var(--section-pad) clamp(16px, 4vw, 40px);
  background: linear-gradient(135deg, var(--brand-indigo-start) 0%, var(--brand-indigo-end) 100%);
  color: white;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
}

.final-cta p {
  margin: 0;
  color: hsl(0 0% 100% / 0.72);
  max-width: 520px;
}

.final-cta-button {
  flex-shrink: 0;
  min-width: 200px;
  border: none;
  background: white;
  color: var(--brand-indigo-end);
}

.final-cta-button:hover {
  background: hsl(0 0% 96%);
}

/* ——— Footer ——— */

.site-footer {
  padding: 32px clamp(16px, 4vw, 40px);
  border-top: 1px solid hsl(var(--border));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-inner,
  .feature-panel,
  .compare-grid,
  .testimonial-grid,
  .use-case-grid,
  .demo-layout,
  .build-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .build-preview {
    position: static;
  }

  .build-page .preview-toolbar {
    width: 100%;
  }

  .build-page .phone-frame {
    width: 100%;
    min-height: min(72dvh, 720px);
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .build-page .app-runtime {
    min-height: min(72dvh, 696px);
    border: 1px solid hsl(var(--border));
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .build-stepper {
    flex-direction: column;
  }

  .workspace {
    display: grid;
  }

  .builder-pane {
    flex-basis: auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .build-shell {
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }

  .build-sidebar {
    padding: 0 14px;
  }

  .build-page .preview-pane {
    padding: 0;
    gap: 0;
  }

  .build-page .preview-toolbar {
    padding: 10px 14px 0;
  }

  .build-page .phone-frame {
    min-height: 78dvh;
    border-radius: 0;
  }

  .build-page .app-runtime {
    min-height: 78dvh;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .nav-ghost {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
  }

  .button-row,
  .metric-grid {
    display: grid;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .transform-strip {
    grid-template-columns: 1fr;
  }

  .transform-strip strong {
    display: none;
  }

  .field-row {
    display: grid;
    align-items: stretch;
    gap: 10px;
  }

  .field-row-actions {
    flex-wrap: wrap;
  }

  .field-row select {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .published-tool-item {
    flex-direction: column;
    align-items: stretch;
  }

  .published-tool-actions {
    justify-content: flex-start;
  }

  .final-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .concierge-inner {
    flex-direction: column;
    text-align: center;
  }

  .concierge-actions {
    width: 100%;
  }

  .final-cta-button {
    width: 100%;
  }

  .footer-links {
    margin-left: 0;
  }
}
