/* Hamara+ home v3. Every value here is in work/DESIGN.md. */
:root {
  --brand: #001C30;
  --accent: #0064FE;
  --act: #0655E7;
  --white: #F5F8FA;
  --soft: #E8EEF3;
  --black: #11161A;
  --text: #3D4650;
  --muted: #5E6873;
  --line: #D7DEE6;
  --on-dark: #FFFFFF;
  --on-dark-soft: #A9BED3;

  --t-note: .9375rem;
  --t-body: 1.25rem;
  --t-sub: clamp(1.15rem, 1rem + .45vw, 1.45rem);
  --t-section: clamp(2.2rem, 1.2rem + 3vw, 3.75rem);
  --t-hero: clamp(2.8rem, 1rem + 4.4vw, 4.6rem);

  --r-lg: 24px;
  --r-sm: 12px;
  --shadow: 0 30px 60px rgba(0, 10, 20, .35);

  --s-section: clamp(5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --content: 72rem;
  --header-h: 76px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (max-width: 760px) { :root { --t-body: 1.0625rem; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: Polin, system-ui, sans-serif; font-weight: 300; font-size: var(--t-body); line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: clip; letter-spacing: 0; font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
b, strong { font-weight: 600; }
a { color: var(--act); text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; }
::selection { background: #CCE0FF; color: var(--brand); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.split > *, .hero__grid > *, .close__grid > * { min-width: 0; }

/* buttons: one primary, one quiet */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 1.8em;
  border-radius: 999px; font-weight: 600; font-size: var(--t-body); line-height: 1; white-space: nowrap;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--act); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--accent:hover { background: #0447C4; } }
.btn--line { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--bar { height: 46px; font-size: var(--t-note); padding: 0 1.3em; }
.btn--sm { height: 44px; font-size: var(--t-note); padding: 0 1.1em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { color: inherit; font-weight: 600; text-decoration: none; display: inline-flex; gap: .5em; align-items: center; min-height: 44px; }
.link-arrow span { transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(-4px); } }
@media (max-width: 760px) { .btn { height: 54px; font-size: 1.125rem; } .btn--bar { height: 44px; font-size: var(--t-note); padding: 0 1em; } }

/* header: transparent on the navy hero, white once scrolled */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); transition: background-color 200ms var(--ease); }
.bar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar__logo { display: inline-flex; align-items: center; min-height: 44px; }
.bar__logo img { width: 124px; }
.bar__logo .logo-light { display: none; }
.bar__nav { display: flex; align-items: center; gap: 1.5rem; }
.bar__login { color: var(--on-dark); font-weight: 600; font-size: var(--t-note); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.bar.is-scrolled { background: #fff; border-bottom: 1px solid var(--line); }
.bar.is-scrolled .logo-dark { display: none; }
.bar.is-scrolled .logo-light { display: block; }
.bar.is-scrolled .bar__login { color: var(--brand); }
@media (max-width: 760px) { .bar__logo img { width: 92px; } .bar__nav { gap: .9rem; } }
@media (max-width: 350px) { .bar__login { display: none; } }

/* ---------------------------------------------------------------- hero -- */
.hero { background: var(--brand); color: var(--on-dark-soft); padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem)); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { margin: 0; color: var(--on-dark); font-weight: 900; font-size: var(--t-hero); line-height: 1.04; text-wrap: balance; }
.accent { color: var(--accent); }
.hero__sub { margin: 1.5rem 0 0; font-size: var(--t-sub); line-height: 1.55; max-width: 30em; color: var(--on-dark-soft); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; color: var(--on-dark); }

.phone-wrap { display: flex; justify-content: center; padding-bottom: 0; align-self: end; }
.phone {
  position: relative; width: 375px; height: 640px; flex: none; transform: scale(.86); transform-origin: bottom center; margin-bottom: -88px;
  border-radius: 40px; background: var(--white); border: 12px solid #0A0E12; box-shadow: var(--shadow); overflow: hidden;
}
.phone__notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 110px; height: 30px; border-radius: 999px; background: #0A0E12; z-index: 3; }
.phone__screen { height: 100%; padding: 66px 22px 22px; }
.phone__top img { width: 104px; }
.phone__title { margin: 1.25rem 0 .75rem; font-weight: 900; font-size: var(--t-sub); color: var(--brand); line-height: 1.1; }
.phone__list { list-style: none; margin: 0; padding: 0; }
.phone__list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
.phone__list li > span:first-child b { display: block; color: var(--brand); font-size: var(--t-body); line-height: 1.25; }
.phone__list li > span:first-child span { display: block; color: var(--muted); font-size: var(--t-note); }
.phone__list li.is-focus { margin-inline: -12px; padding-inline: 12px; border-radius: var(--r-sm); background: #fff; border-bottom-color: transparent; }
.chip { flex: none; font-size: var(--t-note); font-weight: 600; padding: .3em .85em; border-radius: 999px; background: #DCE8FF; color: var(--act); white-space: nowrap; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.chip--muted { background: var(--soft); color: var(--muted); }
.chip.is-sale { background: var(--accent); color: #fff; }
.chip.is-bump { animation: bump 480ms var(--ease); }
@keyframes bump { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.phone__toast {
  position: absolute; z-index: 4; top: 52px; inset-inline: 14px; display: flex; gap: .75rem; align-items: center;
  background: var(--brand); color: var(--on-dark-soft); border-radius: var(--r-sm); padding: 14px 16px; font-size: var(--t-note); line-height: 1.35;
  opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity 420ms var(--ease), transform 520ms var(--ease);
}
.phone__toast b { display: block; color: #fff; font-size: var(--t-body); }
.phone__toast-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.phone.is-sent .phone__toast { opacity: 1; transform: none; }

.hero__logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.25rem; margin-top: 0; padding: 1.75rem 0;
  border-top: 1px solid rgba(169, 190, 211, .18); position: relative; z-index: 2; background: var(--brand);
  font-weight: 600; font-size: var(--t-note); color: rgba(169, 190, 211, .75);
}
.hero__logos-label { color: var(--on-dark); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .phone-wrap { justify-content: center; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .hero__title { font-size: min(9.2vw, 3.4rem); }
  .hero__sub { font-size: var(--t-body); margin-top: 1rem; }
  .hero__cta { margin-top: 1.75rem; gap: 1.25rem; }
  .hero__grid { gap: 2.5rem; }
  .phone { transform: scale(.72); transform-origin: top center; margin-bottom: -180px; }
  .hero__logos { gap: .4rem 1.25rem; padding: 1.25rem 0; }
}

/* ------------------------------------------------------------ sections -- */
.sec { padding-block: var(--s-section); }
.sec--soft { background: var(--soft); }
.title { margin: 0; color: var(--brand); font-weight: 900; font-size: var(--t-section); line-height: 1.08; text-wrap: balance; }
.title--light { color: var(--on-dark); }
.sub { margin: 1.1rem 0 0; font-size: var(--t-sub); color: var(--muted); line-height: 1.55; max-width: 30em; }
.sub--light { color: var(--on-dark-soft); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* meaning: a table, not cards */
.cmp { border-top: 2px solid var(--brand); }
.cmp__row { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmp__row > :first-child { font-size: var(--t-note); color: var(--muted); }
.cmp__row > :nth-child(2) { color: var(--muted); }
.cmp__row > .on { color: var(--brand); font-weight: 600; }
.cmp__row--head > * { font-weight: 600; color: var(--muted); font-size: var(--t-note); }
.cmp__row--head > .on { color: var(--accent); }
.cmp__row:last-child > .on { color: var(--accent); }
@media (max-width: 760px) {
  .cmp__row { grid-template-columns: 1fr 1fr; row-gap: .25rem; }
  .cmp__row > :first-child { grid-column: 1 / -1; }
  .cmp__row--head > :first-child { display: none; }
}

/* steps: the numeral is the picture */
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.steps li { display: grid; align-content: start; gap: .4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps__n { font-weight: 900; font-size: var(--t-hero); line-height: .9; color: rgba(0, 100, 254, .22); margin-bottom: .75rem; }
.steps b { color: var(--brand); font-size: var(--t-sub); line-height: 1.3; }
.steps li > span:last-child { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps__n { font-size: var(--t-section); } }

/* the one colour block */
.block { background: var(--accent); color: #fff; padding-block: clamp(4.5rem, 9vw, 8rem); }
.block__in { text-align: center; }
.block__line { margin: 0 auto; max-width: 18em; font-weight: 900; font-size: var(--t-section); line-height: 1.12; text-wrap: balance; color: #fff; }
.block__sub { margin: 1.25rem auto 0; max-width: 32em; font-size: var(--t-sub); color: rgba(255, 255, 255, .88); }

/* integrations: names as type */
.names { margin: 0; display: flex; flex-wrap: wrap; gap: .9rem 2.25rem; font-weight: 600; font-size: var(--t-sub); line-height: 1.3; color: var(--brand); padding-top: 1.5rem; border-top: 2px solid var(--brand); }
.names span { white-space: nowrap; }
@media (max-width: 760px) {
  .names { justify-content: center; gap: .75rem 1.5rem; }
  [data-s]:not([data-s="hero"]) .title, [data-s]:not([data-s="hero"]) .sub { text-align: center; margin-inline: auto; }
}

/* faq: lines, not boxes */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-weight: 600; color: var(--brand); font-size: var(--t-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2190"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: var(--t-note); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq details p { margin: -.4rem 0 1.4rem; color: var(--text); max-width: 34em; }

/* close: navy, form */
.close { background: var(--brand); color: var(--on-dark-soft); padding-block: var(--s-section); }
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.close__form { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); color: var(--text); }
.close__form form { display: grid; gap: 1rem; }
.f { display: grid; gap: .35rem; }
.f > span, .f legend { font-size: var(--t-note); font-weight: 600; color: var(--brand); }
.f input:not([type="radio"]) { height: 54px; width: 100%; border: 1px solid #C5CFDA; border-radius: var(--r-sm); padding: 0 1em; font-size: var(--t-body); font-weight: 300; background: #fff; color: var(--brand); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.f input[dir="ltr"] { text-align: right; }
.f input:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 3px #D3E3FF; }
.f input[aria-invalid="true"] { border-color: #B42318; }
.f--seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.f--seg legend { float: right; margin-inline-end: .75rem; padding: 0; }
.f--seg label { position: relative; cursor: pointer; }
.f--seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.f--seg span { display: inline-flex; align-items: center; height: 44px; padding: 0 1.1em; border-radius: 999px; border: 1px solid #C5CFDA; font-size: var(--t-note); font-weight: 600; color: var(--muted); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.f--seg input:checked + span { background: #E3EEFF; border-color: var(--act); color: var(--act); }
.f--seg input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__err { margin: 0; color: #B42318; font-size: var(--t-note); font-weight: 600; }
.form__legal { margin: 0; font-size: var(--t-note); color: var(--muted); }
.done { padding: 1rem 0; }
.done:focus { outline: none; }
.done__title { margin: 0; font-weight: 900; font-size: var(--t-sub); color: var(--brand); }
.done__txt { margin: .4rem 0 0; }
@media (max-width: 900px) { .close__grid { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--brand); color: var(--on-dark-soft); font-size: var(--t-note); padding: 2rem 0 1.5rem; border-top: 1px solid rgba(169, 190, 211, .18); }
.foot__grid { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.foot address { font-style: normal; line-height: 1.7; }
.foot address [lang="en"] { display: inline-block; text-align: right; }
.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-content: start; }
.foot__nav a, .foot__btn { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--t-note); }
.foot__nav a:hover, .foot__btn:hover { text-decoration: underline; }
.foot__base { margin-top: 1.25rem; }

/* cookie */
.cookie { position: fixed; z-index: 70; bottom: 16px; inset-inline-end: 16px; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; font-size: var(--t-note); line-height: 1.5; color: var(--text); }
.cookie p { margin: 0 0 .8rem; }
.cookie__b { display: flex; gap: .5rem; }
@media (max-width: 760px) {
  .cookie { inset-inline: 8px; bottom: 8px; max-width: none; padding: 8px 10px 8px 8px; border-radius: 16px; display: flex; align-items: center; gap: .6rem; line-height: 1.35; }
  .cookie p { margin: 0; flex: 1; }
  .cookie__b { flex: none; gap: .35rem; }
  .cookie .btn--sm { padding: 0 .8em; }
}

/* entrance: below the fold only, via a class JS adds */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone__toast, .chip { transition: none; }
}
