/* Decorative market linework stays behind content and has no hit target. */
#top, #robot-overview, #offer, #faq, #contact {
  position: relative;
  isolation: isolate;
}
#top::before, #robot-overview::before, #offer::before,
#faq::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: min(46vw, 640px) auto;
  opacity: .24;
  /* Reserve the whole content shell: linework only appears in outer margins. */
  --market-edge: max(0px, calc((100% - 1160px) / 2 - 24px));
  mask-image: linear-gradient(to right, #000, transparent var(--market-edge), transparent calc(100% - var(--market-edge)), #000);
}
#top::before {
  background-image: url('assets/market-candles.svg');
  background-position: left -120px bottom -50px;
}
#robot-overview::before {
  background-image: url('assets/market-channel.svg');
  background-position: right -200px top 5px;
  opacity: .18;
}
#offer::before {
  background-image: url('assets/market-depth.svg');
  background-position: left -210px center;
  opacity: .19;
}
#faq::before {
  background-image: url('assets/market-orders.svg');
  background-position: right -130px bottom -35px;
  opacity: .19;
}
#contact::before {
  background-image: url('assets/market-levels.svg');
  background-position: left -150px bottom -15px;
  opacity: .16;
}
.product-identity { position: relative; isolation: isolate; }
.product-identity::before {
  content: "";
  position: absolute;
  inset: 65px 0 95px;
  z-index: -1;
  pointer-events: none;
  background: url('assets/market-card.svg') center / 100% auto no-repeat;
  mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent);
  opacity: .48;
}
.chip-track, .chip-highlight { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chip-track { stroke: #805820; stroke-width: 3; opacity: .6; }
.chip-highlight { stroke: #ffebad; stroke-width: 1.8; opacity: .45; }
.chip-circuits .embedded-signal { stroke-width: 5; }
@media (min-width: 700px) {
  #top .chip-emblem { transform: scale(.8); transform-origin: center; }
}
@media (max-width: 1240px) {
  /* Narrow screens have no spare side margins for section decorations. */
  #top::before, #robot-overview::before, #offer::before,
  #faq::before, #contact::before { display: none; }
}
@media (max-width: 699px) {
  #top::before, #robot-overview::before, #offer::before,
  #faq::before, #contact::before {
    background-size: 300px auto;
    opacity: .12;
  }
  #top::before { background-position: left -100px bottom -25px; }
  #robot-overview::before { background-position: right -160px top; }
  #offer::before { background-position: left -180px top 90px; }
  #faq::before { background-position: right -130px bottom; }
  #contact::before { background-position: left -140px bottom; }
  #top .product-identity::before {
    inset: 36px 0 12px;
    background-size: 100% auto;
    opacity: .4;
  }
}
@media (forced-colors: active) {
  #top::before, #robot-overview::before, #offer::before,
  #faq::before, #contact::before, .product-identity::before { display: none; }
}

/* Responsive refinement of the existing Orderia design. */
:root {
  --page-gutter: clamp(16px, 3vw, 24px);
  --header-height: 78px;
}
html { scroll-padding-top: calc(var(--header-height) + 12px); }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
.shell {
  width: min(1160px, calc(100% - 2 * var(--page-gutter)));
  max-width: none;
}
/* Allow text and grids to shrink without pushing adjacent controls offscreen. */
.shell > *, .launch-grid > *, .hero-grid > *, .contact-panel > *,
.header-actions, .partner-brand { min-width: 0; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
.launch-title { letter-spacing: -.035em; }
::selection { background: #e7d59e; color: #102c60; }
.pricing-table { font-variant-numeric: tabular-nums; }
.language, .telegram-header, .mobile-menu-toggle { min-height: 44px; }
.telegram-header { width: 44px; height: 44px; }
.button { min-height: 44px; }
.button:focus-visible { transform: none; }
main > section { scroll-snap-align: none; scroll-snap-stop: normal; }
main > section:not(#top) { min-height: 0; }
#robot-overview, #offer { padding-block: clamp(32px, 4vw, 52px); }
#faq { padding-block: clamp(40px, 5vw, 72px); }
.contact-section { padding-block: clamp(40px, 5vw, 72px) !important; }
#robot-overview .hero-grid { gap: 24px; }
#robot-overview .hero-content { max-width: 850px; }
#robot-overview .two-line-title { letter-spacing: -.035em; }
.two-line-title .title-line { white-space: normal; }
.overview-test, .backtest-figure { min-width: 0; max-width: 100%; }
.overview-test .backtest-figure { border-radius: 7px; }
.backtest-figure a { display: block; }
.backtest-figure img { width: 100%; height: auto; }
.backtest-note { font-size: 12px; }
.product-algorithm > summary, #faq .faq-list > details > summary { min-height: 48px; }
.product-algorithm-body { overflow-wrap: anywhere; }
.pricing-table .button { min-width: 0; width: min(100%, 145px); min-height: 48px; }
.pricing-table-wrap::after { left: 30%; width: 35%; }
.pricing-centered .section-heading { margin-bottom: 30px; }
.pricing-table th, .pricing-table td { overflow-wrap: break-word; }
.pricing-table tfoot td { padding-bottom: 26px; }
.contact-actions { min-width: 0; }
.contact-actions .channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: white;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.partner-logos { gap: clamp(20px, 4vw, 55px); }
.partner-brand { flex: 0 1 180px; }
.partner-brand img { max-width: 100%; }
.footer-copy { max-width: 80ch; font-size: 11px; }
.language-alternate { flex-shrink: 0; color: var(--blue); font-size: 11px; text-underline-offset: 3px; }
.partner-brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.partner-logos .fxsvps-brand img { width: 126px; max-width: 100%; height: auto; background: #152235; border-radius: 6px; }
.footer-payment { display: flex; gap: 9px; align-items: center; flex: none; }
.footer-payment img { display: block; width: 68px; height: auto; }
.footer-payment span { color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.footer-payment strong { display: block; color: var(--ink); font-weight: 650; }

/* Tablet navigation shares one compact overlay with the phone layout. */
@media (max-width: 940px) {
  :root { --header-height: 56px; }
  .header-inner { min-height: 56px; padding: 5px 0; flex-wrap: nowrap; gap: 12px; }
  .brand img { width: 128px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .mobile-menu-toggle {
    display: inline-flex; order: 2; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line);
    background: white; color: var(--blue); border-radius: 9px; cursor: pointer;
  }
  .mobile-menu-toggle svg { width: 21px; height: 21px; }
  .header-actions .telegram-header { order: 1; }
  .mobile-menu-panel {
    position: absolute; inset: calc(100% + 7px) var(--page-gutter) auto auto;
    width: min(216px, calc(100% - 2 * var(--page-gutter)));
    max-height: calc(100dvh - 76px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 7px 10px 11px; border: 1px solid var(--line); border-radius: 13px;
    background: white; box-shadow: 0 12px 32px #102c6026; z-index: 30;
  }
  .mobile-menu-panel .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0; padding: 0;
  }
  .mobile-menu-panel .nav-links a {
    display: flex; align-items: center; min-height: 44px;
    font-size: 13px; line-height: 1.3; padding: 9px 8px; border-bottom: 1px solid #edf0f5;
  }
  .mobile-menu-panel .language { margin: 9px 5px 0; min-width: 76px; font-size: 13px; padding: 8px 10px; }
  #top.launch-hero { min-height: calc(100svh - var(--header-height)); padding: 28px 0; display: flex; align-items: center; }
  #top .launch-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; }
  #top .launch-grid > div:first-child { display: block; }
  #top .launch-title { font-size: clamp(29px, 3.7vw, 35px); line-height: 1.12; margin-bottom: 18px; }
  #top .launch-badge { display: none; }
  #top .launch-description { font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
  #top .launch-checks { gap: 9px; margin: 18px 0 22px; }
  #top .launch-checks li { font-size: 12px; align-items: flex-start; }
  #top .launch-checks li > span:first-child { margin-top: 1px; }
  #top .product-identity {
    position: relative; width: 100%; max-width: 360px !important; height: auto;
    margin: 0; border-radius: 22px; overflow: hidden;
    background: linear-gradient(145deg,#163e77,#091f43); box-shadow: 0 18px 40px #102c6026;
  }
  #top .identity-top { display: flex; padding: 20px 18px 0; font-size: 10px; }
  #top .identity-symbol { font-size: 8px; padding: 5px 7px; }
  #top .gold-emblem {
    position: static; display: block; width: 100%; height: auto; max-height: none;
    min-height: 0; transform: none; overflow: hidden;
  }
  #top .gold-emblem > circle { display: block; }
  #top .identity-bottom { display: block; padding: 0 18px 20px; }
  #top .identity-bottom strong { font-size: 17px; }
  #top .identity-bottom span { font-size: 11px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
  .hero-actions .button { width: auto; min-height: 44px; padding: 10px 13px; font-size: 12px; }
  #robot-overview .two-line-title { font-size: clamp(27px, 3.5vw, 34px); }
  #robot-overview .compact-intro { font-size: 15px; line-height: 1.75; }
  .pricing-table th, .pricing-table td { padding: 11px 12px; font-size: 13px; line-height: 1.5; }
  .pricing-table thead td { width: 30%; }
  .pricing-table thead th { width: 35%; padding: 16px 12px; font-size: 16px; }
  .pricing-table .price-row td { padding: 16px 12px; font-size: 22px; }
  #offer .pricing-shared { font-size: 11px; line-height: 1.65; margin-top: 20px; }
  #faq .faq-layout { grid-template-columns: 1fr; gap: 26px; }
  #faq .section-heading { max-width: 600px; }
  #faq h2 { font-size: 30px; }
  #faq summary { font-size: 14px; }
  .contact-panel { padding: 28px; gap: 24px; }
}

/* Phones retain the bar above the headline and the side-by-side comparison. */
@media (max-width: 699px) {
  :root { --header-height: 54px; }
  .header-inner { min-height: 54px; padding: 4px 0; gap: 8px; }
  .brand img { width: 110px; }
  .telegram-header { width: 44px; height: 44px; }
  .telegram-header svg { width: 20px; height: 20px; }
  .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
  .site-header.is-scrolled { background: rgba(255,255,255,.97); border-bottom-color: var(--line); }
  #top.launch-hero { padding: 12px 0 26px; }
  #top .launch-grid { display: flex; flex-direction: column; gap: 0; }
  #top .launch-grid > div:first-child { display: contents; }
  #top .product-identity {
    order: 0; max-width: 320px !important; height: clamp(162px, 43vw, 190px);
    margin: 0 auto 18px; border-radius: 18px;
  }
  #top .identity-top { position: relative; z-index: 2; padding: 11px 14px 0; font-size: 9px; }
  #top .identity-bottom { display: none; }
  #top .gold-emblem {
    position: absolute; left: 50%; top: 50%; width: 100%; height: 210px;
    transform: translate(-50%, -50%) scale(1.12); transform-origin: center;
  }
  #top .chip-emblem { height: 140px; transform: translate(-50%, -50%); }
  #top .launch-title {
    order: 1; width: 100%; max-width: 600px; font-size: clamp(24px, 6.2vw, 32px);
    line-height: 1.13; margin: 0 0 15px;
  }
  #top .launch-description { order: 3; width: 100%; max-width: none; font-size: 14px; margin-bottom: 0; }
  #top .launch-checks { order: 4; width: 100%; margin: 16px 0 20px; gap: 9px; }
  #top .launch-checks li { font-size: 12px; line-height: 1.5; }
  #top .hero-actions { order: 5; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #top .hero-actions .button { width: 100%; min-height: 44px; font-size: 12px; padding: 10px 8px; }
  #robot-overview .two-line-title { font-size: clamp(22px, 5.6vw, 32px); line-height: 1.22; margin-bottom: 18px; }
  #robot-overview .compact-intro { font-size: 14px; }
  #robot-overview .hero-grid { gap: 24px; }
  #robot-overview .hero-content > .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .overview-test .backtest-note { font-size: 11px; line-height: 1.65; margin-top: 12px; }
  .product-algorithm { padding-inline: 14px; }
  .product-algorithm > summary { font-size: 13px; padding-block: 15px; }
  .product-algorithm .compact-intro, .robot-theses li { font-size: 13px; }
  .robot-theses li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  #offer .section-heading { margin-bottom: 26px; }
  #offer .section-heading h2 { font-size: clamp(25px, 6vw, 30px); }
  .pricing-table thead td { width: 29%; }
  .pricing-table thead th { width: 35.5%; font-size: 13px; padding: 13px 7px; }
  .pricing-table th, .pricing-table td { padding: 9px 7px; font-size: 12px; line-height: 1.4; font-weight: 400; }
  .pricing-table thead th { font-weight: 650; }
  .pricing-table .price-row td { padding: 13px 6px; font-size: clamp(17px, 4.3vw, 21px); font-weight: 400; }
  .pricing-table-wrap::after { left: 29%; width: 35.5%; }
  .pricing-table tfoot td { padding: 15px 6px 23px; }
  .pricing-table .button { width: min(100%, 126px); min-width: 0; min-height: 48px; padding: 8px 6px; font-size: 11px; }
  #offer .pricing-shared { font-size: 11px; line-height: 1.6; margin-top: 18px; }
  #faq .faq-layout { gap: 24px; }
  #faq h2 { font-size: 28px; }
  .section-intro, details p { font-size: 14px; line-height: 1.7; }
  .contact-panel { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .contact-panel h2 { font-size: 28px; }
  .contact-panel p { font-size: 14px; }
  .contact-actions .button { min-height: 44px; font-size: 13px; }
  .partner-logos { gap: clamp(10px, 3vw, 20px); }
  .partner-brand { flex: 1 1 0; }
  .partner-brand img { width: 100%; height: 32px; }
  .fxpro-brand { gap: 5px; }
  .fxpro-brand img { flex: 0 0 28px; width: 28px; height: 28px; }
  .fxpro-brand span { font-size: clamp(16px, 4.3vw, 20px); }
  .forex4you-brand img { height: 32px; }
}

@media (max-width: 359px) {
  .pricing-table th, .pricing-table td { font-size: 11px; padding-inline: 5px; }
  .pricing-table thead th { font-size: 12px; }
  .pricing-table .button { font-size: 10px; padding-inline: 4px; }
  #top .hero-actions .button { font-size: 11px; }
  .fxpro-brand { gap: 4px; }
  .fxpro-brand img { flex-basis: 24px; width: 24px; height: 24px; }
}

/* Short landscape viewports scroll naturally; content never gets squeezed to fit. */
@media (min-width: 700px) and (max-width: 940px) and (max-height: 540px) {
  #top.launch-hero { padding-block: 24px; }
  #top .launch-title { font-size: 29px; }
  #top .product-identity { max-width: 280px !important; justify-self: center; }
  #top .identity-bottom { display: none; }
}
@media (min-width: 941px) {
  #top.launch-hero { min-height: calc(100svh - var(--header-height)); }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (hover: none) {
  .button:hover { transform: none; box-shadow: none; }
}
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

.setup-guide h2 {
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  text-align: left;
}
.setup-steps li { min-width: 0; border-top: 2px solid #d6aa52; }
.setup-marker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  color: #174992;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.setup-steps h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.3; }
.setup-steps p { margin: 0; color: #40516b; font-size: 14px; line-height: 1.55; }
@media (max-width: 959px) {
  .setup-steps { grid-template-columns: 1fr; gap: 0; }
  .setup-steps li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    padding-block: 14px;
    border-top: 1px solid #d5deeb;
  }
  .setup-marker { grid-row: span 2; align-self: start; margin: 0; }
  .setup-steps p { grid-column: 2; }
}

.format-comparison { max-width: 1160px; }
.format-comparison > h2 {
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 24px);
}
.format-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  background: #fff;
  border: 1px solid #d5deeb;
  border-radius: 14px;
  text-align: left;
}
.format-copy { border-color: #b48b39; background: #fffaf0; }
.format-card h3 { margin: 0 0 16px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.22; }
.format-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  margin: 0 0 18px;
  color: #174992;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.15;
  font-weight: 750;
}
.format-price small { color: #44546b; font-size: 13px; font-weight: 500; }
.format-price a { color: #805c16; text-decoration: none; }
.format-price a:hover, .format-footer a:hover { text-decoration: underline; }
.format-price sup { font-size: .55em; }
.format-facts {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  margin: 0;
}
.format-facts > div { padding: 11px 0; border-top: 1px solid #dce3ed; }
.format-copy .format-facts > div { border-color: #e6d9bb; }
.format-facts dt { color: #526179; font-size: 12px; font-weight: 600; line-height: 1.35; }
.format-facts dd { margin: 4px 0 0; font-size: 15px; line-height: 1.48; }
.format-action.button { margin-top: 12px; width: 100%; min-height: 44px; }
.format-copy .format-action { background: #84601a; color: white; }
.format-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 18px;
  color: #41516a;
  font-size: 14px;
  line-height: 1.55;
}
.format-footer p { max-width: 82ch; margin: 0; scroll-margin-block-start: 100px; }
.format-footer a { color: #174992; text-decoration: underline; text-underline-offset: .15em; }
.format-contact { flex-shrink: 0; }
.start-requirements {
  margin-top: clamp(44px, 7vw, 88px);
  scroll-margin-top: 96px;
  text-align: left;
}
.requirements-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.requirements-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.start-requirements a { color: #174992; text-decoration: underline; text-underline-offset: .16em; }
.requirements-heading a { padding-block: 8px; }
.requirements-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 6vw, 84px);
}
.requirements-columns h3 {
  border-top: 2px solid #264e85;
  padding-top: 16px;
  margin: 0 0 18px;
  font-size: clamp(21px, 2vw, 27px);
}
.requirements-columns > :last-child h3 { border-color: #b48b39; }
.requirements-columns dl { margin: 0; }
.requirements-columns dl > div { margin-top: 16px; }
.requirements-columns dt { font-weight: 700; }
.requirements-columns dd { margin: 4px 0 0; color: #41516a; line-height: 1.55; }
@media (max-width: 739px) {
  .requirements-columns { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: 1fr; gap: 16px; }
  .format-card { display: block; grid-row: auto; }
  .format-facts { display: block; }
  .format-footer { display: grid; }
}

@media (max-width: 940px) {
  .header-actions .telegram-header {
    width: auto;
    padding-inline: 10px;
    text-align: center;
    border-radius: 22px;
    font-weight: 650;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .telegram-header::after { content: attr(aria-label); }
  .telegram-header svg { display: none; }
}
@media (max-width: 359px) {
  .header-inner .brand img { width: 84px; }
  .header-actions { gap: 4px; }
  .header-actions .telegram-header { font-size: 13px; padding-inline: 8px; }
}
