@import url("../opendesign/design-systems/recebora-product/tokens/colors_and_type.css");

:root {
  --ink: var(--rc-ink);
  --muted: var(--rc-muted);
  --line: var(--rc-line);
  --paper: var(--rc-paper);
  --panel: var(--rc-surface);
  --green: var(--rc-green);
  --green-dark: var(--rc-green-dark);
  --green-soft: var(--rc-mint);
  --blue: var(--rc-blue);
  --blue-soft: var(--rc-blue-soft);
  --amber: var(--rc-amber);
  --amber-soft: var(--rc-amber-soft);
  --coral: var(--rc-coral);
  --shadow: var(--rc-shadow-float);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--rc-font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { text-wrap: pretty; }

.skip-link { position: fixed; z-index: 100; top: -80px; left: 12px; padding: 10px 12px; background: #fff; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }

.site-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 184px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.brand img { display: block; width: 166px; height: 44px; object-fit: contain; object-position: left; }
.site-nav nav { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-nav nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav nav a:hover, .site-nav nav a:focus-visible { border-color: var(--green); color: var(--ink); }
.nav-actions, .hero-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.menu-button span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  transition: transform var(--rc-fast) ease, background var(--rc-standard) ease, border-color var(--rc-standard) ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(36, 87, 197, 0.28); outline-offset: 2px; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary, .button.quiet { background: #fff; }
.button.quiet { min-height: 38px; }
.button.large { min-height: 50px; padding: 0 22px; }

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  gap: 46px;
  align-items: center;
  min-height: 690px;
  overflow: hidden;
  padding: 62px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 600px; }
.hero-product { grid-column: 2; grid-row: 1; min-width: 0; }
.eyebrow { margin: 0; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.hero h1 { margin: 12px 0 8px; font-family: var(--rc-font-display); font-size: 72px; line-height: 1; letter-spacing: 0; }
.hero h2 { max-width: 590px; margin: 0 0 20px; font-family: var(--rc-font-display); font-size: 38px; line-height: 1.09; letter-spacing: 0; }
.lead { max-width: 570px; color: #3f574e; font-size: 18px; line-height: 1.65; }
.hero-actions { flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.hero-trust li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); }

.return-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; padding-top: 15px; border-top: 2px solid var(--line); }
.return-track span { position: relative; color: var(--muted); font-size: 11px; font-weight: 700; }
.return-track span::before { content: ""; position: absolute; top: -21px; left: 0; width: 10px; height: 10px; border: 2px solid #fbfcfa; background: var(--green); }
.return-track span:last-child { color: var(--green-dark); }

.product-window { display: grid; grid-template-columns: 64px 1fr; width: 780px; max-width: 100%; min-height: 500px; border: 1px solid #cbd8d1; border-radius: 8px 0 0 8px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.product-rail { display: flex; flex-direction: column; align-items: center; gap: 23px; padding: 18px 10px; background: var(--ink); }
.product-rail img { width: 38px; height: 38px; }
.product-rail i { width: 28px; height: 7px; border-radius: 4px; background: #4c695e; }
.product-content { padding: 28px; background: #fbfcfb; }
.product-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.product-head span { font-size: 20px; font-weight: 800; }
.product-head b { color: var(--muted); font-size: 12px; }
.product-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border-block: 1px solid var(--line); background: #fff; }
.product-metrics > div { min-height: 112px; padding: 16px; border-right: 1px solid var(--line); }
.product-metrics > div:last-child { border-right: 0; }
.product-metrics span, .product-metrics em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
.product-metrics strong { display: block; margin: 9px 0; font-size: 27px; font-variant-numeric: tabular-nums; }
.product-metrics em { color: var(--green); }
.collection-list { border: 1px solid var(--line); background: #fff; }
.collection-row { display: grid; grid-template-columns: 40px 1fr 78px 104px; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); }
.collection-row:last-child { border-bottom: 0; }
.collection-row .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.avatar.blue { background: var(--blue-soft); color: var(--blue); }
.avatar.amber { background: var(--amber-soft); color: #765200; }
.collection-row b, .collection-row small { display: block; }
.collection-row small { margin-top: 3px; color: var(--muted); }
.collection-row em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.collection-row strong { color: var(--green); font-size: 12px; }
.recovery-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px; background: var(--green); color: #fff; }

.proof-band { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #29463c; background: var(--ink); color: #fff; }
.proof-band > div { position: relative; min-height: 104px; padding: 24px 28px; border-right: 1px solid #355147; }
.proof-band > div:last-child { border-right: 0; }
.proof-band strong { display: block; font-family: var(--rc-font-display); font-size: 21px; }
.proof-band span { display: block; margin-top: 6px; color: #c2d1cb; font-size: 12px; line-height: 1.45; }

.section { display: grid; grid-template-columns: minmax(290px, 0.8fr) minmax(520px, 1.2fr); gap: 84px; align-items: start; padding: 104px max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 680px; }
.section h2, .calculator h2, .closing h2 { margin: 10px 0 18px; font-family: var(--rc-font-display); font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.section-heading > p:not(.eyebrow), .jobs-grid p, .steps p, .rules-grid p, .faq-list p, .closing > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.65; }

.jobs-section { background: var(--paper); }
.jobs-grid { display: grid; }
.jobs-grid article { display: grid; grid-template-columns: 0.7fr 0.9fr 1.6fr; gap: 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.jobs-grid article:last-child { border-bottom: 1px solid var(--line); }
.jobs-grid span { color: var(--blue); font-size: 12px; font-weight: 800; }
.jobs-grid h3 { margin: 0; font-size: 20px; }
.jobs-grid p { margin: 0; font-size: 15px; }

.workflow { background: #fff; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: recebora-step; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 23px 0; border-top: 1px solid var(--line); counter-increment: recebora-step; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); font-weight: 800; }
.steps h3 { margin: 1px 0 5px; font-size: 22px; }
.steps p { margin: 0; }

.product-section { align-items: center; background: var(--blue-soft); }
.product-demo { min-width: 0; border: 1px solid #bdcbea; border-radius: 8px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.demo-toolbar button, .demo-row button { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: #fff; color: var(--ink); font-weight: 800; }
.demo-toolbar button { border-color: var(--green); background: var(--green); color: #fff; }
.demo-table { padding: 8px 18px 18px; }
.demo-row { display: grid; grid-template-columns: 1.4fr 0.65fr 0.65fr 0.55fr; gap: 10px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.demo-row span small { display: block; margin-top: 4px; color: var(--muted); }
.demo-row em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.demo-row i { width: fit-content; padding: 6px 7px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.demo-row i.blue-status { background: var(--blue-soft); color: var(--blue); }
.demo-row i.amber-status { background: var(--amber-soft); color: #765200; }
.demo-title { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.feature-list { display: grid; gap: 0; padding: 0; border-top: 1px solid #bdcbea; list-style: none; color: var(--muted); line-height: 1.55; }
.feature-list li { padding: 15px 0; border-bottom: 1px solid #bdcbea; }
.feature-list strong { display: block; margin-bottom: 3px; color: var(--ink); }
.text-link, .source-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 800; }

.channel-section { background: #fff; }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.rules-grid article { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.rules-grid article:nth-child(odd) { padding-right: 26px; border-right: 1px solid var(--line); }
.rules-grid article:nth-child(even) { padding-left: 26px; }
.rules-grid strong { display: block; margin: 0 0 8px; font-size: 18px; }
.rules-grid p { margin: 0; font-size: 15px; }

.security-section { background: var(--ink); color: #fff; }
.security-section .eyebrow { color: #7ac4a9; }
.security-section .section-heading > p:not(.eyebrow) { color: #c0d1ca; }
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #3c574d; }
.security-grid span { padding: 18px 0; border-bottom: 1px solid #3c574d; color: #eaf2ee; font-weight: 700; }
.security-grid span:nth-child(odd) { padding-right: 24px; border-right: 1px solid #3c574d; }
.security-grid span:nth-child(even) { padding-left: 24px; }

.pricing-section { grid-template-columns: 0.72fr 1.28fr; }
.pricing-wrap { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(280px, 1.1fr); gap: 30px; }
.pricing-card { display: flex; flex-direction: column; padding: 28px; border: 2px solid var(--green); border-radius: 8px; background: #fff; }
.plan-name { margin: 0; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pricing-card h3 { margin: 12px 0 2px; font-family: var(--rc-font-display); font-size: 38px; }
.pricing-card h3 small { font-family: var(--rc-font-body); font-size: 14px; }
.pricing-card > strong { color: var(--blue); }
.pricing-card ul { display: grid; gap: 10px; margin: 24px 0; padding-left: 20px; color: var(--muted); line-height: 1.45; }
.founder-offer { margin: 4px 0 22px; padding: 13px 0; border-block: 1px solid #e5c77c; color: var(--muted); line-height: 1.5; }
.pricing-explainer { display: grid; }
.pricing-explainer > div { padding: 21px 0; border-bottom: 1px solid var(--line); }
.pricing-explainer > div:first-child { border-top: 1px solid var(--line); }
.pricing-explainer span { display: block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pricing-explainer strong { display: block; margin: 7px 0; font-size: 18px; }
.pricing-explainer p { margin: 0; color: var(--muted); line-height: 1.5; }

.calculator { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(460px, 1.2fr); gap: 84px; padding: 96px max(24px, calc((100vw - 1240px) / 2)); background: var(--amber-soft); }
#recoveryForm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 24px; border: 1px solid #e3c875; border-radius: 8px; background: #fff; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
input, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: #fff; color: var(--ink); }
#recoveryForm button { grid-column: 1 / -1; }
#recoveryResult { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; border: 1px solid var(--line); }
#recoveryResult span { padding: 12px; border-right: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 750; }
#recoveryResult span:last-child { border-right: 0; }
#recoveryResult strong { display: block; margin-top: 8px; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }

.faq-section { background: #fff; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { padding: 19px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 750; }
.faq-list p { margin-bottom: 0; font-size: 15px; }
.closing { padding: 108px max(24px, calc((100vw - 1240px) / 2)); text-align: center; background: var(--green-soft); }
.closing > img { width: 68px; height: 68px; }
.closing h2, .closing > p { max-width: 800px; margin-left: auto; margin-right: auto; }
.closing .hero-actions { justify-content: center; }
.closing .eyebrow { margin-top: 18px; }

footer { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center; padding: 34px max(24px, calc((100vw - 1240px) / 2)); background: #fff; }
footer img { width: 160px; }
footer p, footer small { color: var(--muted); }
footer div { display: flex; gap: 18px; font-weight: 750; }
footer small { grid-column: 1 / -1; }

@media (max-width: 1080px) {
  .site-nav { grid-template-columns: 170px 1fr auto; }
  .site-nav nav { gap: 14px; }
  .nav-actions .quiet { display: none; }
  .hero { grid-template-columns: minmax(380px, 0.95fr) minmax(460px, 1.05fr); gap: 30px; }
  .hero h1 { font-size: 62px; }
  .hero h2 { font-size: 33px; }
  .section, .calculator { gap: 48px; }
  .section h2, .calculator h2, .closing h2 { font-size: 42px; }
  .pricing-section, .pricing-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .site-nav { grid-template-columns: 1fr auto auto; padding: 10px 18px; }
  .menu-button { display: block; }
  .site-nav nav { position: absolute; top: 70px; left: 0; right: 0; display: none; padding: 12px 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
  .site-nav nav.is-open { display: grid; gap: 0; }
  .site-nav nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 54px 24px 0; }
  .hero-copy { grid-column: 1; grid-row: 1; max-width: 680px; }
  .hero-product { grid-column: 1; grid-row: 2; width: calc(100% + 48px); height: 370px; margin: 38px -24px 0; overflow: hidden; }
  .product-window { width: 820px; max-width: none; min-height: 470px; margin-left: 24px; }
  .proof-band { grid-template-columns: repeat(2, 1fr); }
  .proof-band > div:nth-child(2) { border-right: 0; }
  .proof-band > div:nth-child(-n+2) { border-bottom: 1px solid #355147; }
  .section, .calculator { grid-template-columns: 1fr; gap: 36px; padding: 74px 24px; }
  .product-section .product-demo { order: 2; }
  footer { grid-template-columns: 1fr; padding: 32px 24px; }
  footer div { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .brand img { width: 150px; }
  .hero { padding: 42px 16px 0; }
  .hero h1 { font-size: 48px; }
  .hero h2 { font-size: 29px; }
  .lead { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .return-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .return-track span { padding-right: 4px; font-size: 9px; }
  .hero-product { width: calc(100% + 32px); height: 288px; margin: 34px -16px 0; }
  .product-window { width: 690px; min-height: 410px; grid-template-columns: 58px 1fr; margin-left: 10px; }
  .product-content { padding: 18px; }
  .product-metrics > div { min-height: 92px; padding: 12px; }
  .product-metrics strong { font-size: 20px; }
  .proof-band > div { min-height: 98px; padding: 18px 16px; }
  .proof-band strong { font-size: 18px; }
  .section, .calculator { padding: 62px 16px; }
  .section h2, .calculator h2, .closing h2 { font-size: 33px; }
  .jobs-grid article { grid-template-columns: 1fr; gap: 7px; }
  .rules-grid, .security-grid, #recoveryForm, #recoveryResult { grid-template-columns: 1fr; }
  .rules-grid article, .rules-grid article:nth-child(odd), .rules-grid article:nth-child(even), .security-grid span, .security-grid span:nth-child(odd), .security-grid span:nth-child(even) { padding: 18px 0; border-right: 0; }
  .demo-table { min-width: 620px; }
  .product-demo { overflow-x: auto; }
  .pricing-card { padding: 22px; }
  .pricing-card h3 { font-size: 32px; }
  #recoveryResult span { border-right: 0; border-bottom: 1px solid var(--line); }
  #recoveryResult span:last-child { border-bottom: 0; }
  .closing { padding: 76px 16px; }
  footer { padding: 30px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
