/*
 * Jino web — tokens lifted verbatim from src/constants/theme.ts so the site and the app
 * cannot drift. The app is light-mode only by design (the Figma palette is exclusively the
 * warm cream), so this commits to one look rather than shipping a half-considered dark mode.
 */

:root {
  color-scheme: light;

  --ground: #FEFAEB;
  --card: #FDFDFB;
  --select: #F4FFEB;

  --ink: #0C1A00;
  --subtitle: #4C5049;
  --inactive: #868379;

  --primary: #C6FF95;
  --primary-dark: #6CCE17;
  --primary-deep: #3C730D;

  --border: #CCCECA;
  --border-soft: rgba(204, 206, 202, 0.5);

  --peach: #FEEEE6;
  --btn-a: #E6FED2;
  --btn-b: #B7F7F4;

  --radius-card: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 4px rgba(126, 147, 108, 0.04);
  --shadow-lift: 0 1px 2px rgba(12, 26, 0, 0.05), 0 18px 40px -28px rgba(12, 26, 0, 0.35);

  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: Aleo, Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--primary-deep); }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

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

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.wordmark span {
  font-family: Aleo, Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.wordmark small {
  color: var(--inactive);
  font-size: 15px;
  letter-spacing: 0.04em;
  transform: translateY(-1px);
}

.masthead nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}

.masthead nav a {
  color: var(--subtitle);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 76px) clamp(48px, 7vw, 96px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--select);
  border: 1px solid rgba(108, 206, 23, 0.34);
  color: var(--primary-deep);
  border-radius: var(--radius-pill);
  padding: 6px 15px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-dark);
  flex: none;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--subtitle);
  max-width: 46ch;
  margin: 0 0 30px;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--btn-a) 0%, var(--btn-b) 100%);
  box-shadow: 0 2px 1.5px rgba(0, 0, 0, 0.17);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(12, 26, 0, 0.3);
}

.btn:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--subtitle);
  text-decoration: none;
  padding: 10px 4px;
}

.btn-ghost:hover { color: var(--ink); }

.microcopy {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--inactive);
}

.microcopy b {
  color: var(--primary-deep);
  font-weight: 600;
}

/* ---------- hero art ---------- */

.hero-art {
  position: relative;
  border-radius: 32px;
  background-image: linear-gradient(160deg, var(--peach) 0%, var(--ground) 58%, var(--select) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(100%, 340px);
  height: auto;
}

.hero-art figcaption {
  margin-top: 14px;
  font-family: Aleo, Georgia, serif;
  font-size: 15px;
  color: var(--subtitle);
  text-align: center;
}

/* ---------- trust strip ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.trust div {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.trust h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.trust p {
  margin: 0;
  font-size: 14px;
  color: var(--subtitle);
  line-height: 1.55;
}

/* ---------- document pages ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: 12px clamp(56px, 8vw, 96px);
}

.doc-head {
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border-soft);
}

.doc-head h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.08;
  margin-bottom: 10px;
}

.doc-head .updated {
  font-size: 13.5px;
  color: var(--inactive);
  margin: 0;
}

.doc h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 12px;
  scroll-margin-top: 24px;
}

.doc h3 {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 26px;
  margin-bottom: 8px;
}

.doc p,
.doc li {
  color: var(--subtitle);
  font-size: 15.5px;
}

.doc p { margin: 0 0 14px; }

.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }

.doc strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--select);
  border: 1px solid rgba(108, 206, 23, 0.3);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 0 0 28px;
}

.callout p:last-child { margin-bottom: 0; }

.callout p { color: var(--ink); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--subtitle);
  vertical-align: top;
}

.doc th {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; margin-bottom: 20px; }
.table-scroll table { margin-bottom: 0; }

/* ---------- support ---------- */

.faq {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--card);
  padding: 4px 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}

.faq details:last-child { border-bottom: 0; }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--subtitle);
}

.contact-card {
  background-image: linear-gradient(150deg, var(--peach) 0%, var(--ground) 70%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
}

.contact-card h2 { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 26px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--inactive);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--subtitle);
  text-decoration: none;
}

.site-footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 20px 44px;
  }

  .hero-art { order: -1; }
  .hero-art img { width: min(70%, 290px); }

  .lede { max-width: none; }

  .trust { grid-template-columns: 1fr; }

  .masthead nav { gap: 16px; font-size: 14px; }
}

@media (max-width: 420px) {
  .shell { padding-inline: 18px; }
  .cta-row .btn { width: 100%; }
  .masthead { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
