:root {
  --navy: #153750;
  --ink: #1d3d55;
  --blue: #2587be;
  --blue-dark: #176a9b;
  --blue-soft: #dcf1fb;
  --ice: #f2faff;
  --muted: #5e7588;
  --border: #dceaf2;
  --white: #fff;
  --shadow: 0 14px 36px rgba(28,84,120,.10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); font: 400 16px/1.65 'DM Sans', Arial, sans-serif; background: #fff; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f7ae55; outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', Arial, sans-serif; color: var(--navy); line-height: 1.2; letter-spacing: -.032em; }
p { margin-bottom: 16px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -90px; left: 12px; background: white; color: var(--navy); border: 2px solid var(--blue); z-index: 500; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--blue-dark); margin-bottom: 16px; }
.section { padding-block: 94px; }
.section h2 { font-size: clamp(30px, 3.6vw, 43px); font-weight: 700; }
.section-intro > p:not(.eyebrow) { color: var(--muted); max-width: 530px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-symbol { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 700 22px/1 'Manrope', Arial, sans-serif; color: white; background: var(--blue); }
.brand-name { display: block; font-weight: 600; line-height: 1.22; font-size: 15px; letter-spacing: -.02em; }
.brand-name strong { display: block; font-weight: 800; }
.brand-name small, .footer-brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px,2.3vw,28px); }
.site-nav a { font-size: 13.5px; font-weight: 700; color: #456075; text-decoration: none; transition: color .15s; }
.site-nav a:hover { color: var(--blue-dark); }
.site-nav .nav-contact { color: white; background: var(--blue); padding: 11px 17px; border-radius: 9px; }
.site-nav .nav-contact:hover { color: white; background: var(--blue-dark); }
.menu-toggle { display: none; }

.hero { overflow: hidden; background: linear-gradient(118deg, #edf8fe 0%, #f8fcff 56%, #e7f6fd 100%); padding: 94px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: clamp(42px,6vw,80px); }
.hero-copy h1 { max-width: 660px; font-weight: 800; font-size: clamp(42px,4.55vw,62px); letter-spacing: -.048em; margin-bottom: 24px; }
.hero-copy h1 span { color: var(--blue-dark); }
.hero-intro { max-width: 560px; font-size: 18px; color: #526f85; line-height: 1.8; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 10px; min-height: 50px; padding: 12px 20px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-outline { border-color: #c4dfea; color: var(--blue-dark); background: #fff; }
.button-outline:hover { background: #f7fcff; border-color: var(--blue); }
.hero-benefits { display: flex; flex-wrap: wrap; list-style: none; gap: 10px 22px; padding: 0; margin: 29px 0 0; font-size: 13px; color: #58778b; }
.hero-benefits li::before { content: '✓'; font-weight: 800; margin-right: 7px; color: var(--blue); }
.hero-art { height: 445px; position: relative; display: grid; place-items: center; }
.hero-blob { position: absolute; width: 100%; height: 85%; background: #d5effa; border-radius: 49% 51% 54% 46% / 52% 42% 58% 48%; transform: rotate(-14deg); }
.paper-note { position: relative; z-index: 1; width: min(420px,100%); padding: 33px 30px 24px; background: repeating-linear-gradient(#fff 0, #fff 34px, #edf4f7 35px); border: 1px solid #d9e8ef; border-radius: 5px 18px 18px 5px; box-shadow: 1px 20px 43px rgba(30,90,126,.13); transform: rotate(2deg); }
.paper-note::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 5px solid #b9ddec; border-radius: 4px 0 0 4px; }
.paper-pin { position: absolute; top: -11px; right: 45px; width: 52px; height: 24px; background: rgba(72,155,204,.22); transform: rotate(-11deg); }
.paper-heading { font-size: 11px; letter-spacing: .11em; font-weight: 700; color: #6c8596; margin-bottom: 16px; }
.paper-equation { font: 800 29px/1.3 'Manrope', Arial, sans-serif; text-align: center; color: var(--navy); padding: 8px 0 12px; margin: 0; }
.paper-divider { height: 1px; background: var(--border); margin: 11px 0 8px; }
.solution-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 6px; min-height: 50px; font-family: 'Manrope', Arial, sans-serif; font-weight: 700; font-size: 15px; }
.solution-number { font-size: 10px; color: #88a9bb; }
.solution-row small { font-family: 'DM Sans', Arial, sans-serif; font-weight: 500; font-size: 12px; color: #8196a4; }
.solution-result { color: #207d72; }
.solution-result small { color: #207d72; }
.paper-footnote { color: var(--blue-dark); font-size: 13px; font-weight: 700; font-style: italic; text-align: center; margin: 21px 0 0; }

/* Method */
.method-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(55px,8vw,115px); }
.method-intro h2 { max-width: 455px; }
.method-intro p { line-height: 1.82; }
.method-intro p strong { color: var(--navy); }
.method-steps { list-style: none; margin: 3px 0 0; padding: 0; }
.method-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; border-bottom: 1px solid var(--border); padding: 0 0 24px; margin-bottom: 25px; }
.method-steps li:last-child { margin-bottom: 0; border-bottom: none; }
.step-index { font: 800 19px/1 'Manrope', Arial, sans-serif; width: 45px; height: 45px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); border-radius: 12px; }
.method-steps h3 { font-size: 18px; margin: 0 0 7px; }
.method-steps p { font-size: 14px; line-height: 1.8; margin: 0; color: var(--muted); }
.method-more { margin-top: 46px; padding-top: 13px; border-top: 1px solid var(--border); }
.method-more summary { cursor: pointer; padding: 10px 0; color: var(--blue-dark); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 14px; font-weight: 700; }
.method-more summary::-webkit-details-marker { display: none; }
.method-more summary span { display: inline-block; font-size: 23px; font-weight: 400; line-height: 1; transition: transform .2s; }
.method-more[open] summary span { transform: rotate(45deg); }
.method-more-copy { max-width: 850px; color: var(--muted); padding: 14px 0 2px; }
.method-more-copy p { line-height: 1.9; }

.subjects-section { background: var(--ice); }
.section-intro-row { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 38px; }
.section-intro-row h2 { margin-bottom: 0; max-width: 560px; }
.section-intro-row > p { max-width: 305px !important; margin-bottom: 2px; }
.subject-list { border-top: 1px solid #cce4f1; }
.subject-item { display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 26px; padding: 31px 12px 31px 0; border-bottom: 1px solid #cce4f1; }
.subject-short { width: fit-content; min-width: 62px; padding: 14px 12px; background: #e0f0f9; border-radius: 12px; color: var(--blue-dark); font: 800 20px/1 'Manrope', Arial, sans-serif; text-align: center; }
.subject-short-wide { font-size: 11px; padding: 15px 12px; }
.subject-item h3 { font-size: 20px; margin-bottom: 7px; }
.subject-item p { color: var(--muted); font-size: 14px; max-width: 650px; margin: 0; }
.subject-item a { color: var(--blue-dark); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.subject-item a:hover { text-decoration: underline; }
.subject-item a span { margin-left: 6px; }

/* Prices */
.pricing-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px,8vw,110px); align-items: center; }
.pricing-grid h2 { max-width: 415px; }
.pricing-aside { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--blue); font-size: 14px; }
.pricing-table { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 14px 40px rgba(40,107,143,.055); }
.price-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 30px; border-bottom: 1px solid var(--border); }
.price-line h3 { font-size: 16px; margin: 0 0 5px; }
.price-line p { color: var(--muted); font-size: 13px; margin: 0; }
.price-line strong { flex: 0 0 auto; font: 800 23px/1.3 'Manrope', Arial, sans-serif; color: var(--navy); letter-spacing: -.035em; }
.price-trial { background: #e6f5fc; border-bottom-color: #d1e8f4; }
.price-trial strong { color: var(--blue-dark); }
.price-caption { display: block; color: var(--blue-dark); font-size: 10px; font-weight: 700; letter-spacing: .1em; margin-bottom: 9px; }
.pricing-link { display: flex; justify-content: space-between; align-items: center; padding: 17px 30px; color: var(--blue-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.pricing-link:hover { background: #f8fcff; }

/* About – more compact portrait and tighter content rhythm */
.about-section { background: #f8fbfd; padding-block: 56px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 68px); }
.about-photo-wrap { position: relative; padding: 0 11px 11px 0; }
.about-photo-wrap::before { content: ''; position: absolute; top: 12px; bottom: 0; left: 12px; right: 0; background: #d7effa; border-radius: 12px; }
.about-photo-wrap img { position: relative; display: block; width: 100%; height: 296px; object-fit: cover; object-position: 50% 28%; border-radius: 12px; border: 1px solid #cee3ee; }
.about-copy .eyebrow { margin-bottom: 10px; }
.about-copy h2 { max-width: 660px; font-size: clamp(27px, 3vw, 34px); margin-bottom: 17px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 14px; margin-bottom: 11px; }
.about-copy strong { color: var(--navy); }
.about-copy .about-end { color: var(--navy) !important; font-weight: 700; margin-top: 10px; }
.text-arrow { display: inline-flex; gap: 12px; align-items: center; margin-top: 3px; color: var(--blue-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.text-arrow:hover { text-decoration: underline; }

/* Contact */
.contact-section { padding: 83px 0 90px; background: linear-gradient(115deg, #174b70, #1d709d); color: white; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px,6vw,86px); align-items: center; }
.eyebrow-light { color: #bce9ff; }
.contact-intro h2 { color: white; font-size: clamp(30px,3.5vw,45px); margin-bottom: 24px; }
.contact-intro > p:not(.eyebrow) { color: #d5e8f4; line-height: 1.85; font-size: 16px; margin-bottom: 31px; }
.contact-line { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #ebf7fd; margin-top: 12px; }
.contact-line-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #9fd1ed; border-radius: 50%; font-size: 12px; }
.form-panel { background: #fff; color: var(--ink); padding: 36px; border-radius: 16px; box-shadow: 0 20px 50px rgba(8,43,66,.17); }
.form-panel h3 { font-size: 24px; margin-bottom: 5px; }
.form-panel > p { color: var(--muted); font-size: 14px; margin-bottom: 23px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-field label { font-size: 12px; color: var(--navy); font-weight: 700; margin-bottom: 7px; }
.form-field label span { color: #c34e43; }
.form-field input, .form-field select, .form-field textarea { min-width: 0; width: 100%; border: 1px solid #cfdfea; background: #fcfeff; color: var(--ink); border-radius: 8px; padding: 11px 13px; font-size: 14px; transition: border-color .15s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 115px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8d9ca9; }
.form-trap { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.form-note { font-size: 11px; line-height: 1.6; color: #728596; margin-top: 0; margin-bottom: 16px; }
.form-submit { width: 100%; }
.form-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.form-status { font-size: 13px; min-height: 0; color: #9f3636; margin: 12px 0 0; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { font-weight: 800; font-size: 14px; }
.footer-brand .brand-symbol { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.footer-inner p { font-size: 12px; color: var(--muted); margin: 0; }
.back-to-top { text-decoration: none; color: var(--blue-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.back-to-top:hover { text-decoration: underline; }

/* Thank-you state */
.thankyou-page { min-height: 100vh; background: var(--ice); display: grid; place-items: center; padding: 20px; }
.thankyou-panel { background: white; border: 1px solid var(--border); max-width: 525px; border-radius: 17px; padding: 45px; text-align: center; box-shadow: var(--shadow); }
.thankyou-check { display: grid; place-items: center; margin: 0 auto 18px; width: 54px; height: 54px; color: var(--blue-dark); border-radius: 50%; background: var(--blue-soft); font-size: 27px; }
.thankyou-panel h1 { font-size: clamp(28px,4vw,36px); }
.thankyou-panel p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 1050px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 74px 0 86px; }
  .hero-grid { gap: 37px; }
  .hero-copy h1 { font-size: clamp(38px,5vw,57px); }
}
@media (max-width: 850px) {
  html { scroll-padding-top: 79px; }
  .menu-toggle { display: flex; width: 43px; height: 43px; border: 1px solid var(--border); border-radius: 9px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: white; cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: 0 12px 25px rgba(22,65,91,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 14px; padding: 11px; }
  .site-nav .nav-contact { margin-top: 6px; text-align: center; }
  .hero-grid, .method-grid, .pricing-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding: 68px 0 60px; }
  .hero-copy h1 { max-width: 700px; font-size: clamp(39px,6.8vw,57px); }
  .hero-art { max-width: 470px; width: 100%; margin: 0 auto; }
  .method-grid { gap: 35px; }
  .method-intro h2 { max-width: 650px; }
  .method-more { margin-top: 35px; }
  .subject-item { grid-template-columns: 100px 1fr auto; gap: 20px; }
  .pricing-grid { align-items: stretch; }
  .about-grid { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); gap: 26px; }
  .about-photo-wrap { max-width: 280px; }
  .contact-intro { max-width: 640px; }
}
@media (max-width: 610px) {
  .container { width: min(100% - 32px,1120px); }
  .header-inner { min-height: 69px; }
  .brand-symbol { height: 36px; width: 36px; font-size: 19px; }
  .brand-name { font-size: 13px; }
  .hero { padding: 55px 0 65px; }
  .hero-copy h1 { font-size: clamp(36px,9.4vw,49px); }
  .hero-intro { font-size: 16px; line-height: 1.75; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-benefits { gap: 7px 18px; margin-top: 24px; font-size: 12px; }
  .hero-art { height: 365px; width: 100%; }
  .hero-blob { height: 85%; }
  .paper-note { width: calc(100% - 18px); padding: 22px 21px 18px; }
  .paper-equation { font-size: 22px; }
  .solution-row { min-height: 42px; font-size: 13px; }
  .solution-row small { font-size: 10px; }
  .paper-footnote { font-size: 11px; }
  .section { padding: 65px 0; }
  .section h2 { font-size: clamp(29px,8vw,38px); }
  .section-intro-row { display: block; margin-bottom: 27px; }
  .section-intro-row > p { margin-top: 17px; }
  .subject-item { grid-template-columns: 66px 1fr; gap: 12px 15px; padding: 24px 0; }
  .subject-short { min-width: 55px; padding: 13px 10px; font-size: 17px; }
  .subject-short-wide { font-size: 9px; padding: 14px 5px; }
  .subject-item h3 { font-size: 17px; }
  .subject-item p { font-size: 13px; }
  .subject-item a { grid-column: 2; }
  .price-line { padding: 21px 17px; }
  .price-line strong { font-size: 20px; }
  .price-line h3 { font-size: 15px; }
  .about-section { padding-block: 49px; }
  .about-grid { grid-template-columns: 1fr; gap: 23px; }
  .about-photo-wrap { width: 190px; max-width: 100%; }
  .about-photo-wrap img { height: 205px; }
  .about-copy h2 { font-size: 29px; }
  .contact-section { padding: 63px 0 70px; }
  .contact-intro h2 { font-size: 33px; }
  .form-panel { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; gap: 17px; text-align: center; }
  .thankyou-panel { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
