/* Nexo landing — tokens and components from the "Logo Nexo" design (Landing board). */

:root {
  --navy: #161A33;
  --navy-2: #1F2444;
  --navy-deep: #0B0E20;
  --line-dark: #2E3458;
  --bg: #F5F6FA;
  --white: #FFFFFF;
  --blue: #3B5BFD;
  --blue-hover: #2741D6;
  --blue-soft: #EEF1FF;
  --blue-light: #5B78FF;
  --orange: #FF7A45;
  --text: #161A33;
  --text-muted: #4A5068;
  --text-faint: #8A90A8;
  --text-on-dark: #C9CEE4;
  --text-on-blue: #E6EAFF;
  --border: #E3E6F0;
  --border-faq: #DDE1EC;
  --border-soft: #EEF0F5;
  --ok-bg: #E3F5EB;
  --ok-fg: #15603A;
  --warn-bg: #FFE9DF;
  --warn-fg: #A23E14;
  --info-bg: #E8EDFF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
svg { flex: 0 0 auto; }

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

/* ---------- Layout ---------- */

.container { max-width: 1200px; margin: 0 auto; }

.section { padding: var(--section-y) var(--gutter); }
.section--white { background: var(--white); }
.section--light { background: var(--bg); }
.section--dark { background: var(--navy); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }

.stack { display: flex; flex-direction: column; }
.stack-56 { gap: 56px; }

.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 800px; }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow--orange { color: var(--orange); }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em;
}
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }

.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.section--dark .lead { color: var(--text-on-dark); }

.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #FF8E60; color: var(--navy); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--white); font-weight: 600; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--white { min-height: 58px; padding: 0 32px; background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--bg); color: var(--navy); }

/* ---------- Brand ---------- */

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; }

/* ---------- Header / hero ---------- */

.site-header { background: var(--navy); color: var(--white); }

.nav {
  max-width: 1200px; margin: 0 auto; padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(14px, 3vw, 32px); font-size: 15px; font-weight: 500;
}
.nav__links a:not(.btn) { color: var(--text-on-dark); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--white); }

.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 9vw, 128px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 80px);
}
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  font-size: 14px; color: var(--text-on-dark);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -0.04em;
}
.accent { color: var(--orange); }
.hero__lead { max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-on-dark); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--text-on-dark); }
.hero__checks li { display: flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }

/* Phone mockup */
.phone-scene { position: relative; width: min(100%, 440px); height: 680px; }
.phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 300px; height: 620px; padding: 12px; border-radius: 54px;
  background: var(--navy-deep);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #303761;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden;
  background: #262B57; padding: 66px 18px 16px; display: flex; flex-direction: column;
}
.phone__blob { position: absolute; border-radius: 50%; }
.phone__blob--a { right: -70px; top: -40px; width: 260px; height: 260px; background: #303670; }
.phone__blob--b { left: -80px; bottom: 60px; width: 220px; height: 220px; background: #2C3164; }
.phone__island {
  position: absolute; left: 50%; top: 13px; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: var(--navy-deep);
}
.phone__grid {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 22px; justify-items: center;
}
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.app__icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); }
.app__label { width: 30px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.app--brand { gap: 5px; }
.app--brand .app__icon {
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(255, 122, 69, 0.28), 0 12px 32px rgba(255, 122, 69, 0.6);
}
.app--brand .app__name { font-size: 11px; font-weight: 700; color: var(--white); white-space: nowrap; }
.phone__dock {
  position: relative; margin-top: auto; padding: 12px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between;
}
.phone__dock .app__icon { background: rgba(255, 255, 255, 0.14); }

.float-label {
  position: absolute; right: 0; top: 150px; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: var(--white); color: var(--navy);
  font-size: 14px; font-weight: 700; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.float-label .dot { width: 10px; height: 10px; }

.notif {
  position: absolute; left: 0; bottom: 20px; width: 272px; padding: 16px; border-radius: 22px;
  background: var(--white); color: var(--navy); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; gap: 10px;
}
.notif__head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.notif__brand { font-weight: 700; letter-spacing: 0.04em; }
.notif__time { margin-left: auto; color: var(--text-muted); }
.notif__body { font-size: 14px; line-height: 1.45; }
.notif__actions { display: flex; gap: 8px; }

.brand-chip {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--orange);
}
.brand-chip--24 { width: 24px; height: 24px; border-radius: 7px; }
.brand-chip--34 { width: 34px; height: 34px; border-radius: 10px; }

/* Mockup buttons (decorative) */
.mock-btn {
  flex: 1; min-height: 40px; border: 0; border-radius: 12px;
  font: 600 14px var(--font-body); cursor: default;
}
.mock-btn--blue { background: var(--blue); color: var(--white); }
.mock-btn--outline { border: 1.5px solid #D5D9E6; background: var(--white); color: var(--navy); }

/* ---------- Comparison ---------- */

.compare { --min: 300px; }
.compare__card {
  padding: clamp(28px, 4vw, 44px); border-radius: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.compare__card--generic { background: var(--bg); }
.compare__card--generic h3 { font-weight: 600; color: var(--text-muted); }
.compare__card--nexo { background: var(--navy); color: var(--white); }
.compare__list { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.5; }
.compare__card--generic .compare__list { color: var(--text-muted); }
.compare__card--nexo .compare__list { color: #E4E7F2; }
.compare__list li { display: flex; gap: 14px; }
.compare__list svg { margin-top: 2px; }

/* ---------- Platforms ---------- */

.tile { padding: 32px; border-radius: 28px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.tile .h3 { margin-top: 8px; }
.tile p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.icon-box {
  width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
}
.icon-box--sm { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Delivery ---------- */

.delivery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.delivery__head .section-head { flex: 1 1 460px; min-width: 0; max-width: 640px; }
.big-72 {
  flex: 0 1 auto; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 17vw, 232px); line-height: 0.82; letter-spacing: -0.06em; color: var(--orange);
}
.big-72 span { margin-left: 10px; font-size: 0.28em; letter-spacing: -0.02em; color: var(--white); }

.step-dark {
  padding: 32px; border-radius: 28px; background: var(--navy-2); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 14px;
}
.step-dark--hl { border: 2px solid var(--orange); }
.step-dark .h3 { margin-top: 6px; }
.step-dark p { font-size: 16px; line-height: 1.6; color: var(--text-on-dark); }
.tag {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  background: var(--line-dark); font-size: 14px; font-weight: 700;
}
.tag--orange { background: var(--orange); color: var(--navy); }

/* ---------- Features ---------- */

.features { --min: 320px; }
.feature { padding: 24px; border-radius: 30px; background: var(--bg); display: flex; flex-direction: column; gap: 22px; }
.feature__mock {
  padding: 18px; border-radius: 20px; background: var(--white); min-height: 172px;
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
}
.feature__mock--center { justify-content: center; }
.feature__text { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.feature__text h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.feature__text p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

/* Agenda mock */
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 12px; color: var(--text-muted); }
.days > div { padding: 8px 0; border-radius: 12px; background: var(--bg); }
.days b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--navy); }
.days .is-active { background: var(--navy); color: var(--text-on-dark); }
.days .is-active b { color: var(--white); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 13px; font-weight: 600; }
.slots > div { padding: 8px 0; border-radius: 10px; border: 1px solid var(--border); }
.slots .is-taken { border-color: var(--border-soft); color: var(--text-faint); text-decoration: line-through; }
.slots .is-picked { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* Notifications mock */
.push { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg); }
.push__text { display: flex; flex-direction: column; gap: 3px; }
.push__head { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.push__head span { font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.push__body { font-size: 14px; line-height: 1.4; color: #33384F; }

/* Payment mock */
.row-between { display: flex; justify-content: space-between; gap: 8px; }
.row-between--rule { padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.muted { color: var(--text-muted); }
.mock-btn--pay { flex: none; min-height: 46px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.center-note { text-align: center; font-size: 13px; color: var(--text-muted); }

/* Schedule mock */
.feature__mock--schedule { padding: 10px 18px; gap: 0; }
.sched-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.sched-row:last-child { border-bottom: 0; }
.sched-row > span:first-child { font-weight: 600; }

.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge--info { background: var(--info-bg); color: var(--blue-hover); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--neutral { background: var(--border-soft); color: var(--text-muted); }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--xs { padding: 3px 9px; font-size: 11px; }

/* Chat mock */
.bubble { max-width: 85%; padding: 10px 14px; line-height: 1.4; }
.bubble--in { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--bg); }
.bubble--out { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--blue); color: var(--white); }
.chat-actions { display: flex; gap: 8px; }
.mock-pill { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.mock-pill.mock-btn--dark { background: var(--navy); color: var(--white); }
.confirmed {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg);
  font-size: 12px; font-weight: 700;
}

/* Admin mock */
.feature__mock--admin { gap: 12px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis > div { padding: 10px; border-radius: 12px; background: var(--bg); color: var(--text-muted); }
.kpis b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.appt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.appt--rule { border-bottom: 1px solid var(--border-soft); }

/* Extras */
.extras { display: flex; flex-direction: column; gap: 24px; }
.extras h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.extras ul { --min: 250px; gap: 16px; }
.extra { padding: 24px; border-radius: 22px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.extra__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.extra__text { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* ---------- How it works ---------- */

.step { padding: 36px 32px; border-radius: 28px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; color: var(--blue); }
.step p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Audience ---------- */

.section--audience { padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(80px, 10vw, 120px); }
.audience { gap: 40px; }
.audience h2 { max-width: 760px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; font-size: 17px; font-weight: 500; }
.chips li { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--border-faq); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--border-faq); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 20px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-faq);
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
}
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; max-width: 700px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* ---------- CTA ---------- */

.cta { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; }
.cta__lead { max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-on-blue); }
.contact-form {
  width: 100%; max-width: 720px; margin-top: 12px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px 16px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--white); }
.optional { font-weight: 400; color: var(--text-on-blue); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 16px;
  background: var(--white); color: var(--navy); font: 400 16px var(--font-body);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.was-validated .field :invalid { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.45); }
.contact-form__captcha { display: flex; justify-content: center; min-height: 65px; }
.contact-form__footer { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.contact-form button { border: 0; cursor: pointer; font-family: var(--font-body); }
.contact-form button:disabled { opacity: 0.7; cursor: progress; }
.contact-form__status { min-height: 1.5em; font-size: 16px; font-weight: 600; color: var(--text-on-blue); text-align: center; }
.contact-form__status[data-kind="ok"] { color: var(--white); }
.contact-form__status[data-kind="error"] { color: #FFE3D6; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--text-on-dark); padding: 40px var(--gutter); }
.site-footer__inner {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px; font-size: 14px;
}
.site-footer .brand__word { font-size: 22px; }
.site-footer__tagline { color: var(--text-on-dark); margin-left: 8px; }

/* ---------- Small screens ---------- */

@media (max-width: 440px) {
  /* Scale the fixed-size phone scene down so it fits a 375px viewport. */
  .phone-scene { width: 440px; flex: 0 0 auto; transform: scale(0.78); transform-origin: top center; margin-bottom: calc(680px * -0.22); }
  .hero__visual { overflow: visible; }
}
@media (max-width: 360px) {
  .phone-scene { transform: scale(0.66); margin-bottom: calc(680px * -0.34); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__plus, .btn { transition: none; }
}
