/* Finolar public site. No scripts, no external fonts or images: the page is served under a strict content policy. */
:root {
  --ink: #0b2540;
  --muted: #3d5a78;
  --card: #ffffffcc;
  --line: #bcd8f2;
  --sky-top: #bfe3ff;
  --sky-mid: #e3f2ff;
  --sky-low: #f7fbff;
  --accent: #0a66c2;
  --accent-ink: #ffffff;
  --coin: #ffc93c;
  --good: #0f8a5f;
  --warn: #c77700;
  --radius: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf4ff;
    --muted: #a9c4df;
    --card: #12304fcc;
    --line: #27507a;
    --sky-top: #0a1c33;
    --sky-mid: #0d2543;
    --sky-low: #0f2a4a;
    --accent: #6cb8ff;
    --accent-ink: #04162a;
    --coin: #ffd25e;
    --good: #5fd6a2;
    --warn: #ffb347;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 17px/1.6 var(--sans); background: var(--sky-low); background-image: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 100%); background-attachment: fixed; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

header.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); }
nav.main { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 600; }
nav.main a:hover { color: var(--accent); }

.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { transform: translateY(-1px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 28px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero h1 .mark { background: var(--coin); color: #0b2540; padding: 0 8px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0; max-width: 34ch; }
.badge { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); margin-bottom: 14px; }

.strip { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: 0 10px 30px #0a3a7a22; }
.strip svg { width: 100%; height: auto; display: block; }
.strip figcaption { text-align: center; font-size: 14px; color: var(--muted); padding: 4px 8px 2px; }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 40px; padding: 0; list-style: none; }
.promises li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; }
.promises li span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 4px; }
.promises .ico { font-size: 26px; display: block; }

section { padding: 34px 0; }
section > h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
section > p.sub { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 6px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .pic { width: 64px; height: 64px; }
.soon { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coin); color: #3a2a00; font-weight: 900; font-size: 20px; }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--muted); }

dl.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 24px; margin: 0; }
dl.glossary div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
dl.glossary dt { font-weight: 800; }
dl.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

.facts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 800; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

.final { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 20px; }
.final h2 { margin-top: 0; }
.final .cta { justify-content: center; }
footer { padding: 30px 0 50px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.fine { font-size: 14px; }

.legal-page { width: min(820px, 100% - 32px); margin: 0 auto; padding: 20px 0 60px; }
.legal-page h1 { font-size: 34px; }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* the cartoon moves a little; people who ask for less motion get none */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 4s ease-in-out infinite; }
  .float.b { animation-delay: -1.3s; }
  .float.c { animation-delay: -2.6s; }
  .pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero p.lede { max-width: none; }
  .facts th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .facts td { display: block; }
}

/* ---- clause cards: white with soft sky and grass hues, a big drawing floating on top, the sentence beneath it ---- */
.legal-page.wide { width: min(1100px, 100% - 32px); }
.swipe-hint { display: none; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.flipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin: 18px 0; align-items: stretch; }
.flipcard { position: relative; height: 420px; perspective: 1100px; }
.flip-toggle { position: absolute; opacity: 0; pointer-events: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.flip-toggle:checked ~ .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; box-sizing: border-box; border-radius: 22px; padding: 16px 18px 12px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; color: #0b2540;
  background:
    radial-gradient(120% 70% at 100% 0%, #d9eeff 0%, rgba(217, 238, 255, 0) 60%),
    radial-gradient(110% 65% at 0% 100%, #dcf3d6 0%, rgba(220, 243, 214, 0) 62%),
    #ffffff;
  border: 1px solid #d3e6f3; box-shadow: 0 8px 22px rgba(10, 58, 122, .16);
}
.face.front { align-items: center; text-align: center; }
.face.front .art { flex: 1 1 58%; min-height: 0; width: 100%; height: auto; filter: drop-shadow(0 8px 8px rgba(10, 70, 130, .2)); }
.face.front b { font-size: 18px; line-height: 1.25; margin-top: 4px; }
.face.front .point { color: #3d5a78; font-size: 14.5px; line-height: 1.4; margin: 4px 0 8px; }
.face small { margin-top: auto; color: #5d7a96; font-weight: 600; font-size: 11.5px; letter-spacing: .02em; text-align: center; opacity: .8; }
.face.back { transform: rotateY(180deg); text-align: left; }
.face.back .where { color: #4d6a86; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.face.back .back-title { font-size: 18px; line-height: 1.25; margin: 2px 0 10px; }
.face.back .text { flex: 1; overflow: auto; font-size: 14.5px; line-height: 1.45; padding-right: 4px; }
.face.back .text p { margin: 0 0 .6em; }
.face.back .text .cell { margin: 0 0 .85em; }
.face.back .text .cell-label { display: block; color: #0a66c2; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.face.back .text ul, .face.back .text ol { padding-left: 20px; margin: 0 0 .6em; }
.face.back .text a { color: #0a66c2; }
.flip-toggle:focus-visible ~ .flip-inner .front { outline: 3px solid #0a66c2; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .face.front .art { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
/* on a phone the cards sit in one row that slides sideways, one card at a time */
@media (max-width: 700px) {
  .swipe-hint { display: block; }
  .flipgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 6px 2px 16px; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .flipcard { flex: 0 0 84%; max-width: 360px; height: 460px; scroll-snap-align: center; }
}
.legal-nav { font-size: 15px; }
.draft-banner { background: var(--coin); color: #3a2a00; border-radius: 10px; padding: 10px 14px; }
.disclaimer { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

.nav-logo { vertical-align: middle; }
