/* Home page styles (single file bundle) */

/* ===== Base ===== */
/* Base styles shared across home sections */
/* Base styles shared across home sections */
:root {
  --accent: #FF6A00;
  --header-h: 64px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
}

html,
body {
  scroll-behavior: auto;
  font-family: var(--font-main) !important;
}

body {
  overscroll-behavior-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
a.underline {
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip: none;
}

/* Brand wordmark */
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-size: 1.25rem;
  color: #0f172a;
}

@media (min-width:768px) {
  .brand-wordmark {
    font-size: 1.35rem;
  }
}

.brand-wordmark .brand-mark {
  color: var(--accent);
  letter-spacing: -.025em;
}

/* Cards */


/* ===== Success page ===== */
/* Success page styles migrated to Tailwind classes in views */

/* Sections helpers */
.section-title {
  letter-spacing: -.01em;
  line-height: 1.15;
  font-weight: 800;
}

.section-lead {
  color: var(--muted);
}

.screen {
  min-height: calc(100svh - var(--header-h));
}

.screen-full {
  min-height: 100svh;
}

/* Anchor scroll fix under sticky header */
section[id] {
  scroll-margin-top: var(--header-h);
}

#order {
  scroll-margin-top: var(--header-h);
}

section#top {
  scroll-margin-top: var(--header-h);
}

main#main {
  scroll-margin-top: 0;
}

/* Reveal disabled: elements are always visible without transitions */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-in {
  opacity: 1;
  transform: none;
}

/* ===== Header ===== */
/* Glass header and nav */
.site-header {
  backdrop-filter: saturate(160%) blur(8px);
  background: color-mix(in oklab, white 82%, transparent);
  border-bottom: 1px solid #eef2f6;
}

.site-nav a:not(.brand-cta) {
  color: #334155;
}

.site-nav a:not(.brand-cta):hover {
  color: var(--accent);
}

.site-nav a:focus {
  outline: none;
}

.site-nav a:not(.brand-cta):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 95, 10, .25);
  border-radius: .5rem;
}

.site-nav a:not(.brand-cta).active {
  color: var(--accent);
}

/* ===== Hero ===== */
/* Hero section + receipt demo */
.hero-shell {
  min-height: auto;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  padding-top: 2.75rem;
  padding-bottom: 3rem;
  align-items: start;
}

.hero-copy {
  max-width: 41rem;
}

.hero-proof {
  display: flex;
  justify-content: center;
  margin-top: .25rem;
}

.hero-highlights {
  align-items: start;
}

.hero-actions {
  align-items: stretch;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 3.3vw + 1rem, 3.6rem);
  line-height: 1.02;
  max-width: 13ch;
  margin: 0;
}

.hero-title-line {
  display: block;
}

.hero-title-line+.hero-title-line {
  margin-top: .25em;
}

.hero-title-accent {
  display: block;
  margin-top: .08em;
  color: var(--accent);
  white-space: normal;
  font-size: 1em;
  letter-spacing: -.02em;
}

@supports (text-wrap: pretty) {
  .hero-title-accent {
    text-wrap: pretty;
  }
}

.hero-title-sub {
  display: block;
  margin-top: .45em;
  max-width: 22ch;
  font-size: clamp(1rem, .45vw + .96rem, 1.28rem);
  font-weight: 600;
  color: #475569;
  letter-spacing: -.01em;
}

.hero-lead {
  max-width: 34ch;
  font-size: clamp(1rem, .9vw + .95rem, 1.22rem);
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

@supports (text-wrap: balance) {

  .hero-title,
  .hero-lead {
    text-wrap: balance;
  }
}

@media (min-width: 640px) {
  .hero-grid {
    gap: 2.75rem;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-title {
    max-width: 14ch;
  }
}

@media (min-width: 1024px) {
  .hero-shell {
    min-height: calc(78dvh - var(--header-h));
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
    gap: 2.5rem;
    align-items: center;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .hero-proof {
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-copy {
    max-width: 37rem;
  }

  .hero-title {
    font-size: clamp(2.45rem, 1.65vw + 1.35rem, 3.35rem);
    max-width: 13ch;
  }

  .hero-title-line+.hero-title-line {
    margin-top: .2em;
  }

  .hero-title-sub {
    font-size: clamp(1.08rem, .42vw + 1.02rem, 1.35rem);
    margin-top: .4em;
  }

  .hero-lead {
    max-width: 34ch;
    font-size: clamp(1rem, .45vw + .98rem, 1.18rem);
  }

  .receipt-card {
    width: min(320px, 100%);
  }
}

@media (min-width: 1280px) {
  .hero-shell {
    min-height: calc(82dvh - var(--header-h));
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
    gap: 3.5rem;
    align-items: center;
    padding-top: 3.75rem;
    padding-bottom: 4rem;
  }

  .hero-proof {
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-title {
    max-width: 15ch;
  }

  .hero-title-accent {
    display: inline;
    margin-top: 0;
  }

  .receipt-card {
    width: min(340px, 100%);
  }
}

.receipt-card {
  background: #fdfdfd;
  /* Slightly off-white for paper feel */
  position: relative;
  width: min(340px, 100%);
  max-width: min(100%, 92vw);
  margin-inline: auto;
  border-radius: 8px;
  /* Receipts have sharper corners */
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
  transition: box-shadow 0.3s ease;
  font-family: 'Courier New', Courier, monospace;
  /* Classic receipt font */

  /* Add a subtle noise texture for paper realism */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><defs><filter id="a" x="0" y="0" width="100%" height="100%"><feTurbulence baseFrequency=".05" numOctaves="4" stitchTiles="stitch" type="fractalNoise"/></filter></defs><rect width="100%" height="100%" filter="url(%23a)" opacity=".02"/></svg>');
}

.receipt-card:hover {
  box-shadow: 0 15px 30px rgba(15, 23, 42, .15);
}

/* Adjusting inner elements for realism */
.receipt-card .mono {
  font-family: 'Courier New', Courier, monospace;
}

.receipt-demo {
  overflow: visible;
  -webkit-overflow-scrolling: auto;
}

.receipt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5rem;
  min-height: 1.5rem;
}

.receipt-sep {
  border-bottom: 1px dotted #64748b;
  transform: translateY(-2px);
  min-width: 20px;
}

/* ===== How/Trust ===== */
/* How it works section styles migrated to Tailwind classes in views */

.trust-wrap {
  border: 1px solid #eef2f6;
  background: color-mix(in oklab, white 88%, transparent);
  border-radius: 16px;
  padding: 12px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

@media (min-width: 640px) {
  .trust-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== FAQ ===== */
/* FAQ section styles migrated to Tailwind classes in views */
/* Logo badge migrated to Tailwind in views */

/* ===== Need ===== */
/* Need section styles migrated to Tailwind classes in views */

/* ===== Pricing ===== */
/* Pricing cards */
.plan-card {
  position: relative;
  transition: border-color .2s ease, box-shadow .25s ease, background .25s ease;
}



.plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: .25rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  color: #7a2e0e;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: .5rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.plan-card:hover {
  box-shadow: 0 12px 28px rgba(2, 6, 23, .08);
}



.plan-card:hover .plan-cta {
  transform: none;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111c2f 65%, #132238 100%);
  color: rgba(226, 232, 240, .85);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(254, 95, 10, .22), transparent 55%),
    radial-gradient(circle at top right, rgba(16, 185, 129, .08), transparent 60%);
  opacity: .8;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  gap: 3rem;
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer .brand-wordmark {
  color: #f8fafc;
  font-size: 1.6rem;
}

.site-footer .brand-mark {
  color: var(--accent);
}

.site-footer__tagline {
  margin-top: 1rem;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, .7);
}

.site-footer__cta {
  display: inline-flex;
  margin-top: 1.35rem;
  padding: .7rem 1.1rem;
  border-radius: .9rem;
  background: rgba(254, 95, 10, .18);
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s ease, transform .2s ease;
}

.site-footer__cta:hover {
  background: rgba(254, 95, 10, .28);
  transform: translateY(-1px);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.site-footer__group {
  position: relative;
  padding-left: 1.2rem;
}

.site-footer__group::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: .18rem;
  height: calc(100% - .6rem);
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(254, 95, 10, .65), rgba(254, 95, 10, 0));
}

.site-footer__title {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: rgba(248, 250, 252, .9);
}

.site-footer__nav {
  margin-top: 1rem;
  display: grid;
  gap: .55rem;
  font-size: .95rem;
}

.site-footer__nav a {
  color: rgba(226, 232, 240, .75);
  transition: color .2s ease;
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__link {
  text-decoration: underline;
  text-decoration-color: rgba(254, 95, 10, .6);
  text-underline-offset: .25rem;
}

.site-footer__meta {
  color: rgba(226, 232, 240, .55);
  font-size: .85rem;
}

.site-footer__bottom {
  position: relative;
  padding: 1.2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, .2);
  text-align: center;
  font-size: .82rem;
  color: rgba(203, 213, 225, .7);
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 767px) {


  .site-footer__inner {
    gap: 2.5rem;
  }

  .site-footer__brand {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    align-items: start;
  }

  .site-footer__grid {
    margin-left: auto;
  }
}

.plan-card-selected {
  border-color: rgba(254, 95, 10, .55);
  box-shadow: 0 16px 36px rgba(254, 95, 10, .16);
  background: linear-gradient(180deg, #fffdfa, #fff6ef);
}

.plan-card-selected .plan-cta {
  transform: none;
}

/* ===== Order form ===== */
.application-form-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, .10) 0, rgba(255, 106, 0, .10) 4px, transparent 4px),
    radial-gradient(520px 220px at 100% 0%, rgba(255, 106, 0, .04), transparent 62%),
    #fff;
}

.application-form-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  pointer-events: none;
  background: linear-gradient(180deg, #FF6A00, #FDBA74);
}

.application-fields,
.application-summary {
  position: relative;
  overflow: hidden;
}

.application-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .application-form-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "fields summary";
    align-items: start;
  }

  .application-fields {
    grid-area: fields;
  }

  .application-summary {
    grid-area: summary;
    align-self: start;
  }
}

@media (min-width: 1280px) {
  .application-form-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.application-fields::before,
.application-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.application-summary {
  background:
    radial-gradient(320px 150px at 100% 0%, rgba(255, 106, 0, .055), transparent 65%),
    #F8FAFC !important;
}

.application-step {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  border: 1px solid #FED7AA;
  background: #FFF7ED;
  color: #C2410C;
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem .7rem;
  border-radius: .75rem;
  background: rgba(148, 163, 184, .12);
  font-variant-numeric: tabular-nums;
}

.breakdown-label {
  font-weight: 600;
  color: rgb(100 116 139);
}

.breakdown-value {
  color: rgb(71 85 105);
}

.breakdown-total {
  background: rgba(254, 95, 10, .12);
  color: rgb(15 23 42);
}

.breakdown-total .breakdown-label {
  color: rgb(15 23 42);
  font-weight: 700;
}

.breakdown-total .breakdown-value {
  font-weight: 700;
}

/* Removed legacy .pp-label/.pp-input/.pp-mrz; migrated to Tailwind utilities */

/* Normalize date input appearance */
/* Normalize date input appearance now handled via browser defaults/Tailwind focus utilities */

/* Passport MRZ pane gradient */
.pp-mrz-pane {
  --bg: radial-gradient(1200px 600px at 120% -10%, rgba(254, 95, 10, .06), transparent 60%),
    radial-gradient(900px 600px at -20% 120%, rgba(15, 23, 42, .04), transparent 55%);
  --ink: rgb(15 23 42);
  background:
    linear-gradient(#fff, #fff0 40% 60%, #fff),
    var(--bg);
  color: var(--ink);
}

/* Premium calm redesign overrides */
.font-display,
h1,
h2,
h3 {
  font-family: var(--font-display);
}

.brand-cta {
  background: #FF6A00 !important;
  color: #fff !important;
  border-radius: .75rem !important;
  box-shadow: 0 10px 20px rgba(255, 106, 0, .16) !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}

.brand-cta:hover {
  filter: none !important;
  background: #EA580C !important;
}

.brand-btn-secondary {
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  background: #fff !important;
  box-shadow: none !important;
}

.brand-btn-secondary:hover {
  border-color: #CBD5E1 !important;
  filter: none !important;
}

.site-header {
  background: rgba(255, 255, 255, .9) !important;
  border-bottom-color: #E2E8F0 !important;
  box-shadow: none !important;
}

.hero-shell {
  min-height: auto !important;
  display: block !important;
}

.hero-title {
  max-width: 720px !important;
  letter-spacing: 0;
}

.hero-title-sub,
.hero-lead {
  text-wrap: pretty;
}

.hero-proof {
  display: flex;
  justify-content: center;
}

.hero-layout {
  grid-template-columns: 1fr;
}

.hero-trust > li {
  min-width: 0;
}

@media (min-width: 1024px) {
  #top,
  #how,
  #need,
  #pricing,
  #guides {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    padding-top: clamp(3rem, 6svh, 5rem) !important;
    padding-bottom: clamp(3rem, 6svh, 5rem) !important;
  }

  #order,
  #faq {
    min-height: calc(100svh - var(--header-h));
    padding-top: clamp(3rem, 6svh, 5rem) !important;
    padding-bottom: clamp(3rem, 6svh, 5rem) !important;
  }

  #top > div,
  #how > div,
  #need > div,
  #pricing > div,
  #guides > div,
  #order > div,
  #faq > div {
    width: 100%;
  }

  #top {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }

  #top .hero-layout {
    padding-top: 0 !important;
    padding-bottom: clamp(2rem, 4svh, 3rem) !important;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px) !important;
  }

  .hero-copy {
    max-width: 680px !important;
  }

  .hero-proof {
    justify-content: flex-end !important;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.85rem !important;
    line-height: 1.04 !important;
  }

  .hero-title-sub {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }

  .hero-lead {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .receipt-card {
    width: min(100%, 390px) !important;
  }

  .receipt-card .p-5,
  .receipt-card .sm\:p-6 {
    padding: 1rem !important;
  }

  .receipt-row {
    padding: .55rem 0 !important;
  }
}

.receipt-card {
  width: min(100%, 420px) !important;
  max-width: 100% !important;
  overflow: hidden;
  border-radius: 1.5rem !important;
  border: 1px solid #E2E8F0 !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .10) !important;
  font-family: var(--font-main) !important;
}

.receipt-card:hover {
  box-shadow: 0 24px 60px rgba(15, 23, 42, .10) !important;
}

.receipt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  min-height: auto;
}

.receipt-row span {
  color: #64748B;
}

.receipt-row strong {
  color: #0F172A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .86rem;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.plan-card {
  transition: border-color .15s ease, box-shadow .15s ease;
}

.plan-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07) !important;
}

.plan-badge {
  top: 1rem;
  right: 1rem;
  border-radius: 9999px;
  border-color: #FED7AA;
  background: #FFF7ED;
  color: #C2410C;
}

.plan-card-selected {
  border-color: #FF6A00 !important;
  background: #fff !important;
  box-shadow: 0 18px 36px rgba(255, 106, 0, .12) !important;
}

.breakdown-row {
  background: #fff;
  border: 1px solid #E2E8F0;
}

.breakdown-label {
  color: #64748B;
}

.breakdown-value {
  color: #0F172A;
  font-weight: 600;
}

.breakdown-total {
  border-color: #FED7AA;
  background: #FFF7ED;
}

.site-footer {
  margin-top: 0 !important;
  background: #fff !important;
  color: #475569 !important;
}

.site-footer::before {
  display: none !important;
}

.site-footer .brand-wordmark {
  color: #0F172A !important;
}

.site-footer__tagline,
.site-footer__nav a,
.site-footer__meta,
.site-footer__bottom {
  color: #475569 !important;
}

.site-footer__title {
  color: #0F172A !important;
}

.site-footer__group {
  padding-left: 0 !important;
}

.site-footer__group::before {
  display: none !important;
}

.site-footer__cta {
  color: #fff !important;
  background: #FF6A00 !important;
}

.site-footer__nav a:hover {
  color: #0F172A !important;
}

.site-footer__bottom {
  border-top-color: #E2E8F0 !important;
}

details > summary {
  list-style: none;
  color: #0F172A;
}

details > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 639px) {
  .hero-title {
    max-width: 100% !important;
  }

  .brand-cta,
  .brand-btn {
    width: 100%;
  }

  .site-header .brand-cta {
    width: auto;
  }

  .receipt-row {
    align-items: flex-start;
  }
}
