/* PatrataCheck - site styles
   Design system: Minimalism & Swiss Style (ui-ux-pro-max)
   Professional navy + blue CTA, Figtree/Noto Sans, generous whitespace,
   subtle 200-250ms transitions, sharp restrained shadows. */
:root {
  --primary: #0F172A;
  --primary-deep: #020617;
  --accent: #0369A1;
  --accent-dark: #075985;
  --sky: #7DD3FC;
  --ok: #047857;
  --ok-bg: #ECFDF5;
  --ok-line: #A7F3D0;
  --fg: #020617;
  --muted: #475569;
  --muted-bg: #E8ECF1;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --danger: #DC2626;
  --danger-dark: #991B1B;
  --danger-bg: #FEF2F2;
  --danger-line: #FECACA;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(2,6,23,.08), 0 6px 16px rgba(2,6,23,.06);
  --shadow-pop: 0 2px 6px rgba(2,6,23,.10), 0 10px 24px rgba(2,6,23,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
h1, h2, h3 {
  font-family: 'Figtree', 'Noto Sans', system-ui, sans-serif;
  line-height: 1.22; color: var(--primary); letter-spacing: -0.015em;
}
h2 { font-size: 1.8rem; margin-bottom: 0.7rem; }
.section-lead { color: var(--muted); max-width: 660px; margin-bottom: 1.6rem; font-size: 1.02rem; }
.muted { color: var(--muted); font-size: 0.93rem; }
a { color: var(--accent); }

/* Header */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(2,6,23,.22);
}
.header-inner { display: flex; align-items: center; gap: 1.75rem; padding: 0.9rem 24px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.brand-name {
  font-family: 'Figtree', 'Noto Sans', sans-serif;
  color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand-name em { font-style: normal; color: var(--sky); }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.main-nav a { color: #CBD5E1; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color .2s ease; }
.main-nav a:hover { color: #fff; }
.brand { min-height: 44px; }
.nav-legal { position: relative; }
.nav-legal-toggle::after { content: "▾"; margin-left: 0.3rem; font-size: 0.75rem; }
.nav-submenu {
  display: none; position: absolute; right: 0; top: 100%; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); padding: 0.4rem; z-index: 60;
}
.nav-submenu a { display: block; color: var(--primary) !important; padding: 0.65rem 0.8rem; border-radius: 6px; font-size: 0.93rem; }
.nav-submenu a:hover { background: var(--bg); color: var(--accent) !important; }
.nav-legal:hover .nav-submenu, .nav-legal:focus-within .nav-submenu, .nav-legal.open .nav-submenu { display: block; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-weight: 700; border-radius: var(--radius-sm); transition: background .2s ease, transform .2s ease;
  font-family: 'Figtree', 'Noto Sans', sans-serif; min-height: 44px;
}
.btn-primary { background: var(--accent); color: #fff; padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-small { background: rgba(255,255,255,.14); color: #fff; padding: 0.55rem 1.05rem; font-size: 0.88rem; min-height: 0; }
.btn-small:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; margin-top: 0.5rem; }

/* Hero */
.hero { background: var(--primary); color: #E2E8F0; padding: 4.2rem 0 4.6rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: 1.1rem; }
.lead { font-size: 1.1rem; color: #CBD5E1; margin-bottom: 1.6rem; max-width: 34rem; }
.hero-points { list-style: none; display: grid; gap: 0.65rem; }
.hero-points li { padding-left: 1.8rem; position: relative; color: #E2E8F0; font-size: 0.98rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sky); font-weight: 700;
}

/* Calculator card */
.calc-card {
  background: var(--card); color: var(--fg);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-pop); border: 1px solid var(--line);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--primary); font-family: 'Figtree', 'Noto Sans', sans-serif; }
.field input[type="number"], .field input[type="date"], .field select {
  width: 100%; padding: 0.72rem 0.85rem; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit;
  background: #fff; color: var(--fg); min-height: 44px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input[type="number"]:focus, .field input[type="date"]:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3,105,161,.15);
}
.field-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.check-row { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.75rem; font-size: 0.93rem; }
.check-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 44px; margin: -11px -8px -11px -11px; flex-shrink: 0; cursor: pointer;
  background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1.2' y='1.2' width='19.6' height='19.6' rx='5' fill='white' stroke='%230369A1' stroke-width='1.8'/%3E%3C/svg%3E");
}
.check-row input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1.2' y='1.2' width='19.6' height='19.6' rx='5' fill='%230369A1' stroke='%230369A1' stroke-width='1.8'/%3E%3Cpath d='M6 11.4l3.4 3.4L16 8.2' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-row input[type="checkbox"]:focus-visible { outline: 3px solid rgba(3,105,161,.35); outline-offset: -3px; border-radius: 8px; }
.result {
  margin-top: 1.15rem; background: var(--ok-bg); border: 1.5px solid var(--ok-line);
  border-radius: var(--radius-sm); padding: 1.15rem 1.25rem;
}
.result-label { font-size: 0.82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.result-value { font-family: 'Figtree', 'Noto Sans', sans-serif; font-size: 2.1rem; font-weight: 700; margin: 0.25rem 0 0.65rem; letter-spacing: -0.01em; }
.result-value.ok { color: var(--ok); }
.result-value.no { color: var(--danger-dark); }
.result-rows { display: grid; gap: 0.55rem; margin-top: 0.4rem; text-align: left; }
.rrow { display: grid; grid-template-columns: 150px 1fr; gap: 0.6rem; font-size: 0.9rem; }
.rrow span { color: var(--muted); }
.rrow b { color: var(--primary); font-weight: 600; }
.result-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--primary); font-weight: 600; }
.result-sub { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.error {
  margin-top: 0.85rem; background: var(--danger-bg); border: 1.5px solid var(--danger-line); color: var(--danger-dark);
  border-radius: var(--radius-sm); padding: 0.75rem 0.95rem; font-size: 0.92rem;
}
.calc-foot { margin-top: 1.05rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.exam-note {
  margin-top: 0.55rem; font-size: 0.85rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-card); }
.step-n {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-family: 'Figtree', sans-serif;
  align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 0.8rem 1.05rem; text-align: left; font-size: 0.95rem; }
.data-table thead th { background: var(--primary); color: #fff; font-weight: 600; font-family: 'Figtree', 'Noto Sans', sans-serif; }
.data-table tbody tr { border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--bg); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; padding: 0.35rem 1.15rem; transition: border-color .2s ease;
}
.faq details:hover { border-color: #B6C6D8; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 0.85rem 0; list-style: none; font-family: 'Figtree', 'Noto Sans', sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; font-size: 1.25rem; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 1.05rem; color: var(--muted); }

/* Disclaimer */
.disclaimer { background: #FFFBEB; border-top: 1px solid #FDE68A; padding: 1.75rem 0; }
.disclaimer p { font-size: 0.92rem; color: #92400E; max-width: 900px; }

/* Footer */
.site-footer { background: var(--primary-deep); color: #94A3B8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.25rem; padding: 3rem 24px 2.25rem; }
.footer-brand p { font-size: 0.92rem; margin: 0.75rem 0; }
.footer-mail a { color: var(--sky); text-decoration: none; font-weight: 600; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.85rem; font-family: 'Figtree', 'Noto Sans', sans-serif; }
.footer-col a { display: flex; align-items: center; min-height: 44px; color: #94A3B8; text-decoration: none; font-size: 0.9rem; margin-bottom: 0.15rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.15rem 0; }
.footer-bottom p { font-size: 0.82rem; color: #64748B; }

/* Trust strip */
.trust-strip { background: var(--primary); padding: 3rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.trust-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 0.45rem; }
.trust-item p { color: #94A3B8; font-size: 0.93rem; }

/* Article / legal pages */
.article .eyebrow { color: var(--accent); }
.article h1 { font-size: 2.1rem; margin-bottom: 1.25rem; }
.article h2 { font-size: 1.45rem; margin: 2.2rem 0 0.75rem; }
.article h3 { font-size: 1.14rem; margin: 1.6rem 0 0.55rem; }
.article p { margin-bottom: 1.05rem; }
.article ul, .article ol { margin: 0 0 1.25rem 1.4rem; }
.article li { margin-bottom: 0.5rem; }
.article .lead { font-size: 1.1rem; color: #3e3e3e; }
.note-box {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; color: #92400E;
}
.info-box {
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem;
}
.legal h2 { font-size: 1.38rem; margin: 1.9rem 0 0.65rem; }
.legal p, .legal li { font-size: 0.97rem; }
.legal ul { margin: 0 0 1.25rem 1.4rem; }
.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.indep-note { color: var(--muted); font-size: 0.92rem; margin: -0.9rem 0 1.4rem; }
.hero .indep-note { color: #CBD5E1; margin: -0.9rem 0 1.2rem; }
.article p, .article li, .article td, .article th { overflow-wrap: anywhere; }
.related-guides { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem 0.6rem; margin: 2rem 0; }
.related-guides h2 { margin-top: 0; font-size: 1.25rem; }
.related-guides ul { margin-bottom: 0.6rem; }
.exam-card-head a { display: inline-flex; align-items: center; min-height: 44px; }

/* Reverse tool results */
.rt-summary { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.2rem; }
.rt-group { font-size: 1.16rem; margin: 1.7rem 0 0.85rem; }
.rt-group:first-of-type { margin-top: 0.4rem; }
.exam-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 0.8rem; background: #fff; }
.exam-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.exam-card-head b { font-family: 'Figtree', 'Noto Sans', sans-serif; color: var(--primary); font-size: 1.02rem; }
.exam-cycle { font-size: 0.78rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 0.18rem 0.6rem; border-radius: 999px; white-space: nowrap; }

/* Slim hero for tool pages */
.hero-slim { padding: 3rem 0 3.2rem; }
.hero-slim h1 { font-size: 2.2rem; }

/* Stepper chips (crucial-date explainer) */
.cd-shift { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.4rem 0 0.6rem; align-items: center; }
.cd-shift-label { font-size: 0.92rem; font-weight: 600; color: var(--primary); font-family: 'Figtree', 'Noto Sans', sans-serif; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.5rem 1.05rem; font-family: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--primary); cursor: pointer; min-height: 44px; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--accent); }
.chip:focus-visible { outline: 3px solid rgba(3,105,161,.35); outline-offset: 2px; }
.chip-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Guides index */
.guide-group { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.guide-group:first-of-type { border-top: none; margin-top: 1.2rem; padding-top: 0; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.4rem; }
  .hero h1 { font-size: 2.05rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .rrow { grid-template-columns: 120px 1fr; }
}
