/* Callia landing - Stile editoriale italiano, palette avorio/carbone/ambra */

:root {
  --bg:           #F7F3EB;
  --bg-warm:      #EFE7D8;
  --ink:          #1C1A15;
  --ink-muted:    #5C574B;
  --ink-soft:     #8C8571;
  --accent:       #8A5A1F;
  --accent-warm:  #C18A3E;
  --accent-soft:  #E8CFA1;
  --border:       #D9CFB9;
  --border-soft:  #E6DEC9;
  --danger:       #A4352A;
  --success:      #4A6B3A;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:    1120px;
  --radius:       4px;
  --radius-lg:    8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  border-radius: var(--radius);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex; gap: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ========== HERO ========== */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.lede {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 40px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-foot {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ========== HERO CARD (call transcript) ========== */

.hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
}

.call-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px -20px rgba(28, 26, 21, 0.12);
  transform: rotate(-0.3deg);
}

.call-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.call-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.2); }
}

.call-status {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.call-transcript .line {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.call-transcript .line span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.call-transcript .caller {
  padding-left: 0;
  color: var(--ink-muted);
}

.call-transcript .callia {
  padding-left: 16px;
  border-left: 2px solid var(--accent-warm);
  color: var(--ink);
}

/* ========== SECTIONS ========== */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}

/* ========== FEATURES ========== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.feature {
  position: relative;
  padding-top: 8px;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--accent-warm);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  font-weight: 400;
}

.feature h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 440px;
}

/* ========== PRICING ========== */

.pricing {
  background: var(--bg-warm);
}

.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pricing-lede {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 32px;
}

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

.pricing-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 12px; height: 1px;
  background: var(--accent-warm);
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.price-number {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1;
}

.price-unit {
  font-size: 18px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 4px;
}

.price-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.5;
}

/* ========== FORM ========== */

.signup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

.field input {
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s;
}

.field input:hover {
  border-color: var(--ink-soft);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 31, 0.15);
}

.field input:disabled {
  background: var(--bg-warm);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.signup-foot {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.error-box {
  background: #F7E5E1;
  border: 1px solid #E5B9AE;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin: 0;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:disabled {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-warm);
}

.btn-large {
  height: 56px;
  font-size: 16px;
}

/* ========== FAQ ========== */

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item dt {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.3;
}

.faq-item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 720px;
}

/* ========== FOOTER ========== */

.site-footer {
  padding: 40px 0;
  background: var(--bg-warm);
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 24px;
  margin: 0;
}

.site-footer p { margin: 0; }

/* ========== DIALOG ========== */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 21, 0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}

.dialog-backdrop[hidden] {
  display: none !important;
}

.dialog {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
}

.dialog-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}

.dialog-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ========== SUCCESS / CANCEL PAGES ========== */

.centered-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
}

.centered-card {
  max-width: 560px;
  text-align: center;
}

.centered-card h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
}

.centered-card .intro {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}

.status-live .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
  text-align: left;
}

.info-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.info-block dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.info-block dd {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}

.dashboard-cta {
  margin-top: 32px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { padding-top: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-wrap { grid-template-columns: 1fr; gap: 48px; }
  .site-nav { display: none; }
  .hero { padding: 56px 0 56px; }
  .section { padding: 64px 0; }
  .info-grid { grid-template-columns: 1fr; }
  .centered-card h1 { font-size: 36px; }
}

@media (max-width: 500px) {
  .price-number { font-size: 48px; }
  .price-card { padding: 24px; }
  .section-title { font-size: 28px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .dialog { padding: 24px; }
}
