/* Tenvik website: home page and sign-up (join/). The app's own look:
   Poppins, white (dark: #010A08), soft pink #F7B2D8 for about a third of
   the surface, and the accent #F60588 for actions. */

:root {
  --bg: #ffffff;
  --bg-soft: #fff5fa;
  --surface: #ffffff;
  --surface-2: #fdeef6;
  --pink: #f7b2d8;
  --pink-soft: #fbd6ea;
  --accent: #f60588;
  --accent-text: #c4046c;
  --on-accent: #ffffff;
  --text: #010a08;
  --muted: #5a5560;
  --line: #f1dce8;
  --danger: #c62828;
  --success: #1b7f4d;
  --shadow: 0 30px 60px -30px rgba(120, 10, 70, 0.35);
  --radius: 22px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #010a08;
    --bg-soft: #0b1311;
    --surface: #0d1513;
    --surface-2: #1a1218;
    --pink: #f7b2d8;
    --pink-soft: #3a1f30;
    --accent: #f60588;
    --accent-text: #ff6fb5;
    --text: #f7f4f6;
    --muted: #b3a9b0;
    --line: #2a2026;
    --danger: #ff6b6b;
    --success: #4cc98a;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

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

/* Hidden means hidden, whatever display a class gives it. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-text);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.logo b {
  color: var(--accent);
}

.site-header .wrap > .btn:last-child {
  margin-left: auto;
}

.nav + .btn {
  margin-left: 0;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.nav a:hover {
  background: var(--surface-2);
}

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

  .site-header .btn {
    margin-left: auto;
  }
}

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 12px 24px -12px rgba(246, 5, 136, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgba(246, 5, 136, 0.7);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.btn.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 14px;
}

.btn.ghost {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--pink-soft);
}

.btn.dark {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.btn.block {
  width: 100%;
}

/* -------------------------------------------------------- typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.accent {
  color: var(--accent);
}

@media (max-width: 640px) {
  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

/* ----------------------------------------------------- phone frames */

.phone {
  --w: 260px;
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(145deg, #2a2a2e, #0b0b0d 60%, #232326);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(80, 0, 45, 0.55),
    0 18px 36px -18px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
}

.phone::before {
  /* the camera island */
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.06);
  left: 50%;
  z-index: 2;
  width: 30%;
  height: calc(var(--w) * 0.075);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.13);
  background: var(--pink-soft);
}

.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.phone .screen img.out {
  opacity: 0;
  transform: scale(1.04);
}

.phone .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 38%);
  pointer-events: none;
}

/* ------------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.business-contact {
  max-width: 390px;
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}
