/* CertiQuick website. Colours sampled from the brand slides and the logo. Mobile first. */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Sora-SemiBold-Latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-Regular-Latin1.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-SemiBold-Latin1.woff2') format('woff2');
}

:root {
  --logo-green: #1ab155;
  --logo-blue: #00adee;
  --petrol: #005d83;
  --petrol-dark: #004a69;
  --blue-text: #1a6f8e;
  --green-text: #157f4b;
  --ink: #1e292f;
  --body: #22312e;
  --muted: #5d605f;
  --mint: #ebf8ef;
  --mint-strong: #e1f3e7;
  --off-white: #fafbf6;
  --white: #ffffff;
  --line: #d5e3da;
  --radius: 14px;
  --heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --text: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 4rem);
  color: var(--petrol);
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
  color: var(--blue-text);
}

p {
  margin: 0;
}

a {
  color: var(--petrol);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

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

.skip-link:focus {
  top: 8px;
}

/* Header */

.site-header {
  background: var(--mint);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  margin-right: auto;
  display: block;
}

.language-switch {
  display: flex;
  gap: 4px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--petrol);
}

.language-switch a[aria-current='page'] {
  background: var(--white);
  color: var(--ink);
}

.site-header .header-app {
  display: none;
}

@media (min-width: 720px) {
  .site-header .header-app {
    display: inline-flex;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid var(--petrol);
  background: var(--petrol);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--petrol-dark);
  border-color: var(--petrol-dark);
}

.button-secondary {
  background: transparent;
  color: var(--petrol);
}

.button-secondary:hover {
  background: var(--white);
  color: var(--petrol-dark);
}

.button-small {
  min-height: 44px;
  padding: 8px 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 479px) {
  .actions .button {
    flex: 1 1 100%;
  }
}

/* Hero */

.hero {
  background: var(--mint);
  padding: 32px 0 56px;
}

.hero h1 {
  max-width: 14ch;
}

.lead {
  margin-top: 20px;
  max-width: 38ch;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  color: var(--ink);
}

.hero .actions {
  margin-top: 32px;
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 96px;
  }
}

/* Problem */

.problem,
.model,
.features,
.offer,
.team,
.contact {
  padding: 56px 0;
}

@media (min-width: 900px) {
  .problem,
  .model,
  .features,
  .offer,
  .team,
  .contact {
    padding: 88px 0;
  }
}

.problem h2 {
  max-width: 22ch;
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step h3::before {
  content: counter(step) '. ';
}

.step-1 h3 {
  color: var(--green-text);
}

.step-3 h3 {
  color: var(--blue-text);
}

.step p {
  margin-top: 10px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.conclusion {
  margin-top: 28px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue-text);
}

/* The house in 3D (house3d.js): the SVG until the canvas is ready, in the same box, so nothing moves. */

/* After the features (mint), before the offer (same background): the offer's top padding separates them. */
.model {
  padding-bottom: 0;
}

.model-text {
  margin-top: 10px;
  font-size: 1.1rem;
}

.house-viewer {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 1;
  max-height: 78vh;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 760px) {
  .house-viewer {
    aspect-ratio: 16 / 9;
  }
}

.house-fallback,
.house-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.house-fallback {
  object-fit: contain;
  padding: 24px;
  transition: opacity 0.3s;
}

.house-viewer-ready .house-fallback {
  opacity: 0;
  pointer-events: none;
}

/* A vertical swipe scrolls the page; a horizontal drag, a hold or two fingers move the house. */
.house-canvas {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.house-canvas:active {
  cursor: grabbing;
}

.house-canvas:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: -3px;
}

.house-hint,
.house-reset {
  position: absolute;
  bottom: 12px;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 6px 14px;
}

.house-hint {
  left: 12px;
  background: var(--mint);
  color: var(--petrol);
  pointer-events: none;
  transition: opacity 0.3s;
}

.house-hint-done {
  opacity: 0;
}

.house-reset {
  right: 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--white);
  color: var(--petrol);
  border: 1px solid var(--line);
  cursor: pointer;
}

.house-reset:hover {
  border-color: var(--petrol);
}

.house-reset:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: 2px;
}

.house-hint[hidden],
.house-reset[hidden] {
  display: none;
}

/* Features */

.features {
  background: var(--mint);
}

.feature-group {
  margin-top: 40px;
}

.feature-group > h3 {
  color: var(--petrol);
}

.feature-pair {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

@media (min-width: 760px) {
  .feature-pair {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.feature h4 {
  margin-top: 16px;
}

/* A group with one visual: the visual beside its text, so the grid keeps two columns. */
@media (min-width: 760px) {
  .feature-single .feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto 1fr;
    column-gap: 32px;
  }

  .feature-single .screenshot {
    grid-row: 1 / span 3;
  }

  .feature-single h4 {
    grid-column: 2;
    align-self: end;
    margin-top: 0;
  }

  .feature-single p {
    grid-column: 2;
  }
}

/* As in the slides: left title blue, right title green. */
.feature:nth-child(2) h4 {
  color: var(--green-text);
}

.feature p {
  margin-top: 6px;
}

.screenshot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* App visuals at their own size or smaller, never stretched. */
.screenshot img {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Screenshots of the app (not the SVG 3D view): a thin frame. */
.screenshot img[srcset] {
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

@media (min-width: 760px) {
  .screenshot {
    aspect-ratio: 4 / 3;
  }

  .screenshot img {
    max-height: 100%;
  }
}

.outcome {
  margin-top: 48px;
  background: var(--petrol);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.outcome h3 {
  color: var(--white);
}

.outcome p {
  margin-top: 10px;
  max-width: 60ch;
}

/* Offer */

.offer-grid {
  display: grid;
  gap: 24px;
}

.offer h2 {
  max-width: 24ch;
}

.offer-audience {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.35;
  color: var(--green-text);
}

.offer-plan {
  font-size: 1.15rem;
  color: var(--ink);
}

.pricing {
  margin-top: 20px;
  display: inline-block;
  background: var(--mint-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
}

@media (min-width: 760px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .offer h2 {
    grid-column: 1 / -1;
  }
}

/* Team */

.team {
  background: var(--white);
}

.team-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.team-list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1);
}

.team-list span {
  display: block;
  margin-top: 12px;
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 760px) {
  .team-list {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
  }
}

/* Contact */

.contact {
  background: var(--mint);
}

.contact p {
  margin-top: 12px;
  font-size: 1.15rem;
}

.contact p a {
  font-weight: 600;
  user-select: all;
}

.contact .actions {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #dfe7e3;
  padding: 40px 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-languages {
  margin-top: 12px;
}

.site-footer .language-switch a {
  color: var(--white);
}

.site-footer .language-switch a[aria-current='page'] {
  background: #33434b;
  color: var(--white);
}

.disclaimer {
  margin-top: 20px;
  max-width: 70ch;
  color: #c3cfca;
}

.copyright {
  margin-top: 12px;
  color: #c3cfca;
}

/* 404 page */

.not-found h1 {
  margin-top: 32px;
}

.not-found .actions {
  margin-top: 32px;
}
