/* Kisan Astra — legal & support microsite */

:root {
  --color-surface: oklch(98.5% 0.008 95);
  --color-surface-raised: oklch(100% 0 0);
  --color-text: oklch(26% 0.025 150);
  --color-text-muted: oklch(48% 0.02 150);
  --color-accent: oklch(52% 0.13 150);
  --color-accent-deep: oklch(38% 0.11 150);
  --color-accent-soft: oklch(94% 0.04 150);
  --color-border: oklch(90% 0.015 150);
  --color-earth: oklch(58% 0.08 75);

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-hero: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  --space-section: clamp(2.5rem, 2rem + 3vw, 5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px oklch(26% 0.025 150 / 0.04),
    0 8px 24px oklch(26% 0.025 150 / 0.06);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --content-width: 760px;
}

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

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent);
}

/* ---- Site header ---- */

.site-header {
  background: linear-gradient(
    160deg,
    var(--color-accent-deep),
    var(--color-accent) 70%
  );
  color: oklch(98% 0.01 150);
  padding: clamp(1.75rem, 1rem + 2vw, 3rem) 1.5rem;
}

.site-header__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__logo {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  box-shadow: 0 4px 14px oklch(20% 0.05 150 / 0.35);
  flex-shrink: 0;
}

.site-header__title {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.site-header__sub {
  font-size: var(--text-sm);
  opacity: 0.82;
}

.site-nav {
  margin-top: 1.25rem;
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: oklch(98% 0.01 150);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.12);
  transition: background var(--ease-out-expo) 200ms;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: oklch(100% 0 0 / 0.24);
}

/* ---- Main content ---- */

main {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-section) 1.5rem;
}

.page-title {
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.page-meta {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.lead {
  margin-top: 1.5rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

section + section {
  margin-top: 2.5rem;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent-soft);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

p {
  margin-top: 0.75rem;
}

ul,
ol {
  margin-top: 0.75rem;
  padding-left: 1.35rem;
}

li {
  margin-top: 0.35rem;
}

li::marker {
  color: var(--color-accent);
}

strong {
  font-weight: 650;
}

/* ---- Cards (index hub) ---- */

.card-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  display: block;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease-out-expo) 220ms,
    box-shadow var(--ease-out-expo) 220ms;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px oklch(26% 0.025 150 / 0.05),
    0 16px 36px oklch(26% 0.025 150 / 0.1);
}

.card__icon {
  font-size: 1.6rem;
  display: block;
}

.card__title {
  margin-top: 0.75rem;
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--color-accent-deep);
}

.card__desc {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- Callout / contact box ---- */

.callout {
  margin-top: 1.5rem;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.callout p:first-child {
  margin-top: 0;
}

/* ---- FAQ (native disclosure) ---- */

.faq {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

details {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform var(--ease-out-expo) 200ms;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > *:not(summary) {
  padding-inline: 1.15rem;
}

details > *:last-child {
  padding-bottom: 1.1rem;
}

/* ---- Definition-style data table ---- */

.data-list {
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-list__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--color-surface-raised);
}

.data-list__row + .data-list__row {
  border-top: 1px solid var(--color-border);
}

.data-list__row dt {
  font-weight: 650;
  color: var(--color-accent-deep);
}

.data-list__row dd {
  margin: 0;
  color: var(--color-text-muted);
}

@media (max-width: 540px) {
  .data-list__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  padding: 2rem 1.5rem;
  margin-top: var(--space-section);
}

.site-footer__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
}
