/* 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;
  }
}
