/* iodata marketing site — shared styles (WEB Phase 3) */
:root {
  --brand: #0d5c63;
  --brand-dark: #094449;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.logo span { color: var(--ink); font-weight: 600; }

nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
nav a:hover, nav a.active { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); text-decoration: none; }

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}
.hero p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.hero-panel h3 { margin: 0 0 12px; font-size: 1rem; }
.hero-panel .panel-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.steps-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.steps-list li { margin-bottom: 8px; }
.steps-list code {
  font-size: 0.875rem;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-note {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-grid { align-items: stretch; }

.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #0f766e 100%);
  color: #fff;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band .sub { color: rgba(255,255,255,0.85); }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.card-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  margin: -4px 0 8px;
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.login-page { padding-top: 32px; }
.form-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.form-lead {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 24px;
  line-height: 1.55;
}
.form-label-muted {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}
.optional { font-weight: 400; color: var(--muted); }
.field-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: -8px 0 16px;
  line-height: 1.45;
}
.workspace-preview {
  font-size: 0.8125rem;
  color: var(--brand);
  margin: -8px 0 16px;
  min-height: 1.2em;
}
.workspace-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.workspace-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.workspace-chip:hover {
  border-color: var(--brand);
  background: #fff;
}
.workspace-chip-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.workspace-chip-url {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.btn-block { width: 100%; margin-top: 4px; }
.form-footnote {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.form-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.label-hint { font-weight: 500; color: #94a3b8; }
.form-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
}
.form-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.15);
}
.form-msg { font-size: 0.875rem; margin-top: 12px; min-height: 1.25em; }
.form-msg.error { color: #b91c1c; }
.form-msg.ok { color: #047857; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #14b8a6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  nav { gap: 12px; }
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .phase-journey-inner { grid-template-columns: 1fr; }
  .phase-step { min-height: auto; padding: 48px 24px; }
}

/* —— Home: scroll-driven lifecycle —— */
.page-home .site-footer { margin-top: 0; }

.home-intro {
  padding: 48px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.home-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 20ch;
  margin: 0 auto 16px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.home-intro .lead { margin: 0 auto 12px; max-width: 42rem; }
.scroll-hint { color: var(--muted); font-size: 0.875rem; margin: 24px 0 0; }

.phase-journey {
  background: var(--ink);
  color: #e2e8f0;
}
.phase-journey-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}
.phase-visual-column { position: relative; }
.phase-visual-sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.phase-progress {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.phase-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.phase-progress-bar {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, #14b8a6, #0d5c63);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.phase-visual-stack {
  position: relative;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}
.phase-visual {
  position: absolute;
  inset: 0;
  background-image: var(--phase-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.phase-visual--lifecycle {
  background-position: 50% 42%;
  background-repeat: no-repeat;
}
.phase-visual--feasibility {
  filter: saturate(0.35) brightness(1.08) contrast(0.92);
}
.phase-visual.is-active { opacity: 1; }
.phase-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.25) 0%, rgba(15,23,42,0.75) 100%);
}
.kpi-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  gap: 16px;
  padding: 24px;
  flex-wrap: wrap;
}
.kpi {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 120px;
}
.kpi-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.3;
}
.kpi-disclaimer-section {
  padding: 24px 0 8px;
  border-top: 1px solid var(--border, #e2e8f0);
}
.kpi-disclaimer {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted, #64748b);
  max-width: 52rem;
}

.phase-steps-column { background: #0f172a; }
.phase-step {
  min-height: 85vh;
  padding: 80px 48px 80px 32px;
  border-left: 3px solid transparent;
  opacity: 0.45;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}
.phase-step.is-active {
  opacity: 1;
  border-left-color: #14b8a6;
}
.phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #14b8a6;
  margin-bottom: 12px;
}
.phase-step h2 {
  font-size: 1.75rem;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.02em;
}
.phase-stakeholders {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 16px;
}
.phase-step > p:not(.phase-stakeholders) {
  color: #cbd5e1;
  margin: 0 0 16px;
  line-height: 1.65;
}
.phase-value-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #94a3b8;
  font-size: 0.9375rem;
}
.phase-value-list li { margin-bottom: 8px; }

.home-close { border-top: none; }

/* —— Product —— */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.problem-card .problem-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.problem-solution {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem !important;
  color: var(--ink) !important;
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.screenshot-block h3 { margin: 16px 0 8px; font-size: 1.0625rem; }
.screenshot-block p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.screenshot-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,23,42,0.08);
  background: #fff;
}
.mock-ui { font-size: 0.75rem; }
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--muted);
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mock-table { padding: 8px; }
.mock-row {
  display: grid;
  grid-template-columns: 1fr 2fr 0.5fr 0.8fr;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mock-row.mock-head { font-weight: 700; color: var(--muted); font-size: 0.6875rem; text-transform: uppercase; }
.mock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.6875rem;
  font-weight: 600;
}
.mock-badge.warn { background: #fef3c7; color: #b45309; }
.mock-thread { padding: 12px; }
.mock-msg {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  line-height: 1.45;
}
.mock-msg.reply { background: #ecfdf5; }
.mock-meta { color: var(--muted); font-size: 0.6875rem; }
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}
.mock-kpi-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.mock-kpi-n {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
}

/* —— Contact tiles —— */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-tile {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
a.contact-tile:hover {
  text-decoration: none;
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(13,92,99,0.1);
}
.contact-tile-icon { font-size: 1.75rem; margin-bottom: 8px; }
.contact-tile h3 { margin: 0 0 6px; }
.contact-tile p { margin: 0 0 auto; flex: 1; }
.contact-tile-action {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand);
}
.contact-tile-action.muted { color: var(--muted); font-weight: 500; }
.contact-tile-static { cursor: default; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  position: relative;
}
.pricing-card h3 { margin: 0; font-size: 1.25rem; }
.pricing-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.pricing-lead { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.pricing-drivers {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink);
}
.pricing-drivers li {
  margin-bottom: 6px;
  padding-left: 0;
}
.pricing-features {
  margin: 0;
  padding-left: 1.2rem;
  flex: 1;
  color: var(--ink);
  font-size: 0.9375rem;
}
.pricing-features li { margin-bottom: 8px; }
.pricing-note { margin: 0; font-size: 0.875rem; color: var(--muted); }
.pricing-card-featured {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(13, 92, 99, 0.12);
}
.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: rgba(13, 92, 99, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-faq {
  padding: 32px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.pricing-faq h2 { margin-top: 0; }
.pricing-disclaimer {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.pricing-hero h1 { max-width: 18ch; }
.pricing-section-head {
  margin-bottom: 20px;
}
.pricing-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.pricing-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.section-tight { padding-top: 8px; }

.pricing-dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}
.pricing-dim {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}
.pricing-dim-head {
  padding: 16px 18px;
  color: #fff;
}
.pricing-dim-users .pricing-dim-head {
  background: linear-gradient(135deg, #0d9488, #155e75);
}
.pricing-dim-projects .pricing-dim-head {
  background: linear-gradient(135deg, #334155, #0f172a);
}
.pricing-dim-value .pricing-dim-head {
  background: linear-gradient(135deg, #b45309, #44403c);
}
.pricing-dim-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  margin-bottom: 4px;
}
.pricing-dim-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}
.pricing-dim > p {
  margin: 0;
  padding: 16px 18px 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  flex: 1;
}
.pricing-dim-tag {
  display: block;
  padding: 0 18px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pricing-ai-disclaimer {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
  background: linear-gradient(90deg, #fffbeb, #f8fafc);
}
.pricing-ai-disclaimer h2 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  color: var(--ink);
}
.pricing-ai-disclaimer p {
  margin: 0;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
}

.team-placeholder { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px; }
.team-placeholder h3 { margin-top: 0; }

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-dims { grid-template-columns: 1fr; }
  .phase-journey-inner { grid-template-columns: 1fr; }
  .phase-visual-column {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 5;
  }
  .phase-visual-sticky { height: 42vh; padding: 12px 16px; }
  .phase-steps-column .phase-step {
    min-height: auto;
    padding: 32px 24px;
    border-left: none;
    border-top: 3px solid transparent;
  }
  .phase-step.is-active { border-top-color: #14b8a6; border-left-color: transparent; }
}
