/* Ordio marketing landing page — brand tokens match html/public/css/custom.css exactly. */
:root {
  --ordio-bg: #fffbfe;
  --ordio-surface: #ffffff;
  --ordio-primary: #3bb273;
  --ordio-primary-hover: #329762;
  --ordio-primary-bg-subtle: #d8f0e3;
  --ordio-primary-border-subtle: #b1e0c7;
  --ordio-text: #000500;
  --ordio-text-secondary: #5f6b67;
  --ordio-border: #e8ecea;
  --ordio-warning-bg-subtle: #f9f2d3;
  --ordio-warning-border-subtle: #f3e4a7;
  --ordio-danger: #d52941;
  --ordio-danger-bg-subtle: #f7d4d9;
  --max-width: 1160px;
  --max-width-wide: 1360px;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ordio-text);
  background: var(--ordio-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ordio-primary); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: var(--max-width-wide); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 600; color: var(--ordio-primary); margin-bottom: .5rem; display: block; }
.lede { color: var(--ordio-text-secondary); font-size: 1.1rem; max-width: 42rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: .96rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ordio-primary); color: #fff; }
.btn-primary:hover { background: var(--ordio-primary-hover); }
.btn-secondary { background: transparent; color: var(--ordio-text); border-color: var(--ordio-border); }
.btn-secondary:hover { border-color: var(--ordio-text-secondary); }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.02rem; }

#site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,251,254,.92); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid var(--ordio-border); }
#site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; max-width: var(--max-width); margin: 0 auto; gap: 1rem; }
#site-logo-link { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
#site-logo-link img { height: 28px; width: auto; }
#site-nav { display: flex; align-items: center; gap: 1.6rem; }
#site-nav a { color: var(--ordio-text); text-decoration: none; font-size: .93rem; font-weight: 500; }
#site-nav a:hover { color: var(--ordio-primary); }
#site-header-actions { display: flex; align-items: center; gap: .75rem; }
#site-header-cta-mobile { display: none; }
#site-nav-toggle { display: none; }
#site-mobile-menu { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#hero { padding: 4.5rem 0 3.5rem; }
#hero-inner { display: flex; flex-direction: column; gap: 1.5rem; max-width: 44rem; }
#hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }
#hero-screenshot-frame { margin-top: 2.5rem; max-width: 1120px; margin-left: auto; margin-right: auto; border: 1px solid var(--ordio-border); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0,20,10,.25); }
#hero-screenshot-frame img { display: block; width: 100%; height: auto; object-fit: contain; }

/* The mobile source has a different aspect ratio than the desktop
   source's own width/height attributes (which set the default
   reserved aspect ratio) — override it below 768px so the browser
   reserves the correct box for the mobile image before it loads,
   avoiding a layout shift. */
@media (max-width: 767px) {
  #hero-screenshot-img { aspect-ratio: 390 / 793; }
}

section { padding: 3.75rem 0; }
.section-alt { background: var(--ordio-surface); border-top: 1px solid var(--ordio-border); border-bottom: 1px solid var(--ordio-border); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }

#problem-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; list-style: none; padding: 0; }
#problem-list li { background: var(--ordio-surface); border: 1px solid var(--ordio-border); border-radius: 10px; padding: 1.1rem 1.25rem; font-size: .95rem; color: var(--ordio-text-secondary); }

#flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; counter-reset: flow; }
.flow-step { position: relative; padding-left: 2.4rem; }
.flow-step::before { counter-increment: flow; content: counter(flow); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ordio-primary-bg-subtle); color: var(--ordio-primary); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.flow-step h3 { margin-bottom: .35rem; }
.flow-step p { color: var(--ordio-text-secondary); font-size: .93rem; margin: 0; }

/* Default balanced split — used where the crop is naturally close to
   a 1:1 column (e.g. a portrait or near-square visual). */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }

/* Wide-media split (~60/40) — for landscape crops that still fit
   comfortably beside text without shrinking illegibly. */
.feature-row--wide-media { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center; }
.feature-row--wide-media.reverse .feature-media { order: 2; }

/* Full-width media — for crops too wide to stay readable in any
   side-by-side column; copy sits above, screenshot spans the full
   (wide) container beneath it. */
.feature-row--full-media { display: flex; flex-direction: column; gap: 1.75rem; }
.feature-row--full-media .feature-copy { max-width: 42rem; }
.feature-row--full-media .feature-media { width: 100%; }

/* Phone media — a balanced two-column split for real mobile-app
   screenshots. The image keeps its own natural phone proportions
   (capped width, centered) instead of stretching to fill the column —
   it should read as "a phone screen", never an enlarged desktop crop. */
.feature-row--phone-media { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-row--phone-media.reverse .feature-media { order: 2; }
.feature-row--phone-media .feature-media { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone-frame { width: 100%; max-width: 300px; }
.phone-frame img { border-radius: 18px; border: 6px solid #1a1a1a; }

.feature-media img { border: 1px solid var(--ordio-border); border-radius: 12px; box-shadow: 0 18px 40px -28px rgba(0,20,10,.3); width: 100%; height: auto; display: block; cursor: zoom-in; }
.feature-copy p.lede { max-width: none; }
.feature-note { font-size: .82rem; color: var(--ordio-text-secondary); border-top: 1px dashed var(--ordio-border); padding-top: .6rem; margin-top: 1rem; }

.screenshot-caption { margin: .6rem 0 0; font-size: .84rem; color: var(--ordio-text-secondary); text-align: center; }
.screenshot-scroll-hint { display: none; margin: .35rem 0 0; font-size: .78rem; color: var(--ordio-text-secondary); text-align: center; }
.screenshot-scroll-wrap { overflow-x: auto; border-radius: 12px; }
.screenshot-scroll-wrap img { border-radius: 12px; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(0, 5, 0, .82); display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; z-index: 100; }
#lightbox[hidden] { display: none; }
#lightbox-figure { max-width: 100%; max-height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
#lightbox-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
#lightbox-caption { color: #fffbfe; font-size: .88rem; text-align: center; max-width: 60ch; }
#lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,251,254,.4); background: rgba(255,251,254,.08); color: #fffbfe; font-size: 1.4rem; line-height: 1; cursor: pointer; }
#lightbox-close:hover { background: rgba(255,251,254,.18); }
#lightbox-close:focus-visible, .lightbox-trigger:focus-visible { outline: 2px solid var(--ordio-primary); outline-offset: 2px; }
.lightbox-trigger { display: block; }

#whatsapp-mock { max-width: 320px; margin: 0 auto; background: #e9edeb; border-radius: 22px; border: 1px solid var(--ordio-border); padding: .9rem; box-shadow: 0 18px 40px -28px rgba(0,20,10,.3); }
#whatsapp-mock-header { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .8rem; }
#whatsapp-mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ordio-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
#whatsapp-mock-title { font-weight: 600; font-size: .92rem; }
#whatsapp-mock-subtitle { font-size: .74rem; color: var(--ordio-text-secondary); }
#whatsapp-mock-body { display: flex; flex-direction: column; gap: .5rem; }
.wa-bubble { max-width: 82%; padding: .55rem .75rem; border-radius: 12px; font-size: .85rem; line-height: 1.4; }
.wa-bubble-in { align-self: flex-start; background: #fff; border: 1px solid var(--ordio-border); border-top-left-radius: 3px; }
.wa-bubble-out { align-self: flex-end; background: var(--ordio-primary-bg-subtle); border-top-right-radius: 3px; }
.wa-bubble-cmd { font-weight: 700; color: var(--ordio-primary-hover); }
.wa-bubble time { display: block; font-size: .66rem; color: var(--ordio-text-secondary); margin-top: .25rem; }
#whatsapp-commands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.wa-command-chip { border: 1px solid var(--ordio-border); background: var(--ordio-surface); border-radius: 8px; padding: .6rem .8rem; font-size: .84rem; }
.wa-command-chip code { color: var(--ordio-primary-hover); font-weight: 700; }
#whatsapp-disclaimer { font-size: .78rem; color: var(--ordio-text-secondary); margin-top: 1.25rem; }

#audience-card { background: var(--ordio-surface); border: 1px solid var(--ordio-border); border-radius: 12px; padding: 2rem; max-width: 46rem; }
#audience-not-list { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ordio-border); color: var(--ordio-text-secondary); font-size: .9rem; }

#demo-request { }
#demo-request-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
#demo-request-form { background: var(--ordio-surface); border: 1px solid var(--ordio-border); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: .87rem; font-weight: 600; }
.form-field input, .form-field textarea { font: inherit; padding: .65rem .8rem; border: 1px solid var(--ordio-border); border-radius: 8px; background: #fff; color: var(--ordio-text); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--ordio-primary); outline-offset: 1px; }
.form-field .field-error { color: var(--ordio-danger); font-size: .82rem; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--ordio-danger); }
#demo-request-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--ordio-text-secondary); }
#demo-request-success { background: var(--ordio-primary-bg-subtle); border: 1px solid var(--ordio-primary-border-subtle); border-radius: 10px; padding: 1.1rem 1.25rem; font-size: .95rem; display: flex; align-items: flex-start; gap: .75rem; }
#demo-request-success-icon { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ordio-primary); color: #fff; font-size: .85rem; line-height: 1.5rem; text-align: center; }
#demo-request-success-text { margin: 0; }
#demo-request-error-banner { background: var(--ordio-danger-bg-subtle); border: 1px solid var(--ordio-danger); border-radius: 10px; padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: .5rem; }

#site-footer { border-top: 1px solid var(--ordio-border); padding: 2.5rem 0; }
#site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
#site-footer-legal { font-size: .82rem; color: var(--ordio-text-secondary); max-width: 30rem; }
#site-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .87rem; }
#site-footer-links a { color: var(--ordio-text-secondary); text-decoration: none; }
#site-footer-links a:hover { color: var(--ordio-primary); }

@media (max-width: 860px) {
  #site-nav { display: none; }
  .feature-row, .feature-row--wide-media, .feature-row--phone-media,
  .feature-row.reverse .feature-media, .feature-row--wide-media.reverse .feature-media, .feature-row--phone-media.reverse .feature-media {
    grid-template-columns: 1fr; order: initial;
  }
  .phone-frame { max-width: 280px; margin: 0 auto; }
  #demo-request-grid { grid-template-columns: 1fr; }
  .screenshot-scroll-hint { display: block; }

  /* Mobile header: the desktop nav links and the full login+CTA pair
     collapse behind a hamburger toggle; a compact secondary-styled CTA
     stays in the persistent bar so the primary action is still one tap
     away without competing with the logo for attention. */
  #site-header-inner { padding: 0 16px; min-height: 64px; gap: .5rem; }
  #site-logo-link { flex: 0 0 auto; }
  #site-header-actions { display: none; }
  #site-header-cta-mobile {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 14px; font-size: .85rem; white-space: nowrap;
    flex: 0 0 auto; margin-left: auto;
  }
  #site-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto; padding: 0;
    border: 1px solid var(--ordio-border); border-radius: 8px;
    background: transparent; cursor: pointer;
  }
  #site-nav-toggle-icon,
  #site-nav-toggle-icon::before,
  #site-nav-toggle-icon::after {
    content: ""; display: block; width: 18px; height: 2px;
    background: var(--ordio-text); border-radius: 2px;
    transition: transform .15s ease, opacity .15s ease;
  }
  #site-nav-toggle-icon { position: relative; }
  #site-nav-toggle-icon::before { position: absolute; left: 0; top: -6px; }
  #site-nav-toggle-icon::after { position: absolute; left: 0; top: 6px; }
  #site-nav-toggle[aria-expanded="true"] #site-nav-toggle-icon { background: transparent; }
  #site-nav-toggle[aria-expanded="true"] #site-nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  #site-nav-toggle[aria-expanded="true"] #site-nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

  #site-mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ordio-surface); border-bottom: 1px solid var(--ordio-border);
    box-shadow: 0 16px 32px -20px rgba(0, 20, 10, .25);
    padding: .75rem 16px 1.25rem; flex-direction: column; gap: .35rem;
  }
  #site-mobile-menu:not([hidden]) { display: flex; }
  .site-mobile-menu-link {
    color: var(--ordio-text); text-decoration: none; font-weight: 500;
    min-height: 44px; display: flex; align-items: center;
  }
  #site-mobile-menu-login, #site-mobile-menu-cta {
    width: 100%; justify-content: center; min-height: 44px; margin-top: .35rem;
  }
}

#site-nav-toggle:focus-visible,
.site-mobile-menu-link:focus-visible,
#site-mobile-menu-login:focus-visible,
#site-mobile-menu-cta:focus-visible,
#site-header-cta-mobile:focus-visible {
  outline: 2px solid var(--ordio-primary); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
