/* Hipocratea Solutions — site styles */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* eiruC's own type: Montserrat for its tagline, Nunito Sans for its interface */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #0A2858;
  --text: #2A3A4F;
  --muted: #5B6878;
  --line: #E4DED3;
  --teal: #039EAE;
  --teal-ink: #027A88;
  --teal-soft: rgba(3, 158, 174, 0.12);
  --ink-soft: rgba(10, 40, 88, 0.07);
  --band: #0A2858;
  --band-text: #F3F0EA;
  --band-muted: #B9C3CF;
  --band-accent: #3CC6D0;
  --shadow: 0 40px 80px -40px rgba(10, 40, 88, 0.28), 0 2px 6px rgba(10, 40, 88, 0.05);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eiruc-tag: "Montserrat", var(--sans);
  --eiruc-ui: "Nunito Sans", var(--sans);
  --eiruc-ink: #1F5267;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0A1626;
    --surface: #0F2034;
    --ink: #F3F0EA;
    --text: #C9D2DC;
    --muted: #8D9AAA;
    --line: #1D3049;
    --teal: #3CC6D0;
    --teal-ink: #5DD3DB;
    --teal-soft: rgba(60, 198, 208, 0.14);
    --ink-soft: rgba(243, 240, 234, 0.08);
    --band: #0F2034;
    --band-text: #F3F0EA;
    --band-muted: #A9B5C3;
    --band-accent: #3CC6D0;
    --eiruc-ink: #9CCBD2;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 440;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; }
picture { display: contents; }
picture > source { display: none; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 12px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.label::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-word {
  display: block;
  width: auto;
  height: 25px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 550;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--ink);
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav .nav-cta:hover { border-color: var(--ink); }

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--line);
}
.nav .lang a { color: var(--muted); }
.nav .lang a[aria-current] { color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(64px, 10vw, 136px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 420;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--teal);
}

.lead {
  margin-top: 30px;
  max-width: 34em;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-emblem {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-emblem { animation: emerge 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
}

@keyframes emerge { from { opacity: 0; transform: scale(0.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Statement */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 32px;
  align-items: start;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.statement .label { padding-top: 0.6em; }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.35rem);
  line-height: 1.3;
  font-weight: 380;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement-text em {
  font-style: italic;
  color: var(--teal-ink);
}

/* Product */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.eiruc-name {
  margin-top: 18px;
  line-height: 0;
}
.eiruc-name img {
  /* the wordmark's viewBox keeps the script's swashes; pull it back to align with the column */
  width: auto;
  height: clamp(76px, 54px + 3.4vw, 104px);
  margin-left: -10px;
}

.product-kicker {
  margin-top: 6px;
  margin-bottom: 26px;
  font-family: var(--eiruc-tag);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--eiruc-ink);
}
.product-copy > p:not([class]) {
  max-width: 36em;
}

.features {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.features h3 {
  font-size: 1.12rem;
  font-weight: 480;
  line-height: 1.4;
}
.features p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.modalities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.modalities li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.aside {
  margin-top: 26px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.aside strong { color: var(--ink); font-weight: 650; }
.aside em { color: var(--ink); }

.text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 26px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--teal-ink); }

/* Product mock */

.mock {
  margin: 0;
  font-family: var(--eiruc-ui);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.mock-icon {
  width: auto;
  height: 20px;
}
.mock-body { padding: 22px 22px 20px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}
.chip {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.chip-mod { background: var(--ink); color: var(--paper); }
.chip-reg { background: var(--teal-soft); color: var(--teal-ink); }
.chip-ent { background: var(--ink-soft); color: var(--ink); }
.chip-var { box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.caret {
  width: 1.5px;
  height: 18px;
  background: var(--teal);
  margin-left: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.mock-label {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-label:first-of-type { margin-top: 0; }
.mock-prose {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.mock-prose del {
  color: var(--muted);
  text-decoration-color: rgba(190, 70, 70, 0.7);
  background: rgba(190, 70, 70, 0.08);
  border-radius: 3px;
}
.mock-prose ins {
  text-decoration: none;
  background: rgba(30, 150, 100, 0.14);
  box-shadow: inset 0 -1.5px 0 rgba(30, 150, 100, 0.55);
  border-radius: 3px;
}
.mock-review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 600;
}
.mock-review-text {
  margin-right: auto;
  color: var(--muted);
}
.mock-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
}
.mock-btn-ok {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Principles */

.principles {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(72px, 10vw, 136px);
  border-top: 1px solid var(--line);
}
.principles-head h2 {
  margin-top: 20px;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
}
.principle-list li {
  padding-top: 22px;
  border-top: 1.5px solid var(--ink);
}
.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--teal-ink);
}
.principle-list h3 {
  margin-top: 14px;
  font-size: 1.45rem;
  line-height: 1.25;
}
.principle-list p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* Contact */

.contact {
  background: var(--band);
  color: var(--band-text);
}
.contact-inner {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.contact .label { color: var(--band-accent); }
.contact h2 {
  margin-top: 22px;
  color: var(--band-text);
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.contact-text {
  margin-top: 26px;
  max-width: 36em;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem);
  color: var(--band-muted);
}
.contact-mail {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.3rem);
  font-weight: 400;
  color: var(--band-text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--band-accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-mail span {
  color: var(--band-accent);
  transition: transform 0.2s;
}
.contact-mail:hover span { transform: translateX(4px); }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 480;
  color: var(--ink);
  line-height: 1.2;
}
.footer-tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-meta a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.footer-meta a:hover { color: var(--teal-ink); }

/* Responsive */

@media (max-width: 960px) {
  .hero,
  .product {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual { justify-content: flex-start; }
  .hero-emblem { max-width: 360px; }
  .statement { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .statement .label { padding-top: 0; }
  .principle-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .nav { gap: 12px; font-size: 14px; }
  .nav > a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 8px 14px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 21px; }
  .hero-emblem { max-width: 280px; }
  .features li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mock-body { padding: 18px 16px 16px; }
}
