/* Lovi Plate — coming soon. Split screen: deep green panel, white side. Written by hand. */

:root {
  --green: #0d3b32;
  --green-2: #12513f;
  --sand: #e8c07a;
  --ink: #101a17;
  --muted: #6b7a75;
  --line: #dde5e1;
  --paper: #ffffff;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ── split ───────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(340px, 44%) 1fr; min-height: 100vh; }

.side {
  position: relative;
  background: linear-gradient(160deg, var(--green), var(--green-2));
  color: #fff;
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.side::after {
  content: "";
  position: absolute; right: -110px; bottom: -110px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 192, 122, .22), transparent 68%);
}
.mark {
  display: inline-flex; align-items: center; gap: 11px;
  color: #fff; font-weight: 700; letter-spacing: .01em;
}
.mark:hover { text-decoration: none; }
.mark u {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--sand); color: var(--green);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; text-decoration: none;
}

.side-body { margin: auto 0; padding: clamp(34px, 6vw, 64px) 0; position: relative; z-index: 1; }
.flag {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }

.side h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 780;
}
.side h1 em { font-style: normal; color: var(--sand); }
.side .note { margin: 0; max-width: 34ch; color: rgba(255, 255, 255, .74); }

.side nav { position: relative; z-index: 1; display: flex; gap: 22px; flex-wrap: wrap; }
.side nav a { color: rgba(255, 255, 255, .7); font-size: .83rem; }
.side nav a:hover { color: #fff; }

/* ── content side ────────────────────────────────────────────────── */
.body { padding: clamp(30px, 5vw, 66px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; }
.lede { margin-bottom: clamp(28px, 4vw, 44px); }
.kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.lede h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -.02em;
  font-weight: 700;
}
.lede p { margin: 0; color: var(--muted); max-width: 54ch; }

.panes { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); }
h3 {
  margin: 0 0 6px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.hint { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }

.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 59, 50, .12);
}
.field .invalid { border-color: #c4453a; background: #fff7f6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; padding: 0 24px;
  font: inherit; font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--green);
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--green-2); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 13px 0 0; min-height: 1.2em; font-size: .89rem; }
.status.ok { color: #0d6b4f; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

.facts { margin: 0; }
.facts > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: .86rem; }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-size: .93rem; word-break: break-word; }

.base {
  margin-top: auto; padding-top: clamp(28px, 4vw, 44px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
  border-top: 1px solid var(--line);
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--green); }
.base p { margin: 0; }

/* ── legal pages ─────────────────────────────────────────────────── */
.legal-top {
  background: linear-gradient(160deg, var(--green), var(--green-2));
  color: #fff;
  padding: 20px clamp(22px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.legal-top nav { display: flex; gap: 22px; }
.legal-top nav a { color: rgba(255, 255, 255, .74); font-size: .82rem; }
.legal-top nav a:hover, .legal-top nav a.active { color: #fff; }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(38px, 6vw, 68px) clamp(22px, 5vw, 40px) 60px; }
.doc .kicker { margin-bottom: 12px; }
.doc h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  letter-spacing: -.03em;
}
.stamp {
  display: inline-block; margin: 0 0 32px;
  padding: 5px 13px; border-radius: 999px;
  background: #f1f5f3; color: var(--muted); font-size: .8rem;
}
.doc h2 {
  margin: 32px 0 10px;
  font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #3c4a46; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 42px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 165px; }
.soft {
  background: #f1f5f3; color: var(--green);
}
.soft:hover { background: #e6eeea; }

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .side { min-height: 320px; }
  .panes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .base { flex-direction: column; }
  .legal-top { flex-direction: column; align-items: flex-start; }
}
