/* Seinemo redesign: the index card, the CRM before software. */
:root {
  --ink: #18233d;
  --ink-soft: #4a5874;
  --paper: #e9edf2;
  --card: #fbfcfd;
  --red: #c4313f;
  --rule: #a9bcd6;
  --line: #cbd3de;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-stretch: 88%; font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-stretch: 92%; }
h3 { font-size: 1.375rem; font-stretch: 100%; letter-spacing: -0.005em; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--card { background: var(--card); }
.section--ink { background: var(--ink); color: var(--card); }

.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }
.section--ink .lede { color: #c9d3e2; }
.head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { color: var(--ink-soft); margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: 0.85em 1.35em;
  border-radius: 3px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--card);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.section--ink .btn { background: var(--card); color: var(--ink); border-color: var(--card); }
.section--ink .btn:hover { background: var(--red); color: var(--card); border-color: var(--red); }

.phone { font-family: var(--sans); color: var(--ink-soft); font-size: 1rem; }
.phone a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.section--ink .phone { color: #c9d3e2; }
.section--ink .phone a { color: var(--card); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(233, 237, 242, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 22px; }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--sans); font-size: 1rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav .btn { padding: 0.6em 1.1em; border-bottom: 2px solid var(--ink); }
.nav-toggle { display: none; font: 600 1rem var(--sans); background: none; border: 2px solid var(--ink); border-radius: 3px; padding: 8px 14px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.125rem; }
  .nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-bottom: 1.75em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-art { width: 100%; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 14em; }

/* Hero animation: cards dealt from the drawer into the pipeline */
.deal { transform-box: fill-box; transform-origin: center; animation: deal 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both; animation-delay: var(--d, 0s); }
@keyframes deal { from { transform: translate(var(--fx), var(--fy)) rotate(var(--r, -8deg)); opacity: 0; } 12% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .deal { animation: none; } }

/* Index card: the one recurring device */
.icard {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0 24px 24px;
}
.icard h3 { margin: 0 -24px 6px; padding: 24px 24px 14px; border-bottom: 2px solid var(--red); }
.icard p {
  line-height: 30px; margin: 0; color: var(--ink-soft);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 29px, rgba(169, 188, 214, 0.55) 29px, rgba(169, 188, 214, 0.55) 30px);
}

/* Situations */
.situations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.situations .icard { display: flex; flex-direction: column; }
.situations .icard p { flex: 1; }
.situations .to { margin-top: 24px; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 1040px) { .situations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .situations { grid-template-columns: 1fr; } }

/* Engagements */
.engagement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.engagement:first-of-type { border-top: 0; padding-top: 0; }
.engagement:nth-of-type(even) .engagement-art { order: 2; }
.engagement h3, .engagement .h3-lg { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-stretch: 92%; margin-bottom: 0.4em; }
.engagement .when { font-family: var(--sans); font-weight: 600; color: var(--red); margin-bottom: 0.6em; font-size: 1rem; }
.engagement ul { list-style: none; padding: 0; margin: 1.25em 0 1.5em; border-top: 1px solid var(--line); }
.engagement li { padding: 0.6em 0 0.6em 1.6em; border-bottom: 1px solid var(--line); position: relative; }
.engagement li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 0.8em; height: 2px; background: var(--red); }
.engagement-art { background: #dde3ea; border-radius: 4px; padding: clamp(12px, 2vw, 20px); }
@media (max-width: 860px) {
  .engagement { grid-template-columns: 1fr; }
  .engagement:nth-of-type(even) .engagement-art { order: 0; }
}

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { position: relative; padding: 56px 32px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font: 700 1rem/32px var(--sans); text-align: center; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.section--card .steps li::before { background: var(--card); }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding: 0 0 0 60px; }
  .steps li::after { display: none; }
}

/* CRMs */
.crms { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.crms li { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; padding: 12px 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* What we don't do */
.donts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.donts li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.donts li:last-child { border-bottom: 1px solid var(--line); }
.section--ink .donts li { border-color: rgba(201, 211, 226, 0.25); }
.donts svg { width: 28px; height: 28px; margin-top: 4px; }
.donts strong { display: block; font-family: var(--sans); font-size: 1.25rem; margin-bottom: 4px; }
.donts span { color: var(--ink-soft); }
.section--ink .donts span { color: #c9d3e2; }

/* Deliverables */
.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .deliverables { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font: 600 1.25rem/1.3 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); max-width: 40em; padding-bottom: 8px; }

/* CTA band */
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta h2 { margin-bottom: 0.3em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; align-items: start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label { font: 600 1rem var(--sans); display: block; margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: 1.0625rem var(--serif); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-bottom: 2px solid var(--ink-soft);
  border-radius: 2px; padding: 12px 14px;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 2px 0 0 var(--red); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choices label { margin: 0; display: flex; gap: 10px; align-items: center; font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.choices input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.hint { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.contact-card dl { margin: 0; font-family: var(--sans); }
.contact-card dt { font-weight: 600; margin-top: 30px; line-height: 30px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; line-height: 30px; color: var(--ink-soft); }
.contact-card dd a { color: var(--ink); }

/* Principles (about) */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #111a2e; color: #c9d3e2; padding: 64px 0 32px; font-family: var(--sans); font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: var(--card); margin-bottom: 12px; }
.site-footer h2 { font-size: 1rem; color: var(--card); font-stretch: 100%; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #e3e9f1; text-underline-offset: 3px; text-decoration-color: rgba(201, 211, 226, 0.4); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(201, 211, 226, 0.2); padding-top: 24px; margin-top: 16px; font-size: 0.875rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (min-width: 561px) { .situations .icard h3 { min-height: calc(2.64em + 38px); display: flex; align-items: flex-end; } }

/* Language switch */
.nav .lang { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; }
.nav .lang:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .nav .lang { margin-top: 8px; } }

/* Contact form states (WordPress theme) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--sans); font-weight: 600; padding: 14px 16px; border-radius: 2px; margin: 0 0 24px; grid-column: 1 / -1; }
.form-status.is-ok { background: #e3efe6; color: #1d4d2c; box-shadow: inset 4px 0 0 #2f7d47; }
.form-status.is-error { background: #f7e4e6; color: #7a1c26; box-shadow: inset 4px 0 0 var(--red); }
/* WordPress admin bar sits above the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* AI section */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ai-uses { list-style: none; padding: 0; margin: 0; }
.ai-uses li { padding: 22px 0; border-top: 1px solid var(--line); }
.ai-uses li:first-child { border-top: 0; padding-top: 0; }
.ai-uses h3 { margin-bottom: 0.35em; }
.ai-uses p { margin: 0; color: var(--ink-soft); }
.safeguards { list-style: none; padding: 32px 0 0; margin: clamp(48px, 6vw, 72px) 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.safeguards li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.safeguards svg { width: 24px; height: 24px; margin-top: 2px; }
.safeguards strong { display: block; font-family: var(--sans); font-size: 1.125rem; margin-bottom: 4px; }
.safeguards span { color: var(--ink-soft); }
@media (max-width: 860px) { .ai-grid, .safeguards { grid-template-columns: 1fr; } }

/* AI consulting page and links */
.offer .icard ul { list-style: none; padding: 0; margin: 18px 0 0; font-family: var(--sans); font-size: 0.975rem; }
.offer .icard li { padding: 8px 0 8px 1.3em; border-top: 1px solid var(--line); position: relative; }
.offer .icard li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.7em; height: 2px; background: var(--red); }
.cta-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.cta-row .cta-actions { align-items: flex-start; }
@media (max-width: 860px) { .cta-row { grid-template-columns: 1fr; } }
.ai-more { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ai-more p { margin: 0; max-width: 34em; color: var(--ink-soft); }
@media (max-width: 1080px) and (min-width: 861px) { .nav { gap: 20px; font-size: 0.95rem; } }
