/* Aveya — styles based on the Aveya Brand Guidelines (concept, v1.0).
   Palette, Sora typography, the "A" mark and flowing shapes come from the board. */

:root {
  /* Primary palette */
  --fresh-green: #22D38B;
  --clear-teal: #00D1C2;
  --deep-green: #0B202A;
  --mint-light: #E7F7F1;
  --soft-white: #FAFBF9;

  /* Secondary palette */
  --slate: #A9B7BE;
  --sand: #F1EFEA;
  --sunrise: #FFD6A5;
  --coral: #FF7A7A;
  --lavender: #C7B8FF;

  /* Derived tokens */
  --ink: var(--deep-green);
  --text: #33464F;
  --muted: #5E717A;              /* slate, darkened for readable body text */
  --green-text: #0E9F6E;         /* fresh green, darkened for text on light backgrounds */
  --line: #DCEBE5;
  --surface: #FFFFFF;
  --surface-soft: #F2F9F6;
  --danger: #C2413B;
  --brand-gradient: linear-gradient(110deg, var(--fresh-green), var(--clear-teal));
  --shadow: 0 24px 60px rgba(11, 32, 42, .10);
  --radius-lg: 32px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--ink);
  font-family: Sora, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -.035em;
}

.icon {
  width: 1em;
  height: 1em;
  display: block;
}

/* --- Logo -------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-word {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}

.logo-tagline {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 220px;
}

.with-tagline .logo-mark {
  width: 64px;
  height: 58px;
  align-self: flex-start;
}

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

header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 249, .88);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

nav {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  color: var(--green-text);
}

.right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Language switcher ------------------------------------------------- */

.langswitch {
  position: relative;
}

.langswitch summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.langswitch summary::-webkit-details-marker {
  display: none;
}

.langswitch summary:hover, .langswitch[open] summary {
  border-color: var(--clear-teal);
  box-shadow: 0 6px 18px rgba(0, 209, 194, .18);
}

.langswitch summary:focus-visible {
  outline: 2px solid var(--clear-teal);
  outline-offset: 2px;
}

.langswitch-globe {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.langswitch-globe .icon {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.langswitch summary:hover .langswitch-globe .icon,
.langswitch[open] .langswitch-globe .icon {
  transform: rotate(180deg);
}

.langswitch-chevron {
  font-size: 14px;
  color: var(--muted);
  transition: transform .25s ease;
}

.langswitch[open] .langswitch-chevron {
  transform: rotate(180deg);
}

.langswitch-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 270px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(11, 32, 42, .16);
  transform-origin: top right;
  animation: langswitch-in .28s cubic-bezier(.2, .8, .2, 1);
  z-index: 30;
}

.langswitch-panel::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 200px;
  height: 200px;
  background: url("img/shape.svg") center / contain no-repeat;
  opacity: .35;
  pointer-events: none;
}

.langswitch-caption, .langswitch-option {
  position: relative;
}

.langswitch-caption {
  margin: 6px 10px 10px;
  font-size: 12px;
  color: var(--muted);
}

.langswitch-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  animation: langswitch-row .35s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 55ms + 60ms);
  transition: background .2s ease;
}

.langswitch-option:hover {
  background: #F2FCFA;
}

.langswitch-greeting {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  transition: transform .25s ease, color .25s ease;
}

.langswitch-option:hover .langswitch-greeting {
  transform: translateX(4px);
  color: var(--green-text);
}

.langswitch-name {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
}

.langswitch-tick {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: transparent;
  transition: border-color .2s ease;
}

.langswitch-option:hover .langswitch-tick {
  border-color: var(--clear-teal);
}

.langswitch-option.is-active {
  background: var(--mint-light);
}

.langswitch-option.is-active .langswitch-tick {
  border: 0;
  background: var(--brand-gradient);
  color: var(--deep-green);
}

@keyframes langswitch-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.96);
  }
}

@keyframes langswitch-row {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .langswitch-panel, .langswitch-option {
    animation: none;
  }
}

/* --- Buttons & labels ------------------------------------------------- */

.button {
  border: 0;
  background: var(--brand-gradient);
  color: var(--deep-green);
  padding: 16px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 209, 194, .28);
}

.button.dark {
  background: var(--deep-green);
  color: white;
}

.button.dark:hover {
  box-shadow: 0 10px 24px rgba(11, 32, 42, .25);
}

.smallbtn {
  padding: 11px 18px;
  font-size: 12px;
  white-space: nowrap;
}

.full {
  width: 100%;
  border-radius: 14px;
}

.pill, .kicker {
  font-size: 13px;
  font-weight: 600;
}

.pill {
  background: var(--mint-light);
  color: var(--deep-green);
  padding: 8px 13px;
  border-radius: 999px;
  display: inline-block;
}

.kicker {
  color: var(--muted);
}

em {
  font-style: normal;
  color: var(--green-text);
}

/* --- Hero (after the "Advertising example" page of the brand book) ------ */

.hero {
  position: relative;
  min-height: min(calc(100vh - 82px), 780px);
  padding: 6vw 8vw;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0;
  hyphens: manual;
}

.hero h1 em {
  white-space: nowrap;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rule {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--fresh-green);
  margin: 34px 0 22px;
}

.hero-tag {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

.hero-tag span {
  display: block;
}

.hero-sub {
  margin: 28px 0 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.hero-actions .button, .hero-actions .textlink {
  white-space: nowrap;
}

.textlink {
  font-size: 14px;
  font-weight: 600;
}

.textlink:hover {
  color: var(--green-text);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
  font-size: 12px;
  font-weight: 500;
}

.proof span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint-light);
  color: var(--green-text);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 70%;
  display: block;
}

.hero-curve {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 34%;
  height: 100%;
}

.upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--brand-gradient);
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-size: 30px;
}

/* --- Statement band ---------------------------------------------------- */

.statement {
  padding: 95px 8vw;
  background: var(--deep-green);
  color: white;
  display: grid;
  grid-template-columns: .3fr 1fr .7fr;
  column-gap: 48px;
  align-items: end;
}

.statement span {
  color: var(--fresh-green);
  font-weight: 600;
  font-size: 14px;
}

.statement p {
  line-height: 1.7;
  color: #B7C7CE;
  font-weight: 300;
}

.statement.has-photo {
  position: relative;
  overflow: hidden;
  padding-right: calc(8vw + 220px);
}

.statement.has-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 300px;
  background: url("img/statement-road.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.statement.has-photo > * {
  position: relative;
  z-index: 1;
}

.statement h2, .section h2, .banner h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0;
}

/* --- Sections ---------------------------------------------------------- */

.section {
  padding: 110px 8vw;
}

.section > .kicker, .people-copy .kicker {
  margin-bottom: 18px;
}

.people {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 6vw;
  align-items: center;
}

.people-copy p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  max-width: 480px;
}

.people-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 12px;
  max-width: 580px;
  justify-self: end;
  width: 100%;
}

.people-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.people-grid img.wide {
  grid-column: 1 / -1;
  height: 290px;
  border-radius: 28px;
  object-position: 72% center;
}

/* Keep faces in frame when the tiles are cropped. */
.people-grid img:nth-child(2) {
  object-position: 55% 25%;
}

.cardhead i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.solutions {
  background: var(--surface-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.cards article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cardhead span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cards h3 {
  font-size: 23px;
  margin: 38px 0 0;
}

.cards p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  font-weight: 300;
}

.cards a {
  margin-top: auto;
  font-weight: 600;
  font-size: 13px;
}

.cards .accent {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: white;
}

.cards .accent p, .cards .accent .cardhead span {
  color: #B7C7CE;
}

.cards .accent a {
  color: var(--fresh-green);
}

.cards .accent .cardhead i {
  background: var(--brand-gradient);
  border: 0;
}

/* --- How it works: four illustrated step cards ------------------------- */

.how {
  padding-left: 5vw;
  padding-right: 5vw;
}

.how > .kicker, .how > h2 {
  margin-left: 3vw;
}

.howgrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

/* Ribbon sits above card backgrounds and photos, below text and mini-interfaces. */
.howribbon {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 150px;
  width: 100%;
  height: 300px;
  pointer-events: none;
}

.howcard {
  position: relative;
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: white;
}

.howcard-upload {
  background: linear-gradient(160deg, #E7F7F1 0%, #F4FBF8 55%, #FFFFFF 100%);
}

.howcard-read {
  background: linear-gradient(180deg, #EEF6FA 0%, #F6FAFB 60%);
}

.howcard-ask {
  background: linear-gradient(180deg, #FBF8F3 0%, #F4F1EA 100%);
}

.howcard-match {
  background: linear-gradient(180deg, #F3F8F7 0%, #EAF3F1 100%);
}

.howcard-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}

.howcard-read .howcard-photo {
  background-position: 18% 60%;
}

.howcard-match .howcard-photo {
  background-position: 72% 75%;
}

.howcard-text {
  position: relative;
  z-index: 2;
  padding: 26px 26px 0;
}

.howcard-text b {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.howcard-text h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 10px 0 8px;
}

.howcard-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}

.howcard-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 280px;
}

/* Shared mini-interface surface */
.demo-drop, .demo-sheet, .demo-options li, .demo-offers li {
  background: white;
  box-shadow: 0 14px 34px rgba(11, 32, 42, .10);
}

/* 01 — upload */
.demo-paper {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 58%;
  height: 230px;
  padding: 16px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(11, 32, 42, .08);
  transform: rotate(7deg);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-paper span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
}

.demo-paper img {
  width: 62%;
  height: auto;
  align-self: flex-end;
  border-radius: 8px;
  background: #F6EFEA;
  margin-bottom: 6px;
}

.demo-paper i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #E6ECEE;
}

.demo-paper i:nth-of-type(2n) {
  width: 75%;
}

.demo-drop {
  position: absolute;
  left: 18px;
  top: 70px;
  width: 64%;
  padding: 22px 14px;
  border-radius: 18px;
  outline: 1.5px dashed #9DCFC1;
  outline-offset: -9px;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.demo-drop-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 6px;
}

.demo-drop strong {
  font-size: 12px;
  font-weight: 600;
}

.demo-drop span {
  font-size: 11px;
  color: var(--green-text);
}

.demo-pdf {
  position: absolute;
  left: 58%;
  top: 48px;
  width: 50px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(160deg, #FF7A7A, #E5484D);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 18px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgba(229, 72, 77, .3);
}

.demo-pdf span {
  font-size: 10px;
  font-weight: 700;
}

/* 02 — extraction */
.demo-sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 22px;
  border-radius: 16px;
  padding: 14px;
  font-size: 11px;
}

.demo-sheet-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.demo-sheet-head img {
  width: 44%;
  height: auto;
}

.demo-sheet-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.demo-sheet-head strong {
  font-size: 12px;
  font-weight: 600;
}

.demo-sheet-head span {
  color: var(--muted);
}

.demo-badge {
  align-self: flex-end;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mint-light);
  color: var(--green-text);
  font-size: 10px;
  font-weight: 600;
}

.demo-sheet dl {
  margin: 10px 0;
}

.demo-sheet dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #EEF2F2;
}

.demo-sheet dt {
  color: var(--muted);
}

.demo-sheet dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.demo-sheet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.demo-sheet-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.demo-ok {
  color: var(--green-text);
}

.demo-ok .icon {
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: var(--fresh-green);
  color: white;
}

/* 03 — questions */
.demo-person {
  position: absolute;
  right: -25%;
  bottom: 0;
  width: 77%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
  height: auto;
}

.demo-options {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 59%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-options li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  white-space: nowrap;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.demo-options li > .icon {
  font-size: 17px;
  flex-shrink: 0;
}

.demo-options li span {
  flex: 1;
}

.demo-options li.selected {
  border-color: var(--clear-teal);
  background: #F2FCFA;
}

.demo-options li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clear-teal);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* 04 — possibilities */
.demo-offers {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-offers li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.demo-offers li > i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.tone-green {
  background: var(--mint-light);
  color: var(--green-text);
}

.tone-blue {
  background: #E6F0FB;
  color: #2F6FB5;
}

.tone-lavender {
  background: #EFEAFF;
  color: #6B55C9;
}

.demo-offers li div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.demo-offers strong {
  font-size: 12px;
  font-weight: 600;
}

.demo-offers div > small {
  font-size: 10px;
  color: var(--muted);
}

.demo-offers div > span {
  font-size: 14px;
  font-weight: 700;
}

.demo-offers div > span small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.demo-offers li > .icon {
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .howgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .howribbon {
    display: none;
  }
}

@media (max-width: 700px) {
  .how > .kicker, .how > h2 {
    margin-left: 0;
  }

  .howgrid {
    grid-template-columns: 1fr;
  }

  .howcard {
    min-height: 460px;
  }
}

/* --- Closing banner ---------------------------------------------------- */

.banner {
  margin: 0 4vw 80px;
  padding: 70px;
  border-radius: 34px;
  background: var(--mint-light) url("img/shape.svg") right -80px center / 560px no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.banner .kicker {
  margin-bottom: 14px;
}

.banner p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
}

.banner-copy .button {
  margin-top: 14px;
}

.banner-photo {
  width: 300px;
  height: 270px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(11, 32, 42, .18);
  flex-shrink: 0;
}

/* --- Contact ----------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
  padding-top: 20px;
}

.contact-info {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  background: var(--deep-green);
  color: white;
  display: flex;
  flex-direction: column;
}

.contact-info::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: url("img/shape.svg") center / contain no-repeat;
  opacity: .7;
  pointer-events: none;
}

.contact-info > * {
  position: relative;
  z-index: 1;
}

.contact-info .kicker {
  color: var(--fresh-green);
  margin-bottom: 16px;
}

.contact-info h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 16px;
}

.contact-info p {
  margin: 0;
  color: #B7C7CE;
  font-weight: 300;
  line-height: 1.7;
  max-width: 400px;
}

.contact-phone {
  margin-top: auto;
  padding-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
}

.contact-phone-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform .25s ease;
}

.contact-phone:hover .contact-phone-icon {
  transform: rotate(-12deg) scale(1.05);
}

.contact-phone small {
  display: block;
  font-size: 13px;
  color: #B7C7CE;
}

.contact-phone strong {
  display: block;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.contact-phone:hover strong {
  color: var(--fresh-green);
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: white;
  padding: 44px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 24px;
  margin: 0 0 22px;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.contact-fields label.wide {
  grid-column: 1 / -1;
}

.contact-fields small {
  font-weight: 400;
  color: var(--muted);
}

.contact-fields input, .contact-fields textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--soft-white);
  transition: border-color .15s ease, background .15s ease;
}

.contact-fields textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-fields input:focus, .contact-fields textarea:focus {
  outline: 2px solid var(--clear-teal);
  outline-offset: 1px;
  border-color: transparent;
  background: white;
}

.contact-fields label.invalid input, .contact-fields label.invalid textarea {
  border-color: var(--coral);
  background: #FFF8F7;
}

.field-error {
  color: var(--danger);
  font-weight: 500;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-privacy {
  margin: 16px 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.contact-form .button .icon {
  font-size: 18px;
}

.contact-thanks {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

.contact-thanks h3 {
  font-size: 28px;
  margin: 0 0 8px;
}

.contact-thanks .success {
  font-size: 30px;
}

/* Footer contact */
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.footer-phone .icon {
  color: var(--fresh-green);
}

.footer-phone:hover {
  color: var(--fresh-green);
}

@media (max-width: 950px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-info, .contact-form {
    padding: 32px 24px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

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

footer {
  background: var(--deep-green);
  color: white;
  padding: 55px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo-tagline {
  color: #B7C7CE;
}

.footer-legal {
  color: #8FA3AC;
  font-size: 12px;
}

/* --- Application flow ------------------------------------------------- */

.flowpage {
  min-height: calc(100vh - 82px);
  background:
    url("img/shape.svg") right -180px top -120px / 720px no-repeat,
    radial-gradient(circle at 12% 88%, rgba(0, 209, 194, .14), transparent 30%),
    var(--soft-white);
  padding: 45px 5vw 90px;
}

.flowhead {
  max-width: 780px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  font-size: 12px;
  font-weight: 600;
}

.flowhead form {
  margin: 0;
}

.flowhead-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.linkbtn.subtle {
  font-weight: 500;
  color: var(--muted);
}

.linkbtn.centered {
  display: block;
  margin: 16px auto 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.linkbtn:hover {
  text-decoration: underline;
}

.flowcard {
  position: relative;
  max-width: 780px;
  min-height: 570px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 55px;
  box-shadow: var(--shadow);
}

.flowcard h1, .flowcard h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.045em;
  margin: 25px 0 12px;
}

.flowcard p {
  line-height: 1.6;
}

.muted {
  color: var(--muted);
  font-weight: 300;
}

.error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 18px;
}

.dropzone {
  margin: 35px 0 20px;
  border: 1.5px dashed #9DCFC1;
  background: var(--surface-soft);
  border-radius: 24px;
  padding: 55px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.dropzone:hover, .dropzone.dragging {
  border-color: var(--clear-teal);
  background: #EAFBF6;
}

.dropzone.invalid {
  border-color: var(--coral);
  background: #FFF6F5;
}

.dropzone small {
  color: var(--muted);
}

/* The native file button is hidden; the whole dropzone is the click target. */
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone {
  position: relative;
}

.dropzone:focus-within {
  outline: 2px solid var(--clear-teal);
  outline-offset: 3px;
}

.dropzone-file:not(:empty) {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-text);
}

.flowtop {
  display: flex;
  justify-content: space-between;
}

.ok, .success {
  background: var(--brand-gradient);
  color: var(--deep-green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.ok {
  width: 38px;
  height: 38px;
}

.success {
  width: 68px;
  height: 68px;
  font-size: 28px;
  margin-bottom: 20px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 30px 0;
}

.summary div, .result {
  background: var(--surface-soft);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary small, .result small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.summary strong {
  font-weight: 600;
}

.result {
  margin: 30px 0;
}

.result strong {
  font-size: 22px;
  font-weight: 600;
}

.result span {
  color: var(--muted);
}

.legal {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}

.choicegrid {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}

.choicegrid button, .chip span {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.choicegrid button {
  display: flex;
  justify-content: space-between;
}

.choicegrid button:hover, .chip span:hover {
  border-color: var(--clear-teal);
  background: #F2FCFA;
}

.vat {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.vat.standalone {
  border-top: 0;
  padding-top: 0;
  margin-top: 30px;
}

.vat label, .fields label {
  font-size: 12px;
  font-weight: 600;
}

.vat div {
  display: flex;
  margin-top: 10px;
}

.vat input, .fields input, .fields select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

.vat input:focus, .fields input:focus, .fields select:focus {
  outline: 2px solid var(--clear-teal);
  outline-offset: 1px;
  border-color: transparent;
}

.vat input[aria-invalid="true"] {
  border-color: var(--coral);
}

.vat button {
  border: 0;
  background: var(--deep-green);
  color: white;
  padding: 0 20px;
  border-radius: 12px;
  margin-left: 8px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.company {
  display: flex;
  gap: 20px;
  background: var(--surface-soft);
  border-radius: 20px;
  padding: 25px;
  margin: 30px 0;
}

.company strong {
  font-weight: 600;
}

.companymark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 600;
}

.company p {
  color: var(--muted);
  line-height: 1.5;
}

.active {
  font-size: 12px;
  color: var(--green-text);
  font-weight: 600;
}

fieldset.chips {
  border: 0;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 13px 16px;
}

.chip input:checked + span {
  border-color: var(--deep-green);
  background: var(--deep-green);
  color: white;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--clear-teal);
  outline-offset: 2px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.fields small {
  color: var(--muted);
  font-weight: 400;
}

.fields input, .fields select {
  margin-top: 8px;
}

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

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1100px) {
  nav {
    display: none;
  }
}

@media (max-width: 850px) {

  .right {
    gap: 12px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 56px 6vw 0;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(38px, 10.5vw, 60px);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-visual {
    position: relative;
    width: auto;
    height: 340px;
    margin: 44px -6vw 0;
  }

  /* On small screens the curve sits on top of the photo instead of beside it. */
  .hero-curve {
    display: none;
  }

  .hero-visual::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 90px;
    background: linear-gradient(var(--soft-white), rgba(250, 251, 249, 0));
    z-index: 1;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .statement.has-photo {
    padding-right: 8vw;
  }

  .statement.has-photo::after {
    width: 55%;
    opacity: .35;
  }

  .people {
    grid-template-columns: 1fr;
  }

  .people-grid {
    justify-self: stretch;
    max-width: none;
  }

  .people-grid img {
    height: 110px;
  }

  .people-grid img.wide {
    height: 200px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 40px;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    background-size: 380px;
  }

  .banner-photo {
    width: 100%;
    height: 220px;
  }

  .flowcard {
    padding: 30px;
  }

  .flowcard h1, .flowcard h2 {
    font-size: 34px;
  }

  .summary, .fields {
    grid-template-columns: 1fr;
  }

  footer {
    gap: 25px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  header .smallbtn {
    display: none;
  }

  .langswitch-panel {
    right: -8px;
  }

  .logo-word {
    font-size: 24px;
  }
}

/* ---- Extended flow: offer check + contact step ------------------------------------ */

.fields .field { display: flex; flex-direction: column; gap: 7px; }
.fields .wide { grid-column: 1 / -1; }
.fields .field small { font-weight: 400; }
.fields .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--text); }
.fields .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fresh-green); flex: none; }
.fields textarea, .answer textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: white; resize: vertical;
}
.fields textarea:focus, .answer textarea:focus { outline: 2px solid var(--clear-teal); outline-offset: 1px; border-color: transparent; }

.reading { display: none; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.htmx-request .reading, .htmx-request.reading { display: flex; }
.htmx-request button.button { opacity: .6; pointer-events: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--mint-light); border-top-color: var(--fresh-green);
  animation: aveya-spin .8s linear infinite;
}
@keyframes aveya-spin { to { transform: rotate(360deg); } }

.notice {
  background: var(--mint-light); color: var(--deep-green); border-radius: 14px;
  padding: 14px 18px; font-size: 14px; font-weight: 500; margin: 0 0 18px;
}

/* ---- Customer portal ------------------------------------------------------------------ */

.navlink { font-size: 13px; font-weight: 600; margin-right: 6px; }
.navlink:hover { text-decoration: underline; }

.portal {
  max-width: 980px; margin: 0 auto; padding: 40px 5vw 90px;
  min-height: calc(100vh - 82px);
}
.portal.narrow { max-width: 640px; }
.portal h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.04em; margin: 12px 0 8px; }
.portal .muted { margin: 0 0 14px; line-height: 1.6; }
.backlink { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-block; margin-bottom: 10px; }
.backlink:hover { color: var(--ink); }

.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.phead form { margin: 0; }

.pcard {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: 0 10px 30px rgba(11, 32, 42, .05); margin-bottom: 14px;
}
.pcard.waiting { display: flex; align-items: center; gap: 12px; color: var(--text); background: var(--surface-soft); }
.pcard.todo { display: flex; flex-direction: column; gap: 12px; }
.pcard.todo > strong { font-weight: 600; }
.pcard.todo:has(> a.button) { flex-direction: row; justify-content: space-between; align-items: center; }

.psection { font-size: 20px; letter-spacing: -.02em; margin: 34px 0 12px; }
.psection-block { scroll-margin-top: 90px; }

.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; }
.prow:hover { border-color: var(--fresh-green); }
.prow strong { display: block; font-weight: 600; }
.prow small { color: var(--muted); font-size: 12px; }

.status {
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 11px;
  background: var(--surface-soft); color: var(--green-text); white-space: nowrap;
}
.status.s-declined, .status.s-withdrawn { background: #FDECEC; color: var(--danger); }
.status.s-delivered { background: var(--fresh-green); color: var(--deep-green); }

/* progress */
.ptimeline { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ptimeline li { position: relative; font-size: 11.5px; color: var(--muted); padding-top: 18px; line-height: 1.35; }
.ptimeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.ptimeline li.done::before, .ptimeline li.current::before { background: var(--brand-gradient); }
.ptimeline .dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: white; border: 2px solid var(--line); }
.ptimeline li.done .dot, .ptimeline li.current .dot { border-color: var(--fresh-green); background: var(--fresh-green); }
.ptimeline li.current { color: var(--ink); font-weight: 600; }
.ptimeline li.current .dot { box-shadow: 0 0 0 4px rgba(34, 211, 139, .25); }
.ptimeline small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.ptimeline .lbl { display: block; }

/* offers */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.offer {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(11, 32, 42, .05);
}
.offer.chosen { border: 2px solid var(--fresh-green); }
.offerhead strong { display: block; font-weight: 600; font-size: 16px; }
.offerhead small { color: var(--muted); font-size: 12px; }
.offer .amount { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.offer .amount small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.offer dl, .document dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.offer dl div, .document dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.offer dt, .document dt { color: var(--muted); }
.offer dd, .document dd { margin: 0; font-weight: 600; text-align: right; }
.offer .button { margin-top: auto; }
.chosen-tag { margin-top: auto; color: var(--green-text); font-weight: 600; font-size: 14px; }

/* to do */
.quote { background: var(--surface-soft); border-radius: 12px; padding: 12px 14px; margin: 0; font-size: 14px; line-height: 1.55; }
.uploadrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.uploadrow:first-of-type { border-top: 0; }
.uploadrow .doclabel { font-size: 14px; font-weight: 500; }
.uploadrow .doclabel small { display: block; color: var(--green-text); font-weight: 400; font-size: 12px; }
.uploadrow input[type=file] { font: inherit; font-size: 12px; max-width: 220px; }
.answer { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* messages */
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 80%; background: white; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 14px; }
.msg.mine { align-self: flex-end; background: var(--mint-light); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg small { color: var(--muted); font-size: 11.5px; }
.msg p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

.doclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* signing */
.document { background: var(--surface-soft); border-radius: 16px; padding: 20px; margin: 18px 0; }
.fingerprint { font-size: 11.5px; color: var(--muted); margin: 14px 0 0; word-break: break-all; }
.fingerprint code { font-size: 11px; }

@media (max-width: 760px) {
  .ptimeline { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
  .uploadrow { grid-template-columns: 1fr; }
  .phead { flex-direction: column; }
  .portal h1 { font-size: 28px; }
  .msg { max-width: 92%; }
  .navlink { display: none; }
}

/* ---- Application flow v2: commercial, big drop zone, big loader -------------------- */

.flow-title { font-size: 40px; line-height: 1.08; letter-spacing: -.045em; margin: 18px 0 12px; }
.flowcard h1.flow-title, .flowcard h2.flow-title { font-size: 40px; margin: 18px 0 12px; }
.flowcard h2.flow-title.small { font-size: 26px; }
.flow-sub { font-size: 16.5px; line-height: 1.6; color: var(--text); margin: 0 0 8px; max-width: 600px; }
.button.big { padding: 19px 30px; font-size: 16.5px; }

.flowcard-wrap { position: relative; max-width: 780px; margin: auto; }

/* drop zone */
.dropzone.big {
  margin: 28px 0 14px; padding: 60px 30px 52px; gap: 10px; border-width: 2px; border-radius: 28px;
  background: linear-gradient(180deg, #F6FCFA, #EEF9F5); text-align: center;
}
.dropzone.big:hover { border-color: var(--fresh-green); background: #EBF9F3; }
.drop-visual {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center;
  background: var(--brand-gradient); color: var(--deep-green); margin-bottom: 8px;
  box-shadow: 0 16px 36px rgba(34, 211, 139, .35); transition: transform .2s ease;
}
.drop-visual .icon { width: 38px; height: 38px; }
.dropzone.big:hover .drop-visual { transform: translateY(-4px); }
.drop-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.drop-or { color: var(--muted); font-size: 14.5px; }
.drop-or u { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.drop-release { display: none; font-size: 20px; font-weight: 600; color: var(--green-text); }
body.dragging-file .dropzone.big {
  border-color: var(--fresh-green); border-style: solid; background: #E3F8EF; transform: scale(1.015);
  box-shadow: 0 0 0 8px rgba(34, 211, 139, .15);
}
body.dragging-file .dropzone.big .drop-title, body.dragging-file .dropzone.big .drop-or,
body.dragging-file .dropzone.big small { display: none; }
body.dragging-file .dropzone.big .drop-release { display: block; }
body.dragging-file .drop-visual { transform: translateY(-6px) scale(1.06); }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--green-text); }

/* loader over the card */
.flowcard.is-loading { filter: blur(8px); opacity: .35; transition: filter .2s ease, opacity .2s ease; }
.flow-loader {
  position: absolute; inset: 0; z-index: 30; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; animation: loader-in .2s ease;
}
.flow-loader[hidden] { display: none; }
@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
.loader-inner { text-align: center; padding: 30px; max-width: 540px; }
.loader-mark { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; display: grid; place-items: center; }
.loader-mark svg { width: 70px; height: 63px; position: relative; z-index: 1; }
.loader-mark .ld-left { animation: ld-pulse 1.4s ease-in-out infinite; }
.loader-mark .ld-right { animation: ld-pulse 1.4s ease-in-out .35s infinite; }
@keyframes ld-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid var(--mint-light); border-top-color: var(--fresh-green); border-right-color: var(--clear-teal);
  animation: aveya-spin 1.1s linear infinite;
}
.loader-title { font-size: 28px; letter-spacing: -.035em; margin: 0 0 18px; }
.loader-stages { list-style: none; padding: 0; margin: 0 auto 16px; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; }
.loader-stages li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--muted); transition: color .3s ease; }
.loader-stages li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: white; transition: all .3s ease;
}
.loader-stages li.active { color: var(--ink); font-weight: 600; }
.loader-stages li.active::before { border-color: var(--fresh-green); border-top-color: transparent; animation: aveya-spin .8s linear infinite; }
.loader-stages li.done { color: var(--green-text); }
.loader-stages li.done::before {
  border-color: var(--fresh-green); background: var(--fresh-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B202A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.loader-wait { font-size: 13px; color: var(--muted); margin: 0; }

/* benefits under the card */
.benefits {
  list-style: none; padding: 0; max-width: 780px; margin: 22px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.benefits li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.benefits strong { display: block; font-size: 14px; font-weight: 600; }
.benefits span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.benefit-check { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-light); display: grid; place-items: center; flex: none; color: var(--green-text); }
.benefit-check .icon { width: 16px; height: 16px; }

/* the offer: car hero */
.car-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #F3FBF8, #E7F7F1); border: 1px solid var(--line);
  border-radius: 26px; padding: 28px; margin: 18px 0 24px;
}
.car-icon { width: 64px; height: 64px; border-radius: 20px; background: white; display: grid; place-items: center; color: var(--green-text); box-shadow: 0 8px 20px rgba(11, 32, 42, .06); }
.car-icon .icon { width: 32px; height: 32px; }
.car-name { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.car-from { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.car-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); }
.car-price { text-align: right; font-size: 34px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.car-price small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.regime { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.regime legend { font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.regime small { color: var(--muted); font-size: 12.5px; }
.regime-choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; background: white; }
.regime-choice:hover { border-color: var(--clear-teal); }
.regime-choice input { accent-color: var(--fresh-green); width: 18px; height: 18px; }
.regime-choice:has(input:checked) { border-color: var(--fresh-green); background: #F2FCF8; }
.secondary-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.secondary-actions form { margin: 0; }
.secondary-actions .linkbtn { font-weight: 500; color: var(--muted); }

/* identify */
.idp { display: grid; gap: 10px; margin-top: 6px; }
.idp-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; border-radius: 16px; padding: 15px 18px;
  font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; text-align: left; border: 1px solid var(--line);
  background: white; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.idp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 32, 42, .08); }
.idp-btn small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.idp-btn.itsme { background: #FF4612; color: white; border-color: #FF4612; font-family: "Roboto Slab", Georgia, serif; font-size: 17px; }
.idp-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--mint-light); color: var(--green-text); font-weight: 700; }
.idp-btn.itsme .idp-logo { background: transparent; }
.idp-btn.test { border-style: dashed; }
.idp-btn.test .idp-logo { background: var(--deep-green); color: var(--fresh-green); }
.why { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 4px 0 0; }
.fields .notice { margin: 0; }

/* applicant: VAT first, then the choice */
.vat .prefilled { display: block; margin-top: 8px; color: var(--green-text); font-size: 12.5px; font-weight: 500; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 28px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.choicegrid.rich { margin-top: 16px; }
.choicegrid.rich button { align-items: center; padding: 18px 20px; }
.choicegrid.rich strong { display: block; font-weight: 600; font-size: 16px; }
.choicegrid.rich small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; font-weight: 400; }
.reassure { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }

@media (max-width: 760px) {
  .flow-title, .flowcard h1.flow-title, .flowcard h2.flow-title { font-size: 30px; }
  .benefits { grid-template-columns: 1fr; }
  .car-hero { grid-template-columns: 1fr; text-align: left; }
  .car-price { text-align: left; }
  .dropzone.big { padding: 40px 20px; }
}

/* ---- Portal v2: welcome, where-are-we card, processing ---------------------------------- */
.welcome { display: flex; gap: 16px; align-items: flex-start; background: var(--deep-green); color: white; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.welcome strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.welcome p { margin: 6px 0 0; color: #C9DED8; font-size: 14px; line-height: 1.55; }
.welcome-check { width: 40px; height: 40px; border-radius: 50%; background: var(--fresh-green); color: var(--deep-green); display: grid; place-items: center; flex: none; }
.welcome-check .icon { width: 22px; height: 22px; }
.pcard.now { border-left: 4px solid var(--fresh-green); }
.pcard.now h2 { font-size: 22px; letter-spacing: -.03em; margin: 10px 0 6px; }
.pcard.now p { margin: 0 0 8px; line-height: 1.6; color: var(--text); }
.pcard.now .next { margin: 0; font-size: 14px; color: var(--muted); }
.pcard.now.processing { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; border-left: 0; padding: 30px; background: linear-gradient(135deg, #F6FCFA, #ECF8F3); }
.loader-mark.small { width: 104px; height: 104px; margin: 0; }
.loader-mark.small svg { width: 54px; height: 49px; }
.loader-stages.compact { margin: 6px 0 0; gap: 7px; }
.loader-stages.compact li { font-size: 14px; }
.loader-stages.compact li::before { width: 18px; height: 18px; }
details.ask { margin-top: 6px; }
details.ask summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; color: var(--green-text); }
details.ask summary::-webkit-details-marker { display: none; }
details.ask summary .icon { width: 18px; height: 18px; }
details.ask[open] summary { margin-bottom: 12px; }
.small-note { font-size: 12.5px; margin-top: 30px; }
@media (max-width: 760px) {
  .pcard.now.processing { grid-template-columns: 1fr; text-align: center; }
  .pcard.now.processing .loader-mark { margin: 0 auto; }
}

.of-next { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--surface-soft); font-size: 14px; color: var(--text); line-height: 1.5; }
.of-next .icon { width: 18px; height: 18px; color: var(--green-text); flex: none; margin-top: 2px; }

/* ---- Portal: 4 phases instead of 8 statuses ---------------------------------------------- */
.phases { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); }
.phase { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.phase::before { /* line to the previous phase */
  content: ""; position: absolute; top: 23px; right: 50%; width: 100%; height: 4px; border-radius: 4px;
  background: var(--line); z-index: 0;
}
.phase:first-child::before { display: none; }
.phase.done::before, .phase.current::before { background: var(--brand-gradient); }
.phase-dot {
  position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: white; border: 3px solid var(--line); color: var(--muted); font-weight: 600; font-size: 18px; margin-bottom: 6px;
}
.phase-dot .icon { width: 24px; height: 24px; }
.phase.done .phase-dot { background: var(--fresh-green); border-color: var(--fresh-green); color: var(--deep-green); }
.phase.current .phase-dot {
  background: var(--deep-green); border-color: var(--deep-green); color: var(--fresh-green);
  box-shadow: 0 0 0 7px rgba(34, 211, 139, .22);
}
.phase-label { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.phase.done .phase-label, .phase.current .phase-label { color: var(--ink); }
.phase-sub {
  font-size: 12.5px; font-weight: 600; color: var(--green-text); background: var(--mint-light);
  border-radius: 999px; padding: 4px 10px;
}
.phase small { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .phase-dot { width: 40px; height: 40px; font-size: 15px; }
  .phase::before { top: 18px; }
  .phase-label { font-size: 13.5px; }
  .phase-sub { font-size: 11px; padding: 3px 7px; }
}

/* ---- Legal pages + cookie banner --------------------------------------------------------- */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--fresh-green); }

.legalpage { max-width: 820px; margin: 0 auto; padding: 50px 5vw 90px; }
.legal-body { text-align: left; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 50px 56px; box-shadow: var(--shadow); }
.legal-body h1 { font-size: 40px; letter-spacing: -.045em; margin: 16px 0 6px; }
.legal-body .legal-date { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; }
.legal-body h2 { font-size: 20px; letter-spacing: -.02em; margin: 34px 0 10px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--text); }
.legal-body ul { padding-left: 22px; margin: 8px 0 14px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--green-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-body code { font-size: 13px; background: var(--surface-soft); border-radius: 6px; padding: 1px 6px; }
.fields .check a { color: var(--green-text); text-decoration: underline; }

.aveya-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 580px; margin: 0 auto;
  padding: 22px 24px; background: var(--deep-green); color: rgba(255, 255, 255, .9);
  border-radius: 20px; box-shadow: 0 18px 44px rgba(11, 32, 42, .3), 0 4px 10px rgba(11, 32, 42, .18);
  font-family: Sora, "Segoe UI", Arial, sans-serif; font-size: 13.5px; line-height: 1.6;
  transform: translateY(140%); opacity: 0; transition: transform 360ms cubic-bezier(.2, .8, .2, 1), opacity 240ms;
}
.aveya-cookie.show { transform: translateY(0); opacity: 1; }
.aveya-cookie h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: white; letter-spacing: -.01em; }
.aveya-cookie p { margin: 0 0 16px; }
.aveya-cookie a { color: var(--fresh-green); text-decoration: underline; text-underline-offset: 2px; }
.aveya-cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.aveya-cookie button {
  flex: 1; min-width: 140px; padding: 12px 18px; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: 13.5px; cursor: pointer; border: 1px solid transparent; transition: background 140ms, border-color 140ms;
}
.aveya-cookie .btn-accept { background: var(--brand-gradient); color: var(--deep-green); }
.aveya-cookie .btn-reject { background: transparent; color: white; border-color: rgba(255, 255, 255, .35); }
.aveya-cookie .btn-reject:hover { border-color: white; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) {
  .legal-body { padding: 30px 22px; }
  .legal-body h1 { font-size: 30px; }
}
@media (max-width: 520px) {
  .aveya-cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .aveya-cookie button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .aveya-cookie { transition: opacity 120ms; } }

/* ---- Portal: action hint + document drop rows ---------------------------------------- */
.now-action {
  display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px;
  background: #FFF7EA; border: 1px solid var(--sunrise); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.45;
}
.now-action:hover { background: #FFF1DA; }
.now-action-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sunrise); }
.now-action-icon svg { width: 16px; height: 16px; }
.now-action-arrow { margin-left: auto; font-size: 18px; font-weight: 700; animation: aveya-nudge 1.6s ease-in-out infinite; }
@keyframes aveya-nudge { 50% { transform: translateY(3px); } }

.docrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.docrow:first-of-type { border-top: 0; padding-top: 4px; }
.docinfo { display: flex; flex-direction: column; gap: 4px; }
.docrow .doclabel { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.doccheck { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fresh-green); color: white; flex: none; }
.doccheck svg { width: 12px; height: 12px; }
.docwhy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.docwhy b { color: var(--text); font-weight: 600; }
.docgot { color: var(--green-text); font-size: 12px; }
.dropzone.doc { margin: 0; padding: 14px 16px; border-radius: 16px; gap: 0; flex-direction: row; justify-content: center; text-align: left; min-height: 74px; }
.dropzone.doc .doc-idle { display: flex; align-items: center; gap: 12px; }
.dropzone.doc .doc-idle > svg { width: 22px; height: 22px; flex: none; color: var(--green-text); }
.dropzone.doc strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.dropzone.doc small { display: block; font-size: 12px; margin-top: 2px; }
.dropzone.doc .doc-release, .dropzone.doc .doc-busy { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--green-text); }
.dropzone.doc.dragging .doc-idle { display: none; }
.dropzone.doc.dragging .doc-release { display: flex; }
.docrow.busy .dropzone.doc { pointer-events: none; border-style: solid; border-color: var(--fresh-green); }
.docrow.busy .doc-idle, .docrow.busy .doc-release { display: none !important; }
.docrow.busy .doc-busy { display: flex; }
.docrow.has-files .dropzone.doc { background: white; min-height: 56px; }
@media (max-width: 640px) {
  .docrow { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- Portal: declined -------------------------------------------------------------- */
.pcard.declined { border: 1px solid #F3D9B5; background: linear-gradient(180deg, #FFF8EE, #FFFFFF 70%); padding: 28px; }
.declined-head { display: flex; gap: 16px; align-items: flex-start; }
.declined-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sunrise); color: var(--ink); }
.declined-icon svg { width: 24px; height: 24px; }
.pcard.declined .pill { background: #FDEBD3; }
.pcard.declined h2 { font-size: 26px; letter-spacing: -.03em; margin: 10px 0 0; line-height: 1.2; }
.declined-body { font-size: 16px; line-height: 1.65; color: var(--text); margin: 16px 0 18px; }
.declined-options { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.declined-options strong { display: block; font-size: 15px; margin-bottom: 8px; }
.declined-options ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.declined-close { font-size: 15px; font-weight: 500; color: var(--ink); margin: 18px 0 14px; }
.declined-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.declined-actions .button { display: inline-flex; align-items: center; gap: 8px; }
.declined-actions .button svg { width: 18px; height: 18px; }
.button.ghost { background: white; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.button.ghost:hover { border-color: var(--fresh-green); }
.declined-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .pcard.declined { padding: 20px; }
  .pcard.declined h2 { font-size: 22px; }
  .declined-actions .button { width: 100%; justify-content: center; }
}

/* Financier document (offer / contract / delivery note) as a sheet of paper. */
.docbar { display: flex; justify-content: flex-end; margin: 14px 0 10px; }
.paper { background: #fff; color: #1f2a29; border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 5vw, 44px);
  font-size: 13.5px; line-height: 1.6; max-height: 70vh; overflow-y: auto; }
.paper h1 { font-size: 22px; margin: 0 0 2px; } .paper h2 { font-size: 15px; margin: 22px 0 8px; color: #1F5F69; }
.paper h3 { font-size: 13.5px; margin: 14px 0 4px; } .paper p { margin: 0 0 9px; } .paper ul { padding-left: 20px; }
.paper table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.paper th, .paper td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid #e4e6e0; }
.paper th { font-weight: 400; color: #556260; width: 45%; } .paper table.parties td { border: none; padding: 0; }
.paper .right { display: revert; gap: 0; text-align: right; } .paper .muted { color: #6b7774; } .paper .small { font-size: 12px; }
.paper .box { background: #edf3f2; border: 1px solid #c9dcdb; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.sigbar { display: flex; justify-content: space-between; align-items: center; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.sigpad { position: relative; height: 170px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; }
.sigpad.missing { border-color: #c73e3a; }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sigpad span { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3a1; font-size: 13px; pointer-events: none; }
.sigpad i { position: absolute; left: 20px; right: 20px; bottom: 36px; border-bottom: 1px solid #d3d7d0; pointer-events: none; }
p.small { font-size: 12px; }

/* ---- Listing link, seller confirmation (B2B), dealers --------------------------------- */

.or-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.linkform { display: flex; flex-direction: column; gap: 8px; }
.linkform > label { font-size: 13px; font-weight: 600; }
.linkform > small { color: var(--muted); font-size: 12.5px; }
.linkform-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: white;
}
.linkform-row:focus-within { outline: 2px solid var(--clear-teal); outline-offset: 1px; border-color: transparent; }
.linkform-row.invalid { border-color: var(--coral); background: #FFF8F7; }
.linkform-icon { color: var(--muted); font-size: 18px; flex: none; }
.linkform-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); padding: 10px 0; }
.linkform-row .button { padding: 12px 18px; border-radius: 12px; font-size: 14px; white-space: nowrap; }

.flow-sub.tight { margin-bottom: 14px; }
.car-source { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--green-text); }
.car-source:hover { text-decoration: underline; }

.seller-box { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 12px; background: var(--surface-soft); }
.seller-box legend { font-size: 13px; font-weight: 700; padding: 0 6px; margin-left: -6px; }
.seller-read { margin: 0; font-size: 14px; color: var(--text); }
.seller-b2b { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.seller-b2b .icon { flex: none; margin-top: 2px; color: var(--green-text); }
.seller-box input[aria-invalid="true"] { border-color: var(--coral); background: #FFF8F7; }
.seller-fixed { display: flex; align-items: center; gap: 14px; }
.seller-fixed div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.seller-fixed small { color: var(--muted); font-size: 12.5px; }
.seller-icon, .dealer-strip-icon, .dl-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--mint-light); color: var(--deep-green); font-size: 19px;
}
.seller-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-gradient); color: var(--deep-green); display: grid; place-items: center; font-size: 14px; }
.fields .confirm-check { font-size: 14px; font-weight: 600; color: var(--ink); padding: 4px 2px; }

.dealer-strip {
  max-width: 780px; margin: 0 auto 14px; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 16px; background: var(--deep-green); color: #D7E4E9; font-size: 13.5px;
}
.dealer-strip b { color: white; }
.dealer-strip span:nth-child(2) { flex: 1; }
.dealer-strip .dealer-strip-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; background: rgba(34, 211, 139, .18); color: var(--fresh-green); }
.dealer-strip form { margin: 0; }
.dealer-strip .linkbtn { color: #D7E4E9; }

.button.secondary { background: white; color: var(--deep-green); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--clear-teal); }

/* Sellers page */
.dealerpage { background: radial-gradient(circle at 85% 0%, rgba(34, 211, 139, .12), transparent 40%), var(--soft-white); }
.dl-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; align-items: start; padding: 80px 8vw 70px; }
.dl-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; margin: 14px 0 16px; }
.dl-hero-copy > p { font-size: 18px; font-weight: 300; line-height: 1.65; color: var(--text); max-width: 560px; margin: 0; }
.dl-benefits, .sellers-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.dl-benefits li, .sellers-points li { display: flex; gap: 14px; align-items: flex-start; }
.dl-benefits strong, .sellers-points strong { display: block; font-weight: 600; }
.dl-benefits span:not(.benefit-check), .sellers-points span:not(.benefit-check) { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dl-access { display: grid; gap: 14px; }
.dl-card {
  background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.dl-card h2 { font-size: 21px; margin: 4px 0 0; letter-spacing: -.02em; }
.dl-card p { margin: 0; }
.dl-card .field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; }
.dl-card input {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--soft-white);
}
.dl-card input[name="code"] { font-size: 18px; font-weight: 600; }
.dl-card input:focus { outline: 2px solid var(--clear-teal); outline-offset: 1px; border-color: transparent; background: white; }
.dl-card input[aria-invalid="true"] { border-color: var(--coral); background: #FFF8F7; }
.dl-card .error, .dl-card .notice { margin: 0; }
.dl-signed-in .linkbtn { margin-top: 4px; }

.dl-request { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: start; padding-top: 30px; }
.dl-request h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.04em; margin: 12px 0 14px; }
.dl-request-copy p { color: var(--text); font-weight: 300; line-height: 1.7; }
.dl-request-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 36px; box-shadow: var(--shadow); }
.dl-request-card .fields { margin: 0; }
.choice-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row legend { width: 100%; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: white; }
.pick input:checked + span { background: var(--deep-green); border-color: var(--deep-green); color: white; }
.pick input:focus-visible + span { outline: 2px solid var(--clear-teal); outline-offset: 2px; }

/* Homepage: for sellers */
.sellers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 6vw; align-items: start;
  margin: 0 4vw 70px; padding: 64px 4vw; border-radius: 34px; background: var(--deep-green); color: white;
}
.sellers .kicker { color: var(--fresh-green); }
.sellers h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.045em; margin: 12px 0 14px; }
.sellers-copy p { color: #B7C7CE; font-weight: 300; line-height: 1.7; max-width: 520px; margin: 0; }
.sellers-points { margin: 0; }
.sellers-points span:not(.benefit-check) { color: #B7C7CE; }
.sellers .benefit-check { background: rgba(34, 211, 139, .16); color: var(--fresh-green); }
.sellers-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.sellers .button.secondary { background: transparent; color: white; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }

@media (max-width: 900px) {
  .dl-hero, .dl-request, .sellers { grid-template-columns: 1fr; }
  .dl-hero { padding: 50px 6vw; }
  .dl-request-card { padding: 26px 20px; }
  .sellers { padding: 44px 6vw; margin: 0 3vw 50px; }
}
@media (max-width: 560px) {
  .linkform-row { flex-wrap: wrap; padding: 8px; }
  .linkform-row input { flex-basis: calc(100% - 40px); }
  .linkform-row .button { width: 100%; }
}
/* ---- Human check before reading a document or link ------------------------------------ */

.humancheck { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 6px; }
.humancheck small { color: var(--muted); font-size: 12.5px; flex: 1 1 220px; }
.human-box {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  border: 1.5px solid var(--line); border-radius: 14px; background: white; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.human-box:hover { border-color: var(--clear-teal); }
.human-box:focus-visible { outline: 2px solid var(--clear-teal); outline-offset: 2px; }
.human-tick {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--slate);
  display: grid; place-items: center; color: transparent; font-size: 15px; flex: none;
}
.humancheck.busy .human-tick { border-color: var(--mint-light); border-top-color: var(--fresh-green); border-radius: 50%; animation: aveya-spin .8s linear infinite; }
.humancheck.busy .human-box { cursor: progress; }
.humancheck.done .human-tick { border: 0; background: var(--brand-gradient); color: var(--deep-green); }
.humancheck.done .human-box { border-color: var(--fresh-green); background: #F2FCF8; cursor: default; }
.humancheck.failed .human-box { border-color: var(--coral); }

.upload-gate { transition: opacity .25s ease, filter .25s ease; }
.upload-gate.is-locked { opacity: .42; filter: grayscale(.4); pointer-events: none; user-select: none; }
/* VAT number checked while typing (vat-check.js) */
.vat-live { display: block; margin-top: 6px; color: var(--coral); font-size: 13px; line-height: 1.4; }

/* ---- Sellers page: forgot code ----------------------------------------------------------- */
.dl-card-form { display: flex; flex-direction: column; gap: 12px; }
.dl-forgot { border-top: 1px solid var(--line); padding-top: 12px; }
.dl-forgot summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green-text); list-style: none; }
.dl-forgot summary::-webkit-details-marker { display: none; }
.dl-forgot summary:hover { text-decoration: underline; }
.dl-forgot[open] summary { margin-bottom: 12px; }
.dl-new-code {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px;
  background: var(--mint-light); border: 1.5px dashed var(--fresh-green);
}
.dl-new-code small { font-size: 12px; font-weight: 600; color: var(--green-text); }
.dl-new-code strong { font-size: 26px; font-weight: 700; color: var(--deep-green); user-select: all; }
.dl-new-code span { font-size: 12.5px; color: var(--text); line-height: 1.5; }
/* --- the address on the file (flow step and portal) ----------------------- */
.address-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px 12px; }
.address-fields .wide { grid-column: span 4; }
.address-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.addresssearch, #address-search-wrap { position: relative; }
.addresshits, #address-hits { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 0;
  list-style: none; background: #fff; border: 1px solid #d9e2e0; border-radius: 10px; box-shadow: 0 12px 32px rgba(10, 30, 28, .12);
  max-height: 260px; overflow-y: auto; }
.addresshits li button, #address-hits li button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0;
  background: none; font: inherit; cursor: pointer; border-bottom: 1px solid #eef2f1; }
.addresshits li:last-child button, #address-hits li:last-child button { border-bottom: 0; }
.addresshits li button:hover, #address-hits li button:hover { background: #f1faf7; }
.addresslist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.addresslist li { border: 1px solid #e4ebe9; border-radius: 12px; padding: 12px 14px; }
.addressline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.addressline small { color: #5d6f6b; }
.addressline .tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #e6f8f1; color: #11705a; }
.addressactions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.addressactions details { flex: 1 1 100%; }
.addressactions summary, .addressadd summary { cursor: pointer; list-style: none; display: inline-block; }
.addressform { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.addressform .check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
@media (max-width: 560px) { .address-fields { grid-template-columns: 1fr 1fr; } .address-fields .wide { grid-column: span 2; } }

/* Addresses: room before the next block, and the note once they are locked. */
#addresses { margin-bottom: 40px; }
.addresslock { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px;
  border-radius: 10px; background: #f1f5f4; color: var(--muted); font-size: 14px; }
.addresslock .icon { width: 16px; height: 16px; flex: none; }
.addresslock span { flex: 1; }

/* The accepted offer: one card across the width, not a choice among others. */
.accepted { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto; gap: 18px 32px;
  align-items: center; background: #fff; border: 2px solid var(--fresh-green); border-radius: 18px; padding: 20px 24px; }
.accepted .amount { font-size: 32px; font-weight: 600; letter-spacing: -.04em; margin-top: 6px; }
.accepted .amount small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.accepted-terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.accepted-terms div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.accepted-terms dt { color: var(--muted); }
.accepted-terms dd { margin: 0; font-weight: 600; }
.accepted-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.accepted-pdf { font-size: 14px; color: var(--green-text); white-space: nowrap; }
@media (max-width: 760px) {
  .accepted { grid-template-columns: 1fr; padding: 18px; }
  .accepted-side { align-items: flex-start; text-align: left; }
}

/* Test phase: one line above every page until Aveya runs in production. */
.testnotice { background: var(--deep-green); color: #fff; text-align: center; font-size: 13.5px; line-height: 1.45;
  padding: 9px 16px; }
