/* ============================================================
   Subpage styles — features / solutions / services
   Extends styles.css
   ============================================================ */

/* Hero */
.p-hero { padding: 170px 0 90px; }
.p-hero-title { font-size: clamp(36px, 5.2vw, 66px); max-width: 860px; }
.p-hero-sub { color: var(--ink-dim); font-size: clamp(15px, 1.4vw, 18px); margin: 24px 0 34px; max-width: 620px; }
.p-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.p-hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.p-hero-badges span { font-size: 13px; color: #8d8781; display: inline-flex; align-items: center; gap: 7px; }
.p-hero-badges span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

/* Steps light card */
.steps-card { padding: 24px 10px; }
.steps-inner {
  background: var(--card); color: #21201e;
  border-radius: var(--radius-lg);
  width: min(1400px, 100%); margin: 0 auto;
  padding: clamp(36px, 5vw, 70px);
}
.steps-inner .eyebrow { color: var(--coral-deep); }
.steps-inner h2 { color: #191817; max-width: 700px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.step {
  background: #e3e0db; border: 1px solid #d6d2cc; border-radius: 14px;
  padding: 22px; min-height: 180px;
  display: flex; flex-direction: column;
}
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--coral-deep); margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 500; color: #23211f; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: #6c6862; line-height: 1.5; }

/* Numbered sections */
.num-section { padding: 110px 0; }
.num-inner {
  width: min(1180px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.num-section:nth-of-type(even) .num-inner .num-visual { order: -1; }
.num-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; display: block; }
.num-copy h2 { font-size: clamp(26px, 3.4vw, 42px); }
.num-copy p { color: var(--ink-dim); margin-top: 18px; max-width: 480px; }

/* Mockup cards */
.mock {
  background: #f6f4f1; color: #23211f; border-radius: 22px;
  padding: 22px; max-width: 400px; margin: 0 auto;
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
}
.mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e4e0da; }
.mock-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; }
.mock-head strong { font-size: 13.5px; font-weight: 500; display: block; }
.mock-head small { color: #8b857e; font-size: 11px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eceae5; font-size: 13px; }
.mock-row:last-child { border-bottom: none; }
.mock-row strong { font-weight: 500; }
.mock-row small { display: block; color: #9b958d; font-size: 11px; }
.mock .tag { font-size: 10px; padding: 3px 9px; border-radius: 20px; }
.mock-big { font-size: 44px; letter-spacing: -0.03em; padding: 18px 0 6px; }
.mock-big small { font-size: 13px; color: #8b857e; display: block; letter-spacing: 0; }
.mock-cta { width: 100%; margin-top: 14px; background: var(--coral); color: #fff; padding: 11px; border-radius: 12px; font-size: 13px; text-align: center; }

/* Stat + quote */
.stat-quote { padding: 60px 0 120px; text-align: center; }
.sq-num { font-size: clamp(60px, 9vw, 120px); letter-spacing: -0.04em; color: var(--coral); }
.sq-label { color: var(--ink-dim); margin-top: 4px; }
.sq-quote { font-size: clamp(19px, 2.2vw, 26px); max-width: 720px; margin: 60px auto 18px; line-height: 1.45; }
.sq-author { color: var(--ink-dim); font-size: 14px; }

/* Final CTA (page version) */
.p-cta { padding: 100px 0 130px; text-align: center; }
.p-cta h2 { font-size: clamp(32px, 4.6vw, 58px); max-width: 760px; margin: 0 auto; }
.p-cta .btn { margin-top: 36px; }
.p-cta-note { color: #8d8781; font-size: 13px; margin-top: 18px; }

/* Mega menu */
.nav-mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(920px, 92vw);
  background: #201d1b; border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 28px;
  display: none; grid-template-columns: repeat(4, 1fr); gap: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.nav-item:hover .nav-mega { display: grid; }
.mega-col h5 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #7c766f; font-weight: 500; margin-bottom: 14px;
}
.mega-col a { display: block; padding: 7px 0; }
.mega-col a strong { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink); }
.mega-col a small { display: block; font-size: 11.5px; color: #8d8781; margin-top: 1px; line-height: 1.35; }
.mega-col a:hover strong { color: var(--coral); }

/* Contact page */
.contact-grid {
  width: min(1080px, 92vw); margin: 0 auto; padding: 40px 0 120px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
}
.contact-info h2 { font-size: clamp(30px, 3.6vw, 46px); }
.contact-info p { color: var(--ink-dim); margin: 20px 0 30px; }
.contact-ways { display: flex; flex-direction: column; gap: 14px; }
.contact-ways a {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 16px 18px;
  transition: .2s;
}
.contact-ways a:hover { border-color: var(--coral); }
.contact-ways strong { display: block; font-size: 14px; font-weight: 500; }
.contact-ways small { color: #8d8781; font-size: 12.5px; }
.contact-form {
  background: var(--card); color: #23211f; border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
}
.contact-form h3 { font-size: 20px; font-weight: 500; margin-bottom: 22px; }
.cf-field { margin-bottom: 16px; }
.cf-field label { display: block; font-size: 12.5px; color: #6c6862; margin-bottom: 6px; }
.cf-field input, .cf-field textarea {
  width: 100%; border: 1px solid #d6d2cc; border-radius: 10px;
  background: #fff; padding: 12px 14px; font-family: inherit; font-size: 14px;
}
.cf-field input:focus, .cf-field textarea:focus { outline: 2px solid var(--coral); border-color: transparent; }
.contact-form .btn { width: 100%; border: none; cursor: pointer; }

/* Timeline (nosotros) — scroll-driven story rail */
.timeline { position: relative; width: min(1000px, 92vw); margin: 0 auto; padding: 46px 0 70px; }
.tl-rail {
  position: absolute; left: 50%; top: 26px; bottom: 96px; width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.09); border-radius: 2px;
}
.tl-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--coral), #f2b199);
  border-radius: 2px; box-shadow: 0 0 16px rgba(226,114,80,.45);
}
.tl-item { position: relative; width: 50%; padding-bottom: 46px; }
.tl-item:nth-of-type(odd) { padding-right: 52px; text-align: right; }
.tl-item:nth-of-type(even) { margin-left: 50%; padding-left: 52px; }
.tl-dot {
  position: absolute; top: 28px; width: 13px; height: 13px; border-radius: 50%; z-index: 2;
  background: #14100e; border: 2px solid rgba(255,255,255,.20);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.tl-item:nth-of-type(odd) .tl-dot { right: -6.5px; }
.tl-item:nth-of-type(even) .tl-dot { left: -6.5px; }
.tl-item.lit .tl-dot {
  background: var(--coral); border-color: var(--coral); transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(226,114,80,.14), 0 0 20px rgba(226,114,80,.55);
}
.tl-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  background: rgba(255,255,255,.022); padding: 22px 24px;
  transition: border-color .4s ease, background .4s ease, transform .25s ease;
}
.tl-item.lit .tl-card { border-color: rgba(226,114,80,.30); background: rgba(226,114,80,.045); }
.tl-card:hover { transform: translateY(-3px); border-color: rgba(226,114,80,.5); }
.tl-year {
  display: block; font-family: var(--font-mono); font-size: 26px; line-height: 1;
  color: rgba(255,255,255,.22); margin-bottom: 12px; transition: color .4s ease;
}
.tl-item.lit .tl-year { color: var(--coral); }
.tl-item h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.tl-item p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
/* reveal: each entry slides in from its own side of the rail */
.tl-item:nth-of-type(odd).reveal { transform: translate(-26px, 14px); }
.tl-item:nth-of-type(even).reveal { transform: translate(26px, 14px); }
.tl-item.reveal.in { transform: none; }

@media (max-width: 820px) {
  .timeline { width: 92vw; padding: 26px 0 40px; }
  .tl-rail { left: 7px; margin-left: 0; bottom: 70px; top: 20px; }
  .tl-item,
  .tl-item:nth-of-type(odd),
  .tl-item:nth-of-type(even) {
    width: 100%; margin-left: 0; padding: 0 0 30px 38px; text-align: left;
  }
  .tl-item:nth-of-type(odd) .tl-dot,
  .tl-item:nth-of-type(even) .tl-dot { left: 1px; right: auto; top: 24px; }
  .tl-item:nth-of-type(odd).reveal,
  .tl-item:nth-of-type(even).reveal { transform: translate(0, 18px); }
  .tl-item.reveal.in { transform: none; }
  .tl-card { padding: 18px 18px; }
  .tl-year { font-size: 22px; margin-bottom: 9px; }
  .tl-item h3 { font-size: 18px; }
}

/* Values grid */
.values-grid { width: min(1180px, 92vw); margin: 0 auto 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-md); padding: 26px; }
.value-card .vc-num { font-family: var(--font-mono); font-size: 12px; color: var(--coral); }
.value-card h3 { font-size: 17px; font-weight: 500; margin: 14px 0 8px; }
.value-card p { color: var(--ink-dim); font-size: 14px; }

/* Industries grid */
.ind-grid { width: min(1180px, 92vw); margin: 50px auto 120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ind-card {
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.ind-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.ind-card .ic-emoji { font-size: 24px; }
.ind-card strong { font-weight: 500; font-size: 15px; }
.ind-card small { color: #8d8781; font-size: 12.5px; }

@media (max-width: 960px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .num-inner { grid-template-columns: 1fr; gap: 40px; }
  .num-section:nth-of-type(even) .num-inner .num-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Feature pages: 3-benefit grid + "Todo incluido" strip ===== */
.steps-grid.three { grid-template-columns: repeat(3, 1fr); }

.rel-strip { padding: 90px 0 10px; }
.rel-inner { width: min(1180px, 92vw); margin: 0 auto; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
a.rel-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md); padding: 20px 22px;
  transition: border-color .25s ease, transform .25s ease;
}
a.rel-card:hover { border-color: rgba(240,120,90,.5); transform: translateY(-3px); }
.rel-card svg { color: var(--coral); flex: none; margin-top: 3px; }
.rel-card strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.rel-card small { display: block; color: #8d8781; font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.rel-more { margin-top: 24px; }
.rel-more a { color: var(--coral); font-size: 14px; }
.rel-more a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .steps-grid.three { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel-strip { padding-top: 70px; }
}

/* ===== Diseño Web: real-work samples (desktop + tablet + phone clusters) ===== */
.ws-section { padding: 90px 0 40px; }
.ws-section .light-card-inner { padding-bottom: 20px; }
.ws-intro { max-width: 760px; margin-bottom: 30px; }
.ws-lead { color: #5b5651; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; margin-top: 16px; }
.ws-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: 56px 0; border-top: 1px solid rgba(0,0,0,.07);
}
.ws-row.flip .ws-copy { order: 2; }
.ws-row.flip .ws-wrap { order: 1; }
.ws-copy h3 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 400; color: #131110; margin: 0 0 12px; letter-spacing: -.01em; }
.ws-copy p { color: #5b5651; font-size: clamp(15px, 1.35vw, 17.5px); line-height: 1.7; max-width: 460px; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.ws-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #131110; background: #fff; border: 1px solid #e2ded9; border-radius: 999px; padding: 7px 13px; }
.ws-tags svg { color: var(--coral); }

.ws-wrap { display: flex; justify-content: center; perspective: 1700px; min-width: 0; }
/* --s drives both the layout box and the scale, so the row never keeps dead space below a shrunk cluster */
.ws-slot { --s: 1; width: calc(560px * var(--s)); height: calc(430px * var(--s)); position: relative; flex: none; }
.ws-stage { position: absolute; top: 0; left: 0; width: 560px; height: 430px; transform: scale(var(--s)); transform-origin: top left; }
.ws-desktop { position: absolute; top: 0; left: 8px; width: 540px; z-index: 1; background: #0d0c0c; border-radius: 14px; padding: 7px; box-shadow: 0 40px 80px rgba(16,24,40,.30); border: 1px solid rgba(255,255,255,.10); }
.ws-bar { background: #f3f4f6; padding: 7px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(0,0,0,.08); border-radius: 9px 9px 0 0; }
.ws-bar i { width: 9px; height: 9px; border-radius: 50%; }
.ws-bar i:nth-child(1) { background: #FF5F57; } .ws-bar i:nth-child(2) { background: #FEBC2E; } .ws-bar i:nth-child(3) { background: #28C840; }
.ws-bar span { flex: 1; background: #fff; border-radius: 5px; padding: 3px 11px; font-size: 10px; color: #9ca3af; border: 1px solid rgba(0,0,0,.08); }
.ws-shot { height: 300px; overflow: hidden; background: #fff; border-radius: 0 0 9px 9px; }
.ws-shot img { width: 100%; display: block; pointer-events: none; }

.ws-tablet { position: absolute; bottom: 0; right: -4px; z-index: 3; width: 344px; background: #0d0c0c; border-radius: 18px; padding: 9px; box-shadow: 0 34px 74px rgba(13,12,12,.30); border: 1px solid rgba(255,255,255,.12); transform: rotateY(-9deg); transform-origin: right center; }
.ws-tscreen { border-radius: 12px; overflow: hidden; background: #f6f8fa; display: flex; flex-direction: column; height: 258px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body), sans-serif; color: #1a1a1a; }
.ws-top { height: 36px; background: #fff; border-bottom: 1px solid #eceef1; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; flex: none; }
.ws-top > span { display: flex; align-items: center; gap: 7px; }
.ws-top img { height: 16px; max-width: 60px; width: auto; object-fit: contain; display: block; }
.ws-top b { font-size: 10.5px; font-weight: 800; letter-spacing: .2px; }
.ws-top i { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.ws-tbody { flex: 1; padding: 11px 13px; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.ws-head { display: flex; align-items: baseline; justify-content: space-between; }
.ws-head b { font-size: 12px; font-weight: 700; } .ws-head small { font-size: 9px; color: #94a0ad; }
.ws-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ws-kpi { background: #fff; border: 1px solid #eceef1; border-radius: 8px; padding: 7px 7px 8px; }
.ws-kpi i { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.ws-kpi i svg { width: 10px; height: 10px; }
.ws-kpi small { display: block; font-size: 7.5px; color: #94a0ad; font-weight: 600; line-height: 1.1; margin-bottom: 2px; }
.ws-kpi div { display: flex; align-items: baseline; gap: 3px; }
.ws-kpi strong { font-size: 13px; font-weight: 800; }
.ws-kpi em { font-style: normal; font-size: 7.5px; font-weight: 700; color: #16a34a; }
.ws-two { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex: 1; min-height: 0; }
.ws-card { background: #fff; border: 1px solid #eceef1; border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; gap: 6px; }
.ws-card > b { font-size: 8.5px; font-weight: 700; }
.ws-appt { display: flex; align-items: center; gap: 6px; }
.ws-appt b { width: 17px; height: 17px; border-radius: 50%; font-size: 7.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws-appt div { min-width: 0; }
.ws-appt span { display: block; font-size: 8.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-appt small { display: block; font-size: 7px; color: #94a0ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-rank { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ws-rank span { font-size: 8px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-rank b { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; flex-shrink: 0; }
.ws-rank em { font-style: normal; font-size: 7.5px; font-weight: 700; color: #16a34a; }
.ws-foot { height: 20px; border-top: 1px solid #eceef1; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 7px; color: #aab4bf; letter-spacing: .3px; flex: none; }

.ws-phone { position: absolute; bottom: -8px; left: -4px; z-index: 4; width: 120px; height: 252px; background: #0d0c0c; border-radius: 24px; padding: 6px; box-shadow: 0 26px 52px rgba(13,12,12,.34); border: 1px solid rgba(255,255,255,.14); animation: wsFloat 5.4s ease-in-out infinite; }
.ws-pscreen { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: #fff; }
.ws-pscreen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; pointer-events: none; }
.ws-pscreen i { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 40px; height: 11px; border-radius: 999px; background: #0d0c0c; z-index: 5; }
@keyframes wsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* the cluster must fit its grid column: (container/2 - gap) / 560 */
@media (max-width: 1280px) { .ws-slot { --s: .9; } }
@media (max-width: 1180px) { .ws-slot { --s: .8; } }
@media (max-width: 1060px) { .ws-slot { --s: .7; } }
@media (max-width: 960px) {
  .ws-row { grid-template-columns: 1fr; gap: 18px; padding: 44px 0; }
  .ws-row.flip .ws-copy { order: 1; } .ws-row.flip .ws-wrap { order: 2; }
  .ws-slot { --s: .8; }
}
@media (max-width: 640px) { .ws-slot { --s: .62; } }
@media (max-width: 480px) { .ws-slot { --s: .55; } }
@media (max-width: 400px) { .ws-slot { --s: .5; } }
@media (prefers-reduced-motion: reduce) { .ws-phone { animation: none; } }

/* ===== Diseño Web: Email Pro (professional inbox with estimates/invoices/bookings) ===== */
.ep-section { padding: 110px 0; }
.ep-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ep-copy h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 0 0 18px; }
.ep-copy > p { color: var(--ink-dim); font-size: clamp(15px, 1.35vw, 17.5px); line-height: 1.75; }
.ep-copy strong { color: var(--ink); font-weight: 500; }
.ep-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ep-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.ep-list li svg { color: var(--coral); flex: none; margin-top: 3px; }
.ep-list b { color: var(--ink); font-weight: 500; }

.ep-visual { min-width: 0; }
.ep-mail {
  display: grid; grid-template-columns: 138px 232px 1fr; height: 440px;
  background: #fff; color: #1a1a1a; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px rgba(0,0,0,.55);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body), sans-serif;
}
.ep-side { background: #f6f7f9; border-right: 1px solid #eceef1; padding: 14px 12px; }
.ep-me { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ep-me i { width: 26px; height: 26px; border-radius: 8px; background: var(--coral); color: #fff; font-style: normal; font-weight: 800; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ep-me b { display: block; font-size: 10.5px; font-weight: 700; }
.ep-me small { display: block; font-size: 8px; color: #94a0ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
.ep-nav span { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: #475569; padding: 6px 8px; border-radius: 7px; margin-bottom: 2px; }
.ep-nav span.on { background: #fff; color: #1a1a1a; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ep-nav em { font-style: normal; font-size: 8.5px; font-weight: 700; color: #fff; background: var(--coral); border-radius: 999px; padding: 1px 6px; }
.ep-listpane { border-right: 1px solid #eceef1; overflow: hidden; }
.ep-search { margin: 10px; background: #f3f4f6; border-radius: 8px; padding: 6px 10px; font-size: 9.5px; color: #9ca3af; }
.ep-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 10px 12px; border-top: 1px solid #f1f3f5; cursor: pointer; transition: background .2s; }
.ep-item.on { background: #fff6f3; box-shadow: inset 3px 0 0 var(--coral); }
.ep-av { width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ep-item > div { min-width: 0; }
.ep-item b { display: block; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-item span { display: block; font-size: 9.5px; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ep-item small { display: block; font-size: 8.5px; color: #94a0ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ep-item em { font-style: normal; font-size: 8.5px; color: #94a0ad; }
.ep-read { padding: 16px 18px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.ep-rhead b { display: block; font-size: 12.5px; font-weight: 700; }
.ep-rhead small { display: block; font-size: 8.5px; color: #94a0ad; margin-top: 3px; }
.ep-rhead u { text-decoration: none; color: var(--coral); }
.ep-quote { font-size: 10.5px; color: #1a1a1a; margin: 0; }
.ep-doc { border: 1px solid #e9ebef; border-radius: 10px; padding: 12px 14px; background: #fafbfc; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.ep-dhead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ep-dhead b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.ep-dhead small { display: block; font-size: 8px; color: #94a0ad; }
.ep-stamp { font-size: 8.5px; font-weight: 800; color: #16a34a; background: rgba(22,163,74,.12); border-radius: 999px; padding: 3px 8px; }
.ep-line { display: flex; justify-content: space-between; font-size: 9.5px; padding: 4px 0; border-top: 1px solid #eef0f3; }
.ep-line b { font-weight: 600; }
.ep-total { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; padding: 6px 0 2px; border-top: 2px solid #1a1a1a; margin-top: 2px; }
.ep-sig { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ep-sig small { font-size: 8px; color: #94a0ad; }
.ep-btn { font-size: 8.5px; font-weight: 700; color: #fff; background: var(--coral); border-radius: 6px; padding: 5px 9px; }
.ep-reply { align-self: flex-start; font-size: 9.5px; color: #475569; border: 1px solid #e2e5ea; border-radius: 6px; padding: 5px 12px; }

@media (max-width: 1100px) { .ep-mail { grid-template-columns: 0 220px 1fr; } .ep-side { display: none; } }
@media (max-width: 960px) {
  .ep-section { padding: 80px 0; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep-mail { grid-template-columns: 1fr; height: auto; }
  .ep-listpane { border-right: 0; border-bottom: 1px solid #eceef1; }
  .ep-item:not(.on) { display: none; }
}
.ep-read.swap { animation: epSwap .4s ease; }
@keyframes epSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Contact page: details blocks, 2-col form row, consent, states, map ===== */
.ci-block { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ci-block:first-child { padding-top: 0; }
.ci-block h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 0 0 8px; font-weight: 500; }
.ci-block a, .ci-block p { display: block; font-size: 16px; color: var(--ink); line-height: 1.6; margin: 0; }
.ci-block a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .2s; }
.ci-block a:hover { border-color: var(--coral); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: #6c6862; margin: 4px 0 18px; cursor: pointer; }
.cf-consent input { margin-top: 3px; accent-color: var(--coral); flex: none; }
.cf-error { color: #c0392b; font-size: 13px; margin: 0 0 12px; }
.cf-field input:invalid.touched, .cf-field textarea:invalid.touched { border-color: #c0392b; }
.contact-form.sent .cf-field, .contact-form.sent .cf-row, .contact-form.sent .cf-consent, .contact-form.sent h3, .contact-form.sent #cfSubmit { display: none; }
.cf-success { text-align: center; padding: 30px 10px; }
.cf-success .cf-check { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; align-items: center; justify-content: center; margin-bottom: 14px; }
.cf-success strong { display: block; font-size: 22px; font-weight: 500; }
.cf-success p { color: #6c6862; margin-top: 6px; }
.contact-map { width: min(1080px, 92vw); margin: 0 auto 110px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.contact-map iframe { display: block; filter: grayscale(.15); }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }

/* ===== iPhone iMessage mockups (chat() in build_pages.py) ===== */
.iphone {
  width: min(304px, 100%); margin: 0 auto; padding: 9px;
  background: linear-gradient(155deg, #3a3a3d, #0d0d0f 32%, #0d0d0f 68%, #45454a);
  border-radius: 48px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.iphone-screen {
  position: relative; aspect-ratio: 9 / 19.5; overflow: hidden;
  background: #fff; color: #000; border-radius: 40px;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.iphone-island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 84px; height: 25px; border-radius: 999px; background: #000;
}
/* status bar */
.imsg-status { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; }
.imsg-time { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.imsg-icons { display: inline-flex; align-items: center; gap: 5px; color: #000; }
.imsg-icons svg { height: 11px; width: auto; display: block; }
/* conversation header */
.imsg-nav {
  flex: none; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 4px;
  padding: 2px 12px 8px; background: rgba(249,249,249,.94);
  border-bottom: .5px solid rgba(0,0,0,.18);
}
.imsg-back, .imsg-ft { color: #007aff; display: inline-flex; }
.imsg-back svg { width: 15px; height: 15px; }
.imsg-ft { justify-self: end; }
.imsg-ft svg { width: 21px; height: 21px; }
.imsg-who { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.imsg-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #b6b6bb, #8e8e93); color: #fff; font-size: 13px; font-weight: 500;
}
.imsg-who small {
  display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #000;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.imsg-who small svg { width: 7px; height: 7px; color: #8e8e93; flex: none; }
/* thread — messages sit at the bottom like a real conversation */
/* top-aligned like Apple's own Messages marketing shots (a fresh thread) */
.imsg-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; padding: 12px 11px 8px; overflow: hidden; }
.imsg-stamp { text-align: center; font-size: 10px; color: #8e8e93; line-height: 1.5; margin-bottom: 8px; }
.imsg-stamp b { font-weight: 600; color: #6b6b70; }
.imsg-b {
  position: relative; max-width: 74%; padding: 8px 13px; border-radius: 18px;
  font-size: 13.5px; line-height: 1.32; word-wrap: break-word;
}
.imsg-b.in { background: #e9e9eb; color: #000; align-self: flex-start; margin-right: auto; }
.imsg-b.out { background: #0b84ff; color: #fff; align-self: flex-end; margin-left: auto; }
/* bubble tails (second pseudo masks with the screen colour) */
.imsg-b.in::before { content: ""; position: absolute; bottom: 0; left: -7px; width: 20px; height: 20px; background: #e9e9eb; border-bottom-right-radius: 16px; }
.imsg-b.in::after { content: ""; position: absolute; bottom: 0; left: -20px; width: 20px; height: 20px; background: #fff; border-bottom-right-radius: 10px; }
.imsg-b.out::before { content: ""; position: absolute; bottom: 0; right: -7px; width: 20px; height: 20px; background: #0b84ff; border-bottom-left-radius: 16px; }
.imsg-b.out::after { content: ""; position: absolute; bottom: 0; right: -20px; width: 20px; height: 20px; background: #fff; border-bottom-left-radius: 10px; }
.imsg-b + .imsg-b { margin-top: 2px; }
.imsg-del { align-self: flex-end; font-size: 9.5px; color: #8e8e93; margin: 3px 4px 2px 0; }
/* input bar */
.iphone-home { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); z-index: 4; width: 36%; height: 4px; border-radius: 999px; background: #000; opacity: .82; }
.imsg-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 12px 20px; }
.imsg-plus { width: 27px; height: 27px; flex: none; border-radius: 50%; background: #e9e9eb; color: #6b6b70; display: grid; place-items: center; }
.imsg-plus svg { width: 15px; height: 15px; }
.imsg-input {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #d1d1d6; border-radius: 16px; padding: 5px 8px 5px 12px;
  font-size: 12.5px; color: #8e8e93; min-width: 0;
}
.imsg-input svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 480px) {
  .iphone { width: min(268px, 100%); }
  /* island + status bar scale down with the frame, or the pill overlaps the signal icon */
  .iphone-island { width: 70px; height: 22px; top: 8px; }
  .imsg-status { height: 40px; padding: 0 14px 0 16px; }
  .imsg-time { font-size: 12px; }
  .imsg-icons { gap: 4px; }
  .imsg-icons svg { height: 9.5px; }
  .imsg-b { font-size: 13px; }
  .iphone-home { height: 3.5px; bottom: 6px; }
}
