/*
 * vabita.si — the landing page (Website 00.03.01).
 *
 * The colours and type are the tokens of the app's design system
 * (constants/theme.ts, Specs_00.03.00 section 8): headings Cormorant Garamond
 * SemiBold, everything else DM Sans. Both families are self-hosted so the page
 * calls no third party.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CormorantGaramond_600SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CormorantGaramond_600SemiBold_Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/DMSans_400Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/DMSans_500Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/DMSans_600SemiBold.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --ozadje: #f7f3ea;
  --ozadje-toplo: #f3eee3;
  --besedilo-primarno: #182020;
  --besedilo-sekundarno: #66706c;
  --rob: #d8d4ca;
  --zelena-primarna: #5a7c59;
  --zelena-cta: #537252;
  --zelena-mehka: #e9eee5;
  --zelena-list: #dde6d9;
  --peach: #f3d7c8;
  --peach-mehka: #f6e6db;
  --pas-kartica: #f6eee6;
  --bela: #ffffff;
  --onemogoceno: #d7d5cf;
  --napaka: #a45b55;

  --pisava-naslov: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --pisava-telo: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sirina: 1120px;
  --odmik: clamp(20px, 5vw, 48px);
  --radij-gumb: 999px;
  --radij-kartica: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ozadje);
  color: var(--besedilo-primarno);
  font-family: var(--pisava-telo);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--pisava-naslov);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--sirina);
  margin: 0 auto;
  padding-inline: var(--odmik);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--zelena-cta);
  color: var(--bela);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radij-gumb);
  font-family: var(--pisava-telo);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}
.button:focus-visible {
  outline: 3px solid var(--zelena-list);
  outline-offset: 2px;
}
.button--primary {
  background: var(--zelena-cta);
  color: var(--bela);
}
.button--primary:hover {
  background: var(--zelena-primarna);
}
.button--primary:active {
  transform: translateY(1px);
}
.button--small {
  padding: 12px 26px;
  font-size: 17px;
}
.button--large {
  padding: 18px 34px;
  font-size: 20px;
}

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

.site-header {
  padding-block: 20px;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  height: 52px;
  width: auto;
}
.brand--small img {
  height: 34px;
  width: auto;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding-block: clamp(24px, 6vw, 72px) clamp(40px, 7vw, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.hero__title {
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.08;
}
.hero__lead {
  margin-top: 24px;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--besedilo-sekundarno);
  max-width: 34rem;
}
.hero__copy .button {
  margin-top: 36px;
}
.hero__note {
  margin-top: 22px;
  color: var(--besedilo-sekundarno);
  font-size: 17px;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.blob--peach {
  width: 62%;
  padding-top: 62%;
  left: 2%;
  top: 6%;
  background: var(--peach-mehka);
}
.blob--green {
  width: 58%;
  padding-top: 58%;
  right: 0;
  bottom: 4%;
  background: var(--zelena-mehka);
}

/* The phone --------------------------------------------------------------- */

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 30px 40px rgba(24, 32, 32, 0.22));
}
.phone__frame {
  position: relative;
  background: #1b1d1e;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px #3a3d3e,
    inset 0 0 0 4px #121314;
}
.phone__island {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  background: #0b0c0c;
  border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  position: relative;
  background: var(--bela);
  border-radius: 36px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  color: var(--besedilo-primarno);
}
.screen__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 0;
  font-weight: 600;
  font-size: 12px;
}
.screen__signal {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.screen__nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.screen__nav .icon {
  width: 20px;
  height: 20px;
}
.icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.screen__illustration {
  margin: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.screen__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen__body {
  padding: 12px 14px 0;
}
.screen__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
}
.badge--peach {
  background: var(--peach);
  color: var(--besedilo-primarno);
}
.badge--green {
  background: var(--zelena-mehka);
  color: var(--zelena-cta);
}
.screen__title {
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.screen__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  color: var(--besedilo-sekundarno);
}
.screen__meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.screen__text {
  margin-top: 10px;
  color: var(--besedilo-sekundarno);
  font-size: 10.5px;
}
.screen__label {
  margin-top: 12px;
  font-size: 10px;
  color: var(--besedilo-sekundarno);
}
.screen__organizer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.screen__name {
  font-weight: 600;
  font-size: 11.5px;
}
.screen__sub {
  font-size: 9.5px;
  color: var(--besedilo-sekundarno);
}
.screen__participants {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.screen__avatars {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--zelena-mehka);
  border: 2px solid var(--bela);
  margin-left: -6px;
}
.avatar:first-child {
  margin-left: 0;
}
.avatar--medium {
  width: 34px;
  height: 34px;
  margin-left: 0;
  border: 0;
}
.avatar--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--zelena-cta);
}
.screen__actions {
  display: flex;
  gap: 8px;
  padding: 14px 12px 18px;
}
.screen__button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.screen__button--outline {
  border: 1px solid var(--rob);
  color: var(--besedilo-primarno);
}
.screen__button--filled {
  background: var(--zelena-cta);
  color: var(--bela);
}

/* Steps ------------------------------------------------------------------ */

.section-title {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.12;
  text-align: center;
}

.steps {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
}
.steps__list {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step {
  text-align: center;
  padding: 8px clamp(16px, 3vw, 40px);
  border-left: 1px solid var(--rob);
}
.step:first-child {
  border-left: 0;
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-family: var(--pisava-naslov);
  font-size: 36px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--besedilo-primarno);
}
.step__number--green {
  background: var(--zelena-mehka);
}
.step__number--peach {
  background: var(--peach-mehka);
}
.step__title {
  margin-top: 22px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
}
.step__text {
  margin-top: 12px;
  color: var(--besedilo-sekundarno);
  font-size: 18px;
  max-width: 22rem;
  margin-inline: auto;
}
.steps__tagline {
  margin-top: clamp(28px, 4vw, 48px);
  text-align: center;
  font-family: var(--pisava-naslov);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--zelena-primarna);
}

/* More than gatherings ---------------------------------------------------- */

.more {
  background: var(--ozadje-toplo);
  padding-block: clamp(40px, 6vw, 72px);
}
.more__inner {
  text-align: center;
}
.more__text {
  margin-top: 22px;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--besedilo-sekundarno);
}
.more__text strong {
  color: var(--besedilo-primarno);
  font-weight: 600;
}

/* Sign-up ----------------------------------------------------------------- */

.signup {
  background: var(--ozadje-toplo);
  padding-block: 0 clamp(40px, 6vw, 72px);
}
.signup__card {
  background: var(--peach-mehka);
  border-radius: var(--radij-kartica);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.signup__lead {
  margin-top: 16px;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--besedilo-sekundarno);
}
.signup__form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 28px auto 0;
}
.signup__input {
  flex: 1;
  min-width: 0;
  height: 60px;
  min-height: 60px;
  padding: 0 24px;
  border: 1px solid var(--rob);
  border-radius: var(--radij-gumb);
  background: var(--bela);
  font: inherit;
  font-size: 18px;
  color: var(--besedilo-primarno);
}
.signup__input::placeholder {
  color: var(--besedilo-sekundarno);
}
.signup__input:focus {
  outline: 3px solid var(--zelena-list);
  border-color: var(--zelena-primarna);
}
.signup__input[aria-invalid='true'] {
  border-color: var(--napaka);
}
.signup__button {
  height: 60px;
  padding-inline: 34px;
  font-size: 19px;
}
.signup__button[disabled] {
  background: var(--onemogoceno);
  cursor: default;
}
.signup__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup__status {
  min-height: 1.5em;
  margin-top: 14px;
  font-weight: 500;
  color: var(--zelena-cta);
}
.signup__status.is-error {
  color: var(--napaka);
}
.signup__note {
  margin-top: 8px;
  font-size: 15px;
  color: var(--besedilo-sekundarno);
}
.signup__note a {
  color: var(--zelena-cta);
}
.signup.is-done .signup__form {
  display: none;
}

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

.site-footer {
  border-top: 1px solid var(--rob);
  padding-block: 28px;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer__links {
  display: flex;
  gap: 28px;
  font-size: 16px;
}
.site-footer__links a {
  text-decoration: none;
  color: var(--besedilo-primarno);
}
.site-footer__links a:hover {
  text-decoration: underline;
}

/* Privacy page ------------------------------------------------------------ */

.page {
  padding-block: clamp(24px, 5vw, 56px) clamp(48px, 7vw, 96px);
}
.page__inner {
  max-width: 720px;
}
.page h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.1;
}
.page h2 {
  font-size: 28px;
  margin-top: 40px;
}
.page p,
.page li {
  margin-top: 14px;
  color: var(--besedilo-sekundarno);
  font-size: 17px;
}
.page ul {
  padding-left: 22px;
  margin: 0;
}
.page a {
  color: var(--zelena-cta);
}
.page .meta {
  margin-top: 12px;
  font-size: 15px;
}

/* Desktop ----------------------------------------------------------------- */

/*
 * From 960 px the page follows the project owner's desktop design (1280 × 960):
 * everything up to the footer fits one screen, and "Več kot samo druženja" and
 * the form share one card. Nothing here applies below 960 px.
 */
@media (min-width: 960px) {
  .site-header {
    padding-block: 16px;
  }
  .brand__logo {
    height: 40px;
  }

  .hero {
    padding-block: 8px 40px;
    overflow-x: clip;
    overflow-y: visible;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .hero__title {
    font-size: clamp(44px, 4.6vw, 58px);
    line-height: 1.05;
  }
  .hero__lead {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.45;
  }
  .hero__copy .button {
    margin-top: 28px;
    padding: 16px 32px;
    font-size: 19px;
  }
  .hero__note {
    margin-top: 16px;
    font-size: 16px;
  }
  /* As in the design, the phone reaches up beside the logo and down beside the steps' title. */
  .hero__visual {
    min-height: 440px;
    margin-block: -64px -60px;
  }
  .phone {
    width: 230px;
    transform: none;
    filter: drop-shadow(0 16px 28px rgba(24, 32, 32, 0.14));
  }
  .phone__frame {
    padding: 6px;
    border-radius: 36px;
    box-shadow: inset 0 0 0 1.5px #3a3d3e;
  }
  .phone__island {
    top: 13px;
    width: 64px;
    height: 18px;
  }
  .phone__screen {
    border-radius: 30px;
  }
  /* The screen is laid out for the 300 px phone and scaled to the narrower one. */
  .phone__screen > * {
    zoom: 0.79;
  }
  .screen__nav {
    padding: 10px 16px 4px;
  }
  .screen__illustration {
    aspect-ratio: 2 / 1;
  }
  .screen__actions {
    padding: 10px 12px 12px;
  }

  .steps {
    padding-block: 24px 16px;
  }
  .steps .section-title {
    font-size: 40px;
    line-height: 1;
  }
  .steps__list {
    margin-top: 8px;
  }
  .step {
    padding-block: 0;
  }
  .step__number {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }
  .step__title {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1;
  }
  .step__text {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.3;
    max-width: 230px;
  }
  .steps__tagline {
    margin-top: 20px;
    font-size: 22px;
    line-height: 1.2;
  }

  /* One card for both blocks, as wide as the page and aligned inside to the container. */
  .band {
    padding-inline: 32px;
    margin-bottom: 4px;
  }
  .band__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 40px;
    padding-block: 14px;
    padding-inline: max(calc(var(--odmik) - 32px), calc((100% - var(--sirina)) / 2 + var(--odmik)));
    background: var(--pas-kartica);
    border-radius: 20px;
  }
  .band .more,
  .band .signup {
    background: none;
    padding-block: 0;
  }
  .band .container {
    max-width: none;
    padding-inline: 0;
  }
  .more__inner {
    text-align: left;
  }
  .more .section-title {
    font-size: 36px;
    line-height: 1.05;
    text-align: left;
  }
  .more__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
  }
  .signup {
    padding-left: 40px;
    border-left: 1px solid var(--rob);
  }
  .signup__card {
    padding: 0;
    background: none;
    border-radius: 0;
    text-align: left;
  }
  .signup .signup__title {
    font-size: 28px;
    line-height: 1;
    text-align: left;
  }
  .signup__lead {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.4;
  }
  .signup__form {
    max-width: none;
    margin: 8px 0 0;
    flex-wrap: wrap;
  }
  .signup__input {
    height: 44px;
    min-height: 44px;
    min-width: 220px;
    padding: 0 20px;
    font-size: 16px;
  }
  .signup__button {
    height: 44px;
    padding-inline: 32px;
    font-size: 17px;
  }
  .signup__status {
    min-height: 0;
    margin-top: 6px;
  }
  .signup__status:empty {
    display: none;
  }
  .signup__note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  .site-footer {
    padding-block: 20px;
  }
  .brand--small img {
    height: 28px;
  }
  .site-footer__links {
    font-size: 15px;
  }
}

/* At the width of the design the circles are the sizes the design gives them. */
@media (min-width: 1120px) {
  .blob--peach {
    width: 420px;
    height: 420px;
    padding-top: 0;
    left: calc(50% - 250px);
    top: -40px;
  }
  .blob--green {
    width: 340px;
    height: 340px;
    padding-top: 0;
    right: -60px;
    bottom: -10px;
  }
}

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

@media (max-width: 959.98px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__title,
  .hero__lead {
    margin-inline: auto;
  }
  .hero__break {
    display: none;
  }
  .hero__visual {
    min-height: 620px;
    max-width: 520px;
    margin-inline: auto;
  }
  .steps__list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step {
    border-left: 0;
    padding-inline: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .site-header__row {
    justify-content: center;
  }
  .site-header .button {
    display: none;
  }
  .brand__logo {
    height: 44px;
  }
  .hero__copy .button {
    width: 100%;
    white-space: normal;
    font-size: 18px;
  }
  .hero__visual {
    min-height: 600px;
  }
  .phone {
    width: 270px;
  }
  .signup__form {
    flex-direction: column;
  }
  /* In a column the field must not shrink: its basis is 0, its height is not. */
  .signup__input {
    flex: 0 0 auto;
  }
  .signup__button {
    width: 100%;
  }
  .site-footer__row {
    flex-direction: column;
    gap: 20px;
  }
}

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