/* Site design system: landing (index.php) + legal pages. Tokens from the app design (Figma). */
@font-face { font-family: "Rubik"; src: url("fonts/Rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --bg-primary: #FDF4E3;
  --bg-gradient: linear-gradient(180deg, #FDF4E3 0%, #FBF3F0 50%, #FEEBE5 100%);
  --surface-primary: #FFFFFF;
  --surface-muted: #FFF7F1;
  --text-primary: #2B1810;
  --text-secondary: #5A4034;
  --text-tertiary: #806358;
  --text-inverse: #FFFFFF;
  --text-link: #A84A1A;
  --text-error: #C93B3B;
  --accent: #E8743F;
  --accent-subtle: #FFEDE1;
  --accent-text: #2B1810;
  --action-primary: #E8743F;
  --action-gradient: linear-gradient(180deg, #FF9D6B 0%, #E67233 100%);
  --action-tertiary-hover: #FFDCC7;
  --border-default: #E3D4CC;
  --border-subtle: #F3EAE5;
  --border-accent: #FFC4A3;
  --font-heading: "Rubik", -apple-system, system-ui, sans-serif;
  --font-body: "Rubik", -apple-system, system-ui, sans-serif;
  --shadow-card: 0 8px 24px rgba(201, 120, 80, 0.14);
  --shadow-button: 0 10px 20px rgba(232, 116, 63, 0.3), inset 0 3px 6px rgba(255, 255, 255, 0.7), inset 0 -4px 8px rgba(200, 90, 40, 0.25);
  --radius-card: 24px;
  --radius-pill: 999px;
  --page: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg-gradient);
}
h1, h2, h3 { font-family: var(--font-heading); margin: 0; color: var(--text-primary); }
a { color: var(--text-link); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.82); box-shadow: 0 6px 20px rgba(120, 70, 50, 0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font: 700 18px/1.2 var(--font-heading); letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: linear-gradient(135deg, #FFD9BC 14%, #F27F4C 86%); box-shadow: 0 6px 12px rgba(232, 116, 63, 0.3); }
.site-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; }
.site-nav a { font: 500 14px/18px var(--font-body); color: var(--text-secondary); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-pill); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-subtle); color: var(--text-link); }

/* Receipt card */
.card { background: var(--surface-primary); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px; }
.perf { border: 0; border-top: 1.5px dashed var(--border-subtle); margin: 16px 0; }
.eyebrow { font: 600 13px/18px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 8px; }
.lead { font-size: 17px; line-height: 26px; color: var(--text-secondary); margin: 12px 0 0; }

/* Landing */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: var(--radius-pill); font: 700 17px/1.2 var(--font-body); text-decoration: none; }
.btn-primary { background: var(--action-gradient); color: var(--text-inverse); box-shadow: var(--shadow-button); }
.lp-section { padding-block: 40px; }
.lp-title { font: 700 clamp(26px, 5vw, 36px)/1.15 var(--font-heading); letter-spacing: -0.5px; }
.lp-sub { margin: 10px 0 0; color: var(--text-secondary); font-size: 16px; line-height: 1.5; max-width: 620px; }
.lp-kicker { display: block; font: 500 12px/1.35 var(--font-body); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.lp-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.lp-link { font: 600 16px/1.2 var(--font-body); color: var(--text-link); text-decoration: none; }

.lp-hero { padding: 32px 0 24px; overflow: hidden; }
.lp-hero-grid { display: grid; gap: 8px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--radius-pill); background: var(--surface-primary); border: 1px solid var(--border-accent); font: 500 13px/1.4 var(--font-body); color: var(--text-link); }
.lp-badge img { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--accent-subtle); }
.lp-hero h1 { margin-top: 16px; font-size: clamp(36px, 8vw, 60px); line-height: 1.04; letter-spacing: -1.5px; font-weight: 800; }
.lp-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.lp-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.lp-pills li { padding: 7px 12px; border-radius: var(--radius-pill); background: var(--accent-subtle); font: 500 13px/1.3 var(--font-body); color: var(--text-secondary); }
.lp-hero-art { position: relative; height: 380px; display: flex; justify-content: center; align-items: flex-end; }
.lp-orb { position: absolute; width: 300px; height: 300px; bottom: 30px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD9BC 0%, #FFC29C 45%, #F7895A 100%); opacity: 0.55; filter: blur(2px); }
.lp-mascot { position: relative; height: 360px; width: auto; }
.lp-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; background: var(--surface-primary); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); font: 600 13px/1.2 var(--font-body); }
.lp-float img { width: 36px; height: 36px; }
.lp-float-a { left: 0; top: 70px; }
.lp-float-b { right: 0; bottom: 70px; }

.lp-split { display: grid; gap: 16px; margin-top: 24px; }
.lp-tool { background: var(--surface-primary); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.lp-tool-alt { background: var(--surface-muted); box-shadow: none; border: 1px solid var(--border-subtle); }
.lp-tool-head { display: flex; align-items: center; gap: 14px; }
.lp-tool-head img { width: 64px; height: 64px; flex: none; }
.lp-tool h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.lp-tool p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
.lp-mock { margin-top: 18px; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.lp-mock-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.lp-mock-row > span:first-child { width: 56px; flex: none; }
.lp-mock-row b { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.lp-scale { flex: 1; height: 8px; border-radius: var(--radius-pill); background: #FFEDE1; position: relative; }
.lp-scale i { position: absolute; inset: 0 55% 0 0; border-radius: inherit; background: linear-gradient(180deg, #FFC29C, #F7895A); }
.lp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-chips em { font-style: normal; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: var(--surface-muted); color: var(--text-primary); }
.lp-chips em.on { background: var(--action-tertiary-hover); border: 1.5px solid var(--accent); font-weight: 500; }
.lp-mock-foot { font-size: 12px; color: var(--text-tertiary); }
.lp-trail { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; position: relative; }
.lp-trail::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #FFC29C, #F7895A); }
.lp-trail li { display: flex; align-items: center; gap: 12px; font: 500 15px/1.35 var(--font-body); position: relative; }
.lp-trail li span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FFD9BC 14%, #F27F4C 86%); box-shadow: 0 6px 12px rgba(232, 116, 63, 0.3); }
.lp-trail li img { width: 16px; height: 16px; }

.lp-band { background: var(--text-primary); color: #FFF7F1; padding: 40px 0; margin-block: 24px; }
.lp-band .lp-title { color: #FFFFFF; }
.lp-band .lp-note { color: #E3D4CC; }
.lp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.lp-facts div { border: 1px solid rgba(255, 196, 163, 0.35); border-radius: 18px; padding: 16px; }
.lp-facts span { display: block; font-size: 13px; color: #FFC4A3; }
.lp-facts b { display: block; margin-top: 6px; font: 700 clamp(17px, 4vw, 24px)/1.2 var(--font-heading); }

.lp-example { display: grid; gap: 20px; background: var(--surface-primary); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-table th { text-align: left; font-weight: 400; color: var(--text-secondary); padding: 12px 0; border-bottom: 1px dashed var(--border-default); }
.lp-table td { text-align: right; font-weight: 600; padding: 12px 0; border-bottom: 1px dashed var(--border-default); }
.lp-total th, .lp-total td { border-bottom: 0; font-weight: 700; color: var(--text-primary); font-size: 17px; }

.lp-lender { display: flex; gap: 20px; align-items: flex-start; border-left: 4px solid var(--accent); padding: 8px 0 8px 20px; }
.lp-lender img { width: 72px; height: 72px; flex: none; }
.lp-lender p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.lp-sources { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-sources a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-pill); background: var(--surface-primary); border: 1px solid var(--border-subtle); font: 500 13px/1.2 var(--font-body); text-decoration: none; }

.lp-faq-grid { display: grid; gap: 20px; }
.lp-faq-art { width: 120px; height: 120px; margin-top: 16px; display: none; }

.lp-operator { display: grid; gap: 16px; background: var(--surface-muted); border-radius: var(--radius-card); padding: 24px; }
.lp-operator b { font-weight: 500; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }

.faq { display: grid; gap: 8px; }
.faq-item { background: var(--surface-primary); border-radius: 16px; box-shadow: 0 4px 14px rgba(201, 120, 80, 0.10); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font: 500 16px/1.4 var(--font-body); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--accent-subtle) url("form/paw-current.svg") center / 14px no-repeat; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item[open] { box-shadow: 0 0 0 2px var(--border-accent), 0 4px 14px rgba(201, 120, 80, 0.10); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-secondary); font-size: 15px; line-height: 24px; }


/* Legal pages */
.legal { padding: 24px 0 40px; }
.legal .card { max-width: 760px; margin: 0 auto; padding: 24px 20px 32px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.4px; font-weight: 700; }
.legal h2 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 28px 0 8px; padding-top: 20px; border-top: 1.5px dashed var(--border-subtle); }
.legal p { margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.legal p.legal-meta { font-size: 13px; line-height: 18px; color: var(--text-tertiary); margin-top: 8px; }
.legal-facts { list-style: none; margin: 0 0 12px; padding: 0; }
.legal-facts li { padding: 10px 0; border-bottom: 1px dashed var(--border-subtle); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.legal-facts li span { display: block; font: 600 13px/18px var(--font-body); color: var(--text-tertiary); }
.legal a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--surface-primary); margin-top: 32px; padding: 28px 0 40px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (min-width: 760px) {
  .lp-hero { padding: 56px 0 32px; }
  .lp-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .lp-hero-art { height: 460px; }
  .lp-mascot { height: 440px; }
  .lp-split { grid-template-columns: 1fr 1fr; }
  .lp-facts { grid-template-columns: repeat(4, 1fr); }
  .lp-example { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 32px; }
  .lp-faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
  .lp-faq-art { display: block; }
  .lp-operator { grid-template-columns: 1fr 1.4fr 1fr; }
  .legal .card { padding: 40px 48px 48px; }
}
.faq-item a { overflow-wrap: anywhere; }
