@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input, textarea { font: inherit; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
}
@layer base {
  :root { --navy: #142b70; --blue: #173fc4; --yellow: #f8bf0b; --ink: #24314d; --muted: #62708a; --line: #dce4f2; --pale: #f2f7ff; --radius: 20px; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--ink); background: #fff; font-size: 1rem; line-height: 1.65; }
  h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.04em; }
  h1 { font-size: clamp(2.65rem, 4.3vw, 4.75rem); font-weight: 750; }
  h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); font-weight: 750; }
  h3 { font-size: 1.15rem; letter-spacing: -.02em; }
  h1 span, h2 span { color: #bb8600; }
  p { text-wrap: pretty; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
  .wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
  .quiet { color: var(--muted); font-size: .875rem; }
  .lead { font-size: 1.125rem; line-height: 1.7; color: #53617c; }
}
@layer components {
  .skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; background: white; padding: 12px; }
  .skip-link:focus { top: 12px; }
  #site-header { border-bottom: 1px solid #eaf0f7; background: #fff; }
  .header-inner { display: flex; align-items: center; gap: 30px; min-height: 94px; }
  .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); font-size: 1.9rem; letter-spacing: -.05em; font-weight: 500; flex-shrink: 0; }
  .brand img { width: 49px; height: 49px; object-fit: contain; }
  .brand b { color: #e9ad00; font-weight: 500; }
  .nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
  .nav a { font-size: .875rem; text-decoration: none; padding: 10px 0; position: relative; white-space: nowrap; }
  .nav a[aria-current="page"] { font-weight: 700; color: var(--navy); }
  .nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 4px; height: 3px; border-radius: 3px; left: 0; right: 0; background: var(--yellow); }
  .header-access { font-size: .875rem !important; min-height: 42px !important; padding: 8px 17px !important; }
  .menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; color: var(--navy); cursor: pointer; }
  .hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: 50px; align-items: center; padding-top: 72px; padding-bottom: 64px; min-height: 590px; }
  .hero-copy { max-width: 540px; }
  .eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .14em; color: #5e6b85; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
  .eyebrow::before { content: ''; width: 30px; height: 3px; background: var(--yellow); flex-shrink: 0; }
  .hero h1 { margin-bottom: 24px; }
  .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 13px 21px; min-height: 50px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: .9375rem; text-decoration: none; cursor: pointer; line-height: 1.5; transition: background .18s, transform .18s; }
  .button:hover { transform: translateY(-1px); }
  .primary { color: white; background: var(--navy); box-shadow: 0 5px 12px #173b9920; }
  .primary:hover { background: var(--blue); }
  .secondary { color: var(--navy); border-color: #c6d3e9; background: white; }
  .secondary:hover { background: var(--pale); }
  .yellow { color: var(--navy); background: var(--yellow); }
  .hero-note { margin-top: 19px; }
  .hero-product { position: relative; padding: 28px 0 60px; }
  .hero-product::before { content: ''; position: absolute; top: -24px; right: -14px; width: 280px; height: 280px; border-radius: 50%; background: var(--yellow); z-index: -1; }
  .product-panel { border: 1px solid #cad6e9; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 24px 65px #19387820; }
  .product-topbar { display: flex; align-items: center; padding: 12px 18px; gap: 8px; border-bottom: 1px solid #e9eef6; color: var(--navy); font-size: .875rem; font-weight: 650; }
  .product-topbar img { width: 23px; height: 23px; }
  .sample-label { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 400; }
  .product-body { display: grid; grid-template-columns: 114px 1fr; min-height: 345px; }
  .product-sidebar { background: var(--navy); color: #fff; padding: 24px 14px; font-size: .75rem; }
  .product-sidebar p { margin-bottom: 16px; opacity: .75; }
  .product-sidebar p:first-child { background: #ffffff21; border-radius: 5px; padding: 7px; margin-left: -7px; opacity: 1; }
  .product-main { padding: 22px; background: #f8faff; }
  .product-main h3 { font-size: 1.05rem; margin-bottom: 16px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { background: white; border: 1px solid #e6ecf5; padding: 12px 8px; border-radius: 6px; font-size: .75rem; color: var(--muted); }
  .stat strong { font-size: 1.55rem; color: var(--navy); display: block; line-height: 1.4; }
  .preview-list { margin-top: 18px; background: white; border-radius: 7px; border: 1px solid #e6ecf5; padding: 14px; }
  .preview-list h4 { font-size: .875rem; margin: 0 0 8px; color: var(--navy); }
  .preview-person { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: .75rem; border-top: 1px solid #edf0f7; }
  .initials { width: 31px; height: 31px; background: #e7f0fa; color: #315889; font-weight: 650; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
  .preview-person small { display: block; font-size: .75rem; color: var(--muted); }
  .badge { margin-left: auto; color: #25724b; background: #eef9f1; padding: 3px 7px; border-radius: 4px; font-size: .75rem; }
  .mobile-preview { position: absolute; right: -20px; bottom: 24px; width: 196px; background: white; border: 1px solid #cdd9eb; border-radius: 13px; padding: 15px; box-shadow: 0 14px 35px #19387822; }
  .mobile-preview h4 { color: var(--navy); font-size: .875rem; margin: 0 0 8px; }
  .mobile-preview .preview-person { padding-block: 9px; }
  .product-caption { padding-top: 13px; color: var(--muted); font-size: .75rem; }
  .features { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 48px; }
  .feature { padding: 28px; background: #fff; }
  .feature + .feature { border-left: 1px solid var(--line); }
  .icon { width: 34px; height: 34px; color: var(--blue); margin-bottom: 16px; display: block; }
  .feature:nth-child(even) .icon { color: #dc9d00; }
  .feature h3 { margin-bottom: 11px; font-size: 1rem; line-height: 1.3; }
  .feature p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
  .home-note { padding: 4px 0 48px; display: flex; align-items: center; justify-content: space-between; }
  .home-note p { color: #64718a; font-size: 1.2rem; line-height: 1.5; }
  .home-note strong { color: var(--navy); font-weight: 650; }
  .text-link { color: var(--navy); text-decoration-color: #e9b217; text-underline-offset: 5px; font-weight: 650; }
  #site-footer { border-top: 1px solid var(--line); background: #f7faff; }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: .875rem; color: var(--muted); }
  .footer-inner p { color: var(--navy); }
  .footer-links { display: flex; gap: 22px; }
  .footer-links a { text-underline-offset: 4px; }
  .page-heading { padding-top: 64px; margin-bottom: 38px; max-width: 750px; }
  .page-heading h1 { font-size: clamp(2.4rem, 4vw, 3.65rem); margin-bottom: 20px; }
  .page-heading .eyebrow { margin-bottom: 15px; }
  .page-content { padding-bottom: 72px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
  .check-list { list-style: none; margin: 24px 0 0; padding: 0; }
  .check-list li { display: flex; gap: 12px; margin-bottom: 13px; }
  .check-list li::before { content: '✓'; font-weight: 750; color: var(--blue); }
  .pastoral { width: min(100%, 360px); justify-self: center; background: white; }
  .pastoral img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
  .pastoral figcaption { padding: 18px 8px 0; font-size: .9375rem; color: var(--navy); text-align: center; }
  .pastoral blockquote { margin: 0 0 9px; font-size: 1.05rem; font-weight: 600; }
  .pastoral cite { font-style: normal; color: #946900; font-size: .875rem; }
  .benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
  .benefit { background: #f3f7fe; padding: 25px; border-radius: 12px; }
  .benefit:nth-child(even) { background: #fffaed; }
  .benefit h3 { margin-bottom: 10px; }
  .benefit p { color: var(--muted); font-size: .9375rem; }
  .function-list { display: grid; gap: 22px; }
  .function-item { display: grid; grid-template-columns: 35px 1fr; gap: 19px; }
  .function-item .icon { margin: 3px 0 0; width: 29px; height: 29px; }
  .function-item h3 { margin-bottom: 6px; }
  .function-item p { color: var(--muted); }
  .notice { border: 1px solid #ead79b; background: #fffbef; border-radius: 12px; padding: 20px 24px; }
  .notice p { margin-top: 5px; }
  .tier-table { width: 100%; border-collapse: collapse; margin: 26px 0 30px; }
  .tier-table th { text-align: left; color: white; background: var(--navy); padding: 15px 24px; font-size: .9375rem; }
  .tier-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .tier-table tbody tr:nth-child(even) { background: #f5f8fe; }
  .tier-table td:last-child { color: #6b768e; }
  .narrow { max-width: 860px; }
  .faq-list { display: grid; gap: 12px; }
  details { border: 1px solid var(--line); border-radius: 10px; background: white; }
  summary { list-style: none; padding: 18px 23px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 20px; cursor: pointer; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; font-size: 1.3rem; line-height: 1.3; font-weight: 400; }
  details[open] summary::after { content: '−'; }
  details[open] { background: #f7faff; }
  details p { padding: 0 23px 22px; color: #53617c; }
  .contact-layout { max-width: 720px; }
  .contact-form { display: grid; gap: 18px; }
  .contact-form label { display: grid; gap: 7px; color: var(--navy); font-size: .9375rem; font-weight: 600; }
  input, textarea { width: 100%; padding: 12px 15px; border: 1px solid #cdd8e8; border-radius: 8px; background: white; color: var(--ink); font-size: 1rem; }
  input:focus, textarea:focus { border-color: var(--blue); }
  textarea { resize: vertical; min-height: 150px; }
  .bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
  .form-status { color: var(--navy); min-height: 1.5em; }
  .auth-page { background: linear-gradient(105deg, #f0f6ff 0%, #f9fbff 45%, #fff 45%); }
  .auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; padding-top: 64px; padding-bottom: 76px; min-height: 660px; }
  .auth-story h1 { font-size: clamp(2.4rem, 3.6vw, 3.8rem); margin-bottom: 24px; }
  .auth-story .lead { max-width: 450px; }
  .auth-story .icon { width: 48px; height: 48px; margin-top: 38px; color: #dfa500; }
  .auth-card { padding: 40px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 60px #20376d0a; background: white; }
  .auth-card h2 { font-size: 2rem; margin-bottom: 15px; }
  .auth-card > p { margin-bottom: 22px; color: var(--muted); }
  .auth-card .button { width: 100%; margin-bottom: 15px; }
  .auth-methods { display: flex; justify-content: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; color: var(--muted); font-size: .875rem; }
  .auth-other { margin: 24px 0 0 !important; text-align: center; font-size: .875rem; }
  .steps { margin: 26px 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
  .steps li { counter-increment: step; display: flex; gap: 14px; align-items: start; }
  .steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: #edf3ff; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; font-size: .875rem; }
  .steps strong { color: var(--navy); display: block; }
  .steps span { color: var(--muted); font-size: .9375rem; }
  .auth-card .notice { margin-bottom: 24px; font-size: .9375rem; }
}
@layer responsive {
  @media (min-width: 1500px) { .hero { padding-top: 90px; padding-bottom: 80px; } }
  @media (max-width: 1080px) {
    .wrap { width: calc(100% - 48px); }
    .nav { gap: 17px; }
    .header-access { display: none; }
    .hero { gap: 32px; }
    .hero h1 { font-size: 3.4rem; }
    .product-main { padding: 15px; }
    .product-sidebar { width: 90px; padding: 20px 10px; }
    .product-body { grid-template-columns: 90px 1fr; }
    .mobile-preview { right: -10px; }
    .feature { padding: 24px 18px; }
    .auth-layout { gap: 50px; }
  }
  @media (max-width: 800px) {
    .header-inner { min-height: 78px; flex-wrap: wrap; gap: 0; padding-block: 14px; }
    .brand { font-size: 1.7rem; }
    .brand img { width: 42px; height: 42px; }
    .menu-toggle { display: block; margin-left: auto; }
    .nav { width: 100%; display: none; flex-wrap: wrap; margin: 0; padding-top: 18px; gap: 6px 23px; }
    .nav.is-open { display: flex; }
    .nav a { font-size: 1rem; }
    .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 35px; gap: 28px; }
    .hero-copy { max-width: 650px; }
    .hero h1 { font-size: clamp(2.7rem, 7vw, 4rem); }
    .hero-product { max-width: 580px; width: 100%; padding-top: 20px; margin-inline: auto; }
    .hero-product::before { right: 10px; width: 210px; height: 210px; top: 0; }
    .product-main { padding: 22px; }
    .product-body { grid-template-columns: 114px 1fr; }
    .product-sidebar { width: auto; padding: 24px 14px; }
    .mobile-preview { right: 12px; bottom: 15px; }
    .features, .benefit-grid { grid-template-columns: 1fr 1fr; }
    .feature:nth-child(3) { border-left: none; }
    .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .page-heading { padding-top: 44px; }
    .auth-layout { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding-block: 40px; max-width: 600px; }
    .auth-page { background: #f7faff; }
    .auth-story h1 { font-size: 2.65rem; }
    .auth-story .icon { display: none; }
  }
  @media (max-width: 480px) {
    .wrap { width: calc(100% - 36px); }
    .hero { padding-top: 37px; }
    .eyebrow { font-size: .75rem; letter-spacing: .08em; }
    .hero h1 { font-size: 2.75rem; }
    .lead { font-size: 1rem; }
    .actions { align-items: stretch; gap: 10px; }
    .actions .button { flex: 1 1 100%; }
    .product-body { grid-template-columns: 1fr; min-height: 310px; }
    .product-sidebar { display: none; }
    .product-main { padding: 18px; }
    .mobile-preview { width: 172px; padding: 11px; }
    .hero-product { padding-bottom: 62px; }
    .product-caption { max-width: 150px; }
    .features, .benefit-grid { grid-template-columns: 1fr; }
    .feature { padding: 23px; display: grid; grid-template-columns: 35px 1fr; gap: 0 18px; }
    .feature + .feature { border-left: none; border-top: 1px solid var(--line); }
    .feature .icon { grid-row: span 2; margin-top: 3px; }
    .feature h3 { margin-bottom: 7px; }
    .home-note, .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .home-note { padding-bottom: 35px; }
    .footer-links { flex-wrap: wrap; gap: 12px 20px; }
    .page-content { padding-bottom: 44px; }
    .tier-table th, .tier-table td { padding: 13px 15px; }
    .auth-card { padding: 26px 22px; }
    .auth-methods { flex-wrap: wrap; gap: 5px 15px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
}
