/* Findia.finance — shared styles */
:root {
  --bg: #ffffff;
  --soft: #f6f8f7;
  --ink: #0f1f1a;
  --body: #46554f;
  --muted: #74827c;
  --line: #e3e9e6;
  --brand: #0b6b4f;
  --brand-dark: #084f3b;
  --brand-tint: #e8f3ef;
  --danger: #b3261e;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
}
.lede { font-size: 1.13rem; max-width: 56ch; }
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 10px 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.96rem var(--sans); cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid rgba(11, 107, 79, .35); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { font: 600 1.4rem var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--body); font-size: 0.94rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

.stack { position: relative; height: 400px; }
.stack .cover { position: absolute; width: 220px; box-shadow: 0 24px 48px -20px rgba(15, 31, 26, .35); }
.stack .cover:nth-child(1) { left: 4%; top: 46px; transform: rotate(-8deg); }
.stack .cover:nth-child(2) { right: 4%; top: 30px; transform: rotate(7deg); }
.stack .cover:nth-child(3) { left: 50%; top: 70px; transform: translateX(-50%); z-index: 2; }

/* Book covers (pure CSS) */
.cover {
  aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: var(--c, var(--brand)); position: relative; overflow: hidden;
}
.cover::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: rgba(0, 0, 0, .18);
}
.cover::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 54px; height: 46px; opacity: .5;
  background: linear-gradient(to top right, transparent 49%, #fff 49%, #fff 51%, transparent 51%) left / 25% 100% no-repeat,
              linear-gradient(to bottom right, transparent 49%, #fff 49%, #fff 51%, transparent 51%) 33.3% / 25% 60% no-repeat,
              linear-gradient(to top right, transparent 49%, #fff 49%, #fff 51%, transparent 51%) 66.6% / 25% 80% no-repeat,
              linear-gradient(to top right, transparent 49%, #fff 49%, #fff 51%, transparent 51%) right / 25% 100% no-repeat;
}
.cover .vol { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .8; padding-left: 6px; }
.cover .t { font: 600 1.35rem/1.15 var(--serif); padding-left: 6px; margin-top: 10px; }
.cover .brandmark { font-size: 0.72rem; letter-spacing: 0.08em; opacity: .8; padding-left: 6px; position: relative; z-index: 1; }

/* Promise strip */
.strip { background: var(--soft); border-block: 1px solid var(--line); padding: 26px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; }
.strip li { font-size: 0.93rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Library */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book {
  display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.book:hover { border-color: #c9d6d0; box-shadow: 0 12px 28px -18px rgba(15, 31, 26, .25); }
.book .cover { padding: 12px 10px; }
.book .cover::after { left: 12px; right: 12px; bottom: 26px; height: 22px; }
.book .cover .vol { font-size: 0.5rem; }
.book .cover .t { font-size: 0.72rem; }
.book .cover .brandmark { display: none; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-dark);
}
.book h3 { margin: 10px 0 6px; }
.book p { font-size: 0.92rem; line-height: 1.55; }

/* Steps */
.alt { background: var(--soft); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 1.6rem var(--serif); color: var(--brand); display: block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* Principles */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b6b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks strong { color: var(--ink); display: block; }
.checks.no li::before {
  background: #f3ecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7m0-7l-7 7' fill='none' stroke='%23b3261e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { margin-bottom: 20px; font-size: 1.15rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 36px 22px 0; }

/* CTA */
.cta { background: var(--brand); color: #d7ebe4; border-radius: 20px; padding: 60px 40px; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 52ch; margin: 0 auto 28px; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { background: var(--brand-tint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.88rem; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--body); }
.disclaimer { border-top: 1px solid var(--line); padding-top: 24px; max-width: 900px; line-height: 1.6; }
.disclaimer strong { color: var(--body); }

/* Registration */
.auth { min-height: calc(100vh - 69px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--soft); border-right: 1px solid var(--line); padding: 72px 56px; }
.auth-aside h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 14px 0 18px; }
.auth-aside .checks { margin-top: 36px; }
.auth-main { padding: 72px 56px; display: flex; justify-content: center; }
.form-card { width: 100%; max-width: 440px; }
.form-card h2 { font-size: 1.7rem; margin-bottom: 8px; }
.form-card > p { margin-bottom: 30px; font-size: 0.95rem; }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.hero-form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(15, 31, 26, .3);
  max-width: 460px; justify-self: end; scroll-margin-top: 92px;
}
.hero-form h2 { font-size: 1.55rem; }
.hero-form .form-intro p { margin: 8px 0 24px; font-size: 0.95rem; }
.phone { display: flex; }
.phone .cc {
  display: flex; align-items: center; padding: 0 14px; font-weight: 600; color: var(--ink);
  background: var(--soft); border: 1px solid #cfd8d4; border-right: 0; border-radius: 10px 0 0 10px;
}
.phone input { border-radius: 0 10px 10px 0; min-width: 0; }
.form-error { font-size: 0.88rem; color: var(--danger); margin-top: 14px; text-align: center; }
@media (max-width: 960px) { .hero-form { justify-self: center; width: 100%; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd8d4; border-radius: 10px;
  font: 1rem var(--sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 79, .15); }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.error { font-size: 0.82rem; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .error { display: block; }
.field.invalid .hint { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; font-weight: 400; color: var(--body); margin: 0; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.form-foot { margin-top: 20px; font-size: 0.9rem; text-align: center; }
.success { display: none; text-align: center; padding: 40px 0; }
.success .badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px; background: var(--brand-tint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b6b4f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.success p { margin: 10px 0 26px; }
.done form, .done .form-intro { display: none; }
.done .success { display: block; }

/* Legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 10px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal .callout {
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 18px 20px; margin: 0 0 14px;
}
.legal mark { background: #fff3c4; color: var(--ink); padding: 1px 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stack { height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
  .stack .cover { width: 180px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 48px 24px; }
  .auth-aside .checks { display: none; }
  .auth-main { padding: 48px 24px 64px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 52px 0 48px; }
  .nav a:not(.btn) { display: none; }
  .books { grid-template-columns: 1fr; }
  .stack { height: 280px; }
  .stack .cover { width: 150px; padding: 16px 14px; }
  .stack .cover .t { font-size: 1rem; }
  .cta { padding: 44px 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
