/* Offhook — página de presentación (offhook.ar). Mismo sistema de diseño que la app. */

:root {
  --surface-100: #F6F3EC;
  --surface-200: #FDFBF7;
  --line: #E3DDD1;
  --ink: #1F2A24;
  --ink-muted: #5B6560;
  --brand: #2F6B4F;
  --brand-soft: #DCE8DF;
  --on-brand: #FFFFFF;
  --accent: #E07A3F;
  --accent-ink: #A4461A;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: "Figtree", system-ui, sans-serif;
  --font-logo: "Fraunces", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #151B18;
    --surface-200: #1E2622;
    --line: #2F3833;
    --ink: #EEF1EC;
    --ink-muted: #A6B0AA;
    --brand: #6FBF95;
    --brand-soft: #233A2E;
    --on-brand: #151B18;
    --accent: #F0915A;
    --accent-ink: #F6A877;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--surface-100);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; }
h1 span { color: var(--brand); display: block; }
h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 750; margin-bottom: 28px; }
h3 { font-size: 21px; font-weight: 700; margin: 18px 0 8px; }

.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-muted); margin: 22px 0 32px; max-width: 34ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.lead.small { font-size: 19px; margin: 0; max-width: 40ch; }
.fine { color: var(--ink-muted); font-size: 15px; margin: 16px 0 0; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Barra superior ---------- */

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 24px var(--font-logo); color: var(--ink); }
.brand.small { font-size: 19px; gap: 8px; }
.enter {
  text-decoration: none; font-weight: 600; color: var(--brand);
  padding: 10px 18px; border-radius: 999px; background: var(--brand-soft);
}
.enter:hover { filter: brightness(1.04); }

/* ---------- Botones grandes (como en la app) ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.tile {
  min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 18px; border-radius: var(--radius-xl); font: 600 18px/1.25 var(--font); text-decoration: none;
}
.tile .ico { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tile svg, .note svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile.primary { background: var(--brand); color: var(--on-brand); }
.tile.primary .ico { background: rgba(255, 255, 255, .18); }
.tile.secondary { background: var(--brand-soft); color: var(--ink); }
.tile.secondary .ico { background: var(--surface-200); color: var(--brand); }
.tile:hover { filter: brightness(1.05); }

/* ---------- Presentación ---------- */

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 88px; }

.hero-demo { display: flex; flex-direction: column; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.phone { background: var(--surface-200); border-radius: 36px; padding: 18px 16px 22px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; }
.phone-head small { display: block; color: var(--ink-muted); font-size: 13px; }
.phone-head b { font-weight: 600; }
.avatar {
  width: 38px; height: 38px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.msgs { display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; padding: 10px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; max-width: 86%; }
.msg.in { align-self: flex-start; background: var(--surface-100); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--brand-soft); border-bottom-right-radius: 6px; }

.notes { display: grid; gap: 10px; }
.note {
  display: flex; align-items: center; gap: 14px; background: var(--surface-200);
  border-radius: var(--radius-lg); padding: 14px 18px;
}
.note b { display: block; font-weight: 600; }
.note small { color: var(--ink-muted); font-size: 14.5px; }
.dot { flex: none; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.dot.ok { background: var(--brand-soft); color: var(--brand); }
.dot.need { background: transparent; position: relative; }
.dot.need::after { content: ""; width: 14px; height: 14px; border-radius: 999px; background: var(--accent); }

/* ---------- Cómo funciona ---------- */

.band { background: var(--surface-200); padding: 80px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface-100); border-radius: var(--radius-lg); padding: 28px; }
.steps p { margin: 0; color: var(--ink-muted); }
.num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}

/* ---------- Confianza ---------- */

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-top: 96px; padding-bottom: 40px; align-items: start; }
.split h2 { margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding: 18px 20px 18px 62px; background: var(--surface-200);
  border-radius: var(--radius-lg); color: var(--ink-muted);
}
.checks b { color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Para quién ---------- */

.who { padding-top: 72px; padding-bottom: 24px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--brand-soft); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 500; }

/* ---------- Precio ---------- */

.price {
  margin-top: 72px; background: var(--surface-200); border-radius: 40px; padding: 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.price .tiles { width: 440px; }
.big { margin: 0 0 10px; font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* ---------- Preguntas ---------- */

.faq { padding-top: 96px; padding-bottom: 40px; }
.faq > * { max-width: 800px; }
details { background: var(--surface-200); border-radius: var(--radius-lg); margin-bottom: 10px; }
summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--brand); line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 24px 22px; color: var(--ink-muted); }

/* ---------- Pie ---------- */

.foot { padding-top: 56px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--ink-muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--brand); }
.foot p { margin: 0 0 0 auto; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }

/* ---------- Celular ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 36px; padding-bottom: 64px; }
  .hero-demo { justify-self: stretch; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; }
  .price { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 32px; }
  .price .tiles { width: auto; }
  .band { padding: 64px 0; }
  .faq, .who { padding-top: 72px; }
  .foot p { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .tile { min-height: 120px; font-size: 17px; padding: 16px; }
}
