/* ── Merethion corporate site ─────────────────────────────────────────────
   Parent-company identity: quiet, typographic, credible. Warm paper ground,
   near-black ink, bronze accent. Fraunces for display, Inter for body. */

:root {
  --paper:      #FAF8F4;
  --paper-2:    #F3EEE5;
  --card:       #FFFFFF;
  --ink:        #191817;
  --muted:      #6E6A63;
  --line:       #E7E2D9;
  --accent:     #8C5B2F;   /* bronze */
  --accent-ink: #6E4623;
  --accent-soft:#F4EBDF;
  --shadow-sm:  0 1px 2px rgba(20, 18, 16, 0.04);
  --shadow-md:  0 10px 30px -12px rgba(58, 40, 22, 0.16);
  --shadow-lg:  0 24px 60px -24px rgba(58, 40, 22, 0.28);
  --max:        1080px;
  --prose:      760px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(140, 91, 47, 0.07), transparent 60%),
    radial-gradient(900px 460px at 4% 2%, rgba(140, 91, 47, 0.045), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

::selection { background: var(--accent-soft); color: var(--accent-ink); }

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

.serif { font-family: "Fraunces", Georgia, serif; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ── */
header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, white);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: 21px; letter-spacing: 0.01em; color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }

/* ── Hero ── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 104px 24px 76px;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 22px;
}
.hero .kicker::before {
  content: ""; width: 28px; height: 1.5px; background: var(--accent);
  display: inline-block; border-radius: 2px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 570;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.08;
  letter-spacing: -0.015em; max-width: 820px;
  background: linear-gradient(180deg, var(--ink), #3a352f);
  -webkit-background-clip: text; background-clip: text; color: var(--ink);
}
.hero p.lede {
  margin-top: 26px; font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted); max-width: 640px; line-height: 1.7;
}
/* entrance */
.hero .kicker { animation: rise 0.7s var(--ease) both; }
.hero h1     { animation: rise 0.7s var(--ease) 0.06s both; }
.hero p.lede { animation: rise 0.7s var(--ease) 0.12s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Sections ── */
section { max-width: var(--max); margin: 0 auto; padding: 56px 24px; }
.section-rule { border: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
h2.section-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 570;
  font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin-bottom: 14px;
}
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 36px; }

/* ── Product card (Akriva) ── */
.product {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-ink));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease);
}
.product:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.product:hover::before { transform: scaleY(1); }
.product .brand {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 30px;
}
.product .tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.product p { color: var(--muted); margin-top: 12px; }
.product .cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 10px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.product .cta:hover {
  text-decoration: none; transform: translateY(-2px);
  background: #000; box-shadow: var(--shadow-md);
}
.product ul { list-style: none; display: grid; gap: 14px; align-content: center; }
.product ul li {
  padding-left: 26px; position: relative; font-size: 15px; color: var(--ink);
}
.product ul li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
}
.product + .product { margin-top: 24px; }
.product .status {
  display: block; margin-top: 26px; font-size: 14px; font-weight: 600;
  color: var(--muted);
}
.product .status + .cta { margin-top: 16px; }

/* ── Value grid ── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 28px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.value::after {
  content: ""; position: absolute; left: 28px; top: 0; height: 3px; width: 34px;
  background: var(--accent); border-radius: 0 0 3px 3px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.value:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
}
.value:hover::after { transform: scaleX(1); }
.value h3 { font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.value p { font-size: 14.5px; color: var(--muted); }

/* ── Prose pages (about, policies) ── */
.prose {
  max-width: var(--prose); margin: 0 auto; padding: 72px 24px 96px;
}
.prose h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 570;
  font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.01em; margin-bottom: 10px;
}
.prose .updated { font-size: 13.5px; color: var(--muted); margin-bottom: 40px; }
.prose h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 23px;
  margin: 44px 0 12px;
}
.prose h3 { font-size: 16.5px; font-weight: 650; margin: 28px 0 8px; }
.prose p { margin-bottom: 14px; color: #33302B; }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: #33302B; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose .legal-block {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 28px; margin: 28px 0; font-size: 15px;
}
.prose .legal-block div { margin-bottom: 6px; }
.prose .placeholder {
  background: #FFF3D6; border-radius: 4px; padding: 1px 6px;
  font-size: 0.92em; color: #7A5B00;
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--accent-soft); font-weight: 650; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--card); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; font-size: 14px;
}
.footer-inner .legal-name { font-weight: 650; margin-bottom: 8px; }
.footer-inner .col-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-inner ul { list-style: none; display: grid; gap: 10px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }
.footer-inner .muted { color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-bottom .inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 32px; }
  .values { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 24px 48px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
}
