/* Codami homepage look — adapted from pandalogica.codami.com */
html { scroll-behavior: smooth; }
body.codami-home {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f8f9fb;
  color: #222b38;
}
body.codami-home a { text-decoration: none; }
.plans { display: grid; }
.site-shell { background: var(--surface); color: var(--ink); }
.site-shell *, .site-shell *::before, .site-shell *::after { box-sizing: border-box; }
.site-shell a { color: inherit; }
.site-shell a:focus-visible, .site-shell button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 38px; height: 76px; padding: 0 max(5vw, calc((100vw - 1320px) / 2)); background: var(--panel); border-bottom: 1px solid var(--line); }
html[dir='rtl'] .site-header { direction: rtl; }
html[dir='rtl'] .language-menu { direction: rtl; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.brand img { width: 39px; height: 39px; object-fit: contain; border-radius: 5px; }
.main-nav { display: flex; align-items: center; gap: 31px; margin-inline-start: auto; }
.main-nav a { font-size: 13px; font-weight: 600; color: var(--muted) !important; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent) !important; }
.main-nav .mobile-contact-link { display: none; }
.header-actions { display: flex; align-items: center; gap: 15px; margin-inline-start: auto; }
.language-picker { position: relative; }
.language-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: 69px; height: 41px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); }
.language-toggle > span:first-child { font-size: 23px; line-height: 1; }
.language-chevron { font-size: 14px; line-height: 1; }
.language-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: min(285px, calc(100vw - 28px)); max-height: min(480px, 68vh); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); box-shadow: 0 18px 42px #0d203944; }
.language-option { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; width: 100%; min-height: 43px; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font-size: 14px; }
.language-option:hover, .language-option:focus-visible, .language-option.is-selected { background: var(--soft); }
.language-option > span:first-child { font-size: 21px; }
.language-option small { color: var(--muted); font-size: 11px; }
.theme-toggle { display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); }
.theme-toggle span { font-size: 22px; line-height: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 20px; border-radius: 5px; font-size: 14px; font-weight: 700; }
.button-primary { background: var(--accent); color: #fff !important; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink) !important; }
.button-secondary:hover { border-color: var(--accent); color: var(--accent) !important; }
.menu-toggle, .nav-backdrop { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; max-width: 1440px; margin: auto; padding: var(--section-space) 7%; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1, .answer-section h2, .contact-section h2, .experience-section h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.hero-copy, .section-copy, .speed-points, .contact-copy, .contact-panel, .plan-card, .experience-copy { min-width: 0; }
.hero h1, .answer-section h2, .contact-section h2, .experience-section h2 { hyphens: none; overflow-wrap: normal; word-break: normal; }
.hero h1 em, .answer-section h2 em, .contact-section h2 em, .experience-section h2 em { color: var(--accent); font-style: normal; }
.hero-lede { max-width: 600px; margin: 25px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hero-visual { margin: 0; padding: 0; background: transparent; box-shadow: none; }
.hero-visual img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; object-position: center; border: 0; border-radius: 5px; background: transparent; box-shadow: 0 22px 60px #16314e18; }
.hero-visual figcaption, .section-image figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.report-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--accent); text-align: start; cursor: zoom-in; }
.report-preview span { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 700; }
.report-preview:hover span { text-decoration: underline; }
.report-viewer { width: min(1600px, 96vw); max-width: 96vw; max-height: 94dvh; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); box-shadow: 0 28px 90px #0008; }
.report-viewer::backdrop { background: #101723c9; }
.report-viewer-content { display: grid; max-height: 94dvh; }
.report-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; }
.report-viewer-bar strong { font-size: 14px; line-height: 1.4; }
.report-viewer-bar button { flex: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.report-viewer-content > img { display: block; width: 100%; max-height: calc(94dvh - 62px); object-fit: contain; object-position: center; background: var(--surface); }
.answer-section { max-width: 1440px; margin: auto; padding: var(--section-space) 7%; scroll-margin-top: 76px; }
.answer-section h2, .contact-section h2, .experience-section h2 { font-size: clamp(38px, 4.2vw, 62px); }
.section-copy > p:not(.section-kicker), .contact-section > div > p:not(.section-kicker), .experience-copy > p:not(.section-kicker) { max-width: 630px; margin: 23px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.experience-section {
  max-width: none;
  margin: 0;
  padding: var(--section-space) max(7%, calc((100vw - 1238px) / 2));
  scroll-margin-top: 76px;
  background: #edf2f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.experience-copy { max-width: 820px; }
.experience-section h2 { display: grid; gap: 8px; }
.experience-section h2 em { display: block; }
.section-copy ul { display: grid; gap: 13px; max-width: 590px; margin: 28px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.section-copy li::marker { color: var(--accent); }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.section-actions .button { flex: none; }
.product-section, .speed-section { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 7%; }
.product-section { border-bottom: 1px solid var(--line); }
.section-image { margin: 0; padding: 0; background: transparent; align-self: start; width: 100%; }
.section-image img { display: block; width: 100%; height: auto; border: 0; border-radius: 5px; box-shadow: 0 16px 35px #16314e22; background: transparent; }
.speed-section { max-width: none; padding-left: max(7%, calc((100vw - 1238px) / 2)); padding-right: max(7%, calc((100vw - 1238px) / 2)); background: #edf2f8; }
.speed-support { display: grid; gap: 20px; min-width: 0; }
.speed-points { display: grid; gap: 12px; }
.speed-points > div { display: grid; grid-template-columns: 35px 1fr; gap: 3px 14px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); }
.speed-points span { grid-row: span 2; color: var(--accent); font-size: 14px; font-weight: 800; }
.speed-points strong { font-size: 19px; }
.speed-points p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.setup-video { width: min(100%, 420px); }
.setup-video h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.setup-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 5px; background: #000; }
.setup-video-splash { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; width: 100%; aspect-ratio: 16 / 9; padding: 22px; border: 1px solid #6681a9; border-radius: 5px; background: linear-gradient(135deg, #152338, #28486e); color: #fff; text-align: start; cursor: pointer; }
.setup-video-splash:hover { border-color: #9bc0ff; }
.setup-video-splash strong { max-width: 320px; font-size: clamp(18px, 2vw, 24px); line-height: 1.2; text-wrap: balance; }
.setup-video-details { color: #dce8fa; font-size: 14px; line-height: 1.4; }
.setup-video-play { display: inline-flex; align-items: center; gap: 10px; margin-top: 3px; padding: 9px 13px; border-radius: 5px; background: #0f62fe; color: #fff; font-size: 14px; font-weight: 700; }
.setup-video-play span { font-size: 12px; }
.cost-section { border-bottom: 1px solid var(--line); }
.cost-section .section-copy { max-width: 820px; }
.billing-toggle { display: inline-flex; gap: 3px; margin-top: 28px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.billing-toggle button { min-width: 92px; padding: 9px 13px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; }
.billing-toggle button[aria-pressed='true'] { background: var(--accent); color: #fff; }
.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.plan-card { display: flex; flex-direction: column; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
.plan-card:nth-child(2) { border-color: #8bb6ff; background: var(--soft); }
.plan-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-heading h3 { margin: 0; font-size: 20px; font-weight: 750; }
.plan-heading small { flex: none; padding: 4px 8px; border: 1px solid #b7d0ff; border-radius: 5px; color: var(--accent); font-size: 11px; font-weight: 700; }
.plan-price { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; }
.plan-price-amount { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.plan-price strong { font-size: clamp(27px, 2.6vw, 36px); letter-spacing: -.035em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-price b { max-width: 100%; color: var(--accent); font-size: 13px; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.plan-card ul { display: grid; gap: 9px; margin: 24px 0; padding: 0; list-style: none; }
.plan-card li { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.plan-card li::before { content: '✓'; flex: none; color: var(--accent); }
.plan-actions { display: grid; gap: 8px; margin-top: auto; }
.plan-actions .button { width: 100%; }
.plan-enterprise { background: var(--soft); }
.plan-enterprise .plan-price strong { font-size: 24px; }
.plan-enterprise p { margin: 22px 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan-enterprise ul { margin-top: 0; }
.plan-enterprise button { align-self: stretch; margin-top: auto; border: 0; cursor: pointer; }
.pricing-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; max-width: 1440px; margin: auto; padding: var(--section-space) 7%; scroll-margin-top: 76px; }
.contact-trial { margin-top: 24px; }
.contact-panel { padding: 30px; background: var(--soft); border: 1px solid var(--line); }
.contact-panel form { display: grid; gap: 15px; }
.contact-panel label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.contact-panel input, .contact-panel textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font: inherit; }
.contact-panel textarea { resize: vertical; }
.contact-panel form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-panel .contact-status { margin: 18px 0 0; font-size: 14px; }
.site-footer { padding: 32px 7% 16px; background: #e9edf3; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 24px; max-width: 1238px; margin: auto; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-brand { position: relative; }
.footer-brand .brand { min-height: 28px; padding-inline-start: 49px; }
.footer-brand .brand img { position: absolute; top: 0; inset-inline-start: 0; }
.footer-brand p { max-width: 340px; padding-inline-start: 49px; margin-top: 2px !important; font-style: italic; letter-spacing: .01em; }
.footer-grid h3 { margin: 1px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-grid p, .footer-grid a:not(.brand), .footer-grid address { margin: 0; color: var(--muted) !important; font-size: 14px; line-height: 1.45; }
.footer-grid a:not(.brand):hover { color: var(--accent) !important; }
.footer-grid address { margin-top: 3px; font-style: normal; }
.footer-grid address strong { color: var(--ink); }
.footer-grid a[href^='mailto:'], .contact-panel input[type='email'] { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { max-width: 1238px; margin: 24px auto 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink) !important;
  box-shadow: 0 12px 28px #16314e22;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.back-to-top[hidden] {
  display: none !important;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
html[data-theme='dark'] .speed-section,
html[data-theme='dark'] .experience-section,
html[data-theme='dark'] .site-footer { background: #1b2430; }
html[data-theme='dark'] .button-primary { background: #0f62fe; }
@media (max-width: 1300px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .site-header { gap: 18px; padding: 0 4%; } .main-nav { gap: 16px; } .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .site-shell { --section-space: 48px; }
  .site-header { height: 66px; gap: 10px; padding: 0 17px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 39px; height: 42px; padding: 7px; flex: none; border: 0; border-radius: 5px; background: transparent; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .brand { gap: 6px; font-size: 15px; }
  .brand img { width: 31px; height: 31px; }
  .footer-brand .brand { min-height: 24px; padding-inline-start: 37px; }
  .footer-brand p { padding-inline-start: 37px; }
  .header-actions { gap: 8px; margin-inline-start: auto; }
  .language-toggle { width: 69px; }
  .header-contact { display: none; }
  .header-login { min-height: 41px; padding: 8px 14px; font-size: 13px; }
  .nav-backdrop { display: block; position: fixed; inset: 66px 0 0; z-index: 51; width: 100%; border: 0; background: #11182780; }
  .main-nav { position: fixed; top: 66px; left: 0; bottom: 0; z-index: 52; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(310px, 85vw); margin: 0; padding: 16px; background: var(--panel); box-shadow: 12px 0 30px #0002; transform: translateX(-110%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  html[dir='rtl'] .main-nav { left: auto; right: 0; box-shadow: -12px 0 30px #0002; transform: translateX(110%); }
  html[dir='rtl'] .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 17px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .mobile-contact-link { display: block; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: var(--section-space) 22px; }
  .hero h1 { font-size: clamp(34px, 10vw, 56px); }
  .hero-lede { font-size: 17px; }
  .hero-visual { padding: 9px; }
  .answer-section, .contact-section, .experience-section { padding: var(--section-space) 22px; scroll-margin-top: 66px; }
  .section-actions { gap: 8px; margin-top: 24px; }
  .answer-section h2, .contact-section h2, .experience-section h2 { font-size: clamp(38px, 10vw, 53px); }
  .section-copy > p:not(.section-kicker), .contact-section > div > p:not(.section-kicker), .experience-copy > p:not(.section-kicker) { font-size: 17px; }
  .product-section, .speed-section, .contact-section { grid-template-columns: 1fr; gap: 42px; }
  .plans { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .contact-panel { padding: 24px; }
}
@media (max-width: 350px) { .site-header .brand > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .main-nav { transition: none; } }
