/* Impoluto landing. Colours follow the app (src/constants/theme.ts in catunlock/impoluto)
   and the sky of the logo. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbfbfc;
  --soft: #f4f6f9;
  --card: #ffffff;
  --text: #141924;
  --muted: #5d6573;
  --faint: #8d95a3;
  --line: #e4e7ec;
  --primary: #3478ec;
  --primary-dark: #1f5fcf;
  --primary-soft: #e7f0fe;
  --sun: #ffc94d;
  --sky-top: #dfeafc;
  --sky-bottom: #f6f3ea;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.06), 0 30px 60px -12px rgba(23, 45, 90, 0.22);
  --wrap: 1160px;
  --gutter: 24px;
  --accent: #1f5fcf;
  --banner: #141924;
  --header-bg: rgba(251, 251, 252, 0.82);
  --sky-mid: #edf2fb;
  --sun-glow: radial-gradient(circle, rgba(255, 201, 77, 0.55) 0%, rgba(255, 201, 77, 0.18) 45%, rgba(255, 201, 77, 0) 70%);
  --spark: #fff;
  --spark-glow: drop-shadow(0 2px 6px rgba(52, 120, 236, 0.25));
  --pill-bg: rgba(255, 255, 255, 0.7);
  --pill-line: rgba(52, 120, 236, 0.18);
  --frame: #fff;
  --frame-line: rgba(20, 25, 36, 0.08);
  --bar: #f3f4f7;
  --bar-dot: #dadde3;
  --phone: #1a1e27;
  --dash: #cfd5de;
  --shot-filter: none;
  color-scheme: light dark;
}

/* Dark theme: follows the system setting. A night version of the same sky, with a moon
   where the sun was. The app screenshots stay as they are (the app is light), a touch dimmer. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119;
    --soft: #121824;
    --card: #171e2b;
    --text: #edf0f5;
    --muted: #a3acbb;
    --faint: #7b8494;
    --line: #262f3f;
    --primary: #3f82f2;
    --primary-dark: #5a96f7;
    --primary-soft: rgba(79, 149, 255, 0.16);
    --sky-top: #14213d;
    --sky-mid: #101829;
    --sky-bottom: #0d1119;
    --accent: #8ab6ff;
    --banner: #1c2535;
    --header-bg: rgba(13, 17, 25, 0.8);
    --sun-glow: radial-gradient(circle, rgba(214, 226, 255, 0.3) 0%, rgba(150, 180, 255, 0.1) 40%, rgba(150, 180, 255, 0) 68%);
    --spark: #dbe7ff;
    --spark-glow: drop-shadow(0 0 8px rgba(138, 182, 255, 0.55));
    --pill-bg: rgba(79, 149, 255, 0.1);
    --pill-line: rgba(138, 182, 255, 0.28);
    --frame: #1b2230;
    --frame-line: rgba(255, 255, 255, 0.1);
    --bar: #1b2230;
    --bar-dot: #364154;
    --phone: #05070b;
    --dash: #34405a;
    --shot-filter: brightness(0.9);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  }
  .phone {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  .browser-url {
    background: #111723;
  }
  .final-card {
    background: linear-gradient(135deg, #2f6fe0 0%, #2459c9 50%, #1a3f96 100%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 720;
  max-width: 22ch;
}
h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--banner);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 620;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(31, 95, 207, 0.25), 0 6px 18px -6px rgba(52, 120, 236, 0.55);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--primary-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn-small {
  padding: 9px 16px;
  font-size: 15px;
  box-shadow: none;
}
.btn-large {
  padding: 16px 26px;
  font-size: 18px;
}
.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px -8px rgba(10, 30, 80, 0.45);
}
.btn-white:hover {
  background: #f1f6ff;
}
.btn-ghost {
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
  padding: 12px 6px;
  border-bottom: 1.5px solid transparent;
}
.btn-ghost:hover {
  border-bottom-color: currentColor;
}

/* ——— Language suggestion ——— */

.lang-suggest {
  background: var(--banner);
  color: #fff;
  font-size: 15px;
}
.lang-suggest .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.lang-suggest a {
  color: #fff;
  font-weight: 620;
}
.lang-suggest-close {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  border-radius: 8px;
}
.lang-suggest-close:hover {
  color: #fff;
}
.lang-suggest-close .icon {
  width: 18px;
  height: 18px;
}

/* ——— Header ——— */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-scrolled {
  border-bottom-color: var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 8px;
}
.top-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 520;
}
.top-nav a:hover {
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 8px;
}
.lang-link:hover {
  color: var(--text);
  background: var(--soft);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  padding: 72px 0 0;
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: -68px 0 22% 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.sun {
  position: absolute;
  width: 360px;
  height: 360px;
  right: max(-80px, calc(50% - 720px));
  top: 40px;
  border-radius: 50%;
  background: var(--sun-glow);
}
.spark {
  position: absolute;
  color: var(--spark);
  filter: var(--spark-glow);
}
.spark-1 {
  width: 46px;
  left: max(24px, calc(50% - 560px));
  top: 150px;
}
.spark-2 {
  width: 22px;
  left: max(70px, calc(50% - 500px));
  top: 215px;
}
.spark-3 {
  width: 30px;
  right: max(40px, calc(50% - 470px));
  top: 330px;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow,
.kicker {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow {
  background: var(--pill-bg);
  border: 1px solid var(--pill-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.lead {
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 36em;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-note {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--faint);
}

.hero-shots {
  position: relative;
  margin-top: 56px;
  padding-bottom: 8px;
}
.hero-shots .browser {
  width: 88%;
  margin: 0 auto 0 0;
  box-shadow: var(--shadow-lg);
}
.hero-shots .phone {
  position: absolute;
  right: var(--gutter);
  bottom: -36px;
  width: 25%;
  max-width: 280px;
}

/* ——— Frames ——— */

.browser {
  background: var(--frame);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--frame-line);
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.browser-bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bar-dot);
}
.browser-url {
  margin: 0 auto;
  padding: 3px 14px;
  font-size: 12px;
  color: var(--faint);
  background: var(--frame);
  border-radius: 999px;
  transform: translateX(-20px);
}
.browser img {
  width: 100%;
  filter: var(--shot-filter);
}

.phone {
  background: var(--phone);
  padding: 9px;
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
}
.phone img {
  width: 100%;
  border-radius: 33px;
  filter: var(--shot-filter);
}

/* ——— Facts ——— */

.facts {
  padding: 96px 0 24px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--primary-soft);
}
.fact strong {
  font-size: 34px;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.fact span {
  color: var(--muted);
  font-size: 15.5px;
}

/* ——— Sections ——— */

.section {
  padding: 96px 0;
}
.section-soft {
  background: var(--soft);
}
.kicker {
  margin-bottom: 12px;
}
.h2-center {
  text-align: center;
  margin: 0 auto;
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 19px;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Feature rows */
.rows {
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 64px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.row-flip {
  grid-template-columns: 1.25fr 1fr;
}
.row-flip .row-copy {
  order: 2;
}
.row-copy h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.row-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17.5px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}
.checks .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent);
  stroke-width: 2.6;
  margin-top: 1px;
}
.row-media {
  display: flex;
  justify-content: center;
}
.row-phone .row-media {
  position: relative;
  padding: 24px 0;
}
.row-phone .row-media::before {
  content: '';
  position: absolute;
  inset: 0 6%;
  z-index: 0;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--sky-top), var(--sky-bottom));
}
.row-phone .phone {
  position: relative;
  width: min(270px, 70%);
}
.row-desktop .browser {
  width: 100%;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}
.card-soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--dash);
  box-shadow: none;
}
.card-soon .card-icon {
  background: var(--card);
  color: var(--muted);
}

/* FAQ */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-weight: 620;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq details p {
  padding: 0 44px 24px 0;
  color: var(--muted);
}

/* Final call to action */
.final {
  padding: 24px 0 96px;
}
.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: 28px;
  padding: 72px 24px;
  background: linear-gradient(135deg, #4f95ff 0%, #3478ec 45%, #2459c9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-card img {
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  margin-bottom: 26px;
}
.final-card h2 {
  max-width: 18ch;
}
.final-card > p {
  margin-top: 14px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 32em;
}
.final-card .btn {
  margin-top: 32px;
}
.final-card .final-note {
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}
.final-spark-1 {
  width: 56px;
  right: 9%;
  top: 48px;
  opacity: 0.9;
}
.final-spark-2 {
  width: 26px;
  right: calc(9% + 70px);
  top: 110px;
  opacity: 0.8;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: auto;
}
.foot-brand .brand {
  font-size: 17px;
}
.foot-langs {
  display: flex;
  gap: 16px;
}
.foot-langs a {
  color: var(--muted);
}
.foot-langs [aria-current] {
  color: var(--text);
  font-weight: 600;
}
.foot-copy {
  color: var(--faint);
}

/* ——— Responsive ——— */

@media (max-width: 1020px) {
  .steps,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .row {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .row,
  .row-flip {
    grid-template-columns: 1fr;
  }
  .row-flip .row-copy {
    order: 0;
  }
  .rows {
    gap: 72px;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-shots {
    margin-top: 40px;
  }
  .hero-shots .browser {
    width: 92%;
  }
  .hero-shots .browser-bar {
    height: 24px;
    padding: 0 9px;
    gap: 5px;
  }
  .hero-shots .browser-bar > span {
    width: 7px;
    height: 7px;
  }
  .hero-shots .browser-url {
    display: none;
  }
  .hero-shots .phone {
    width: 34%;
    bottom: -28px;
    padding: 5px;
    border-radius: 22px;
  }
  .hero-shots .phone img {
    border-radius: 17px;
  }
  .hero .spark {
    display: none;
  }
  .facts {
    padding-top: 72px;
  }
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .steps,
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .top-inner {
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .final-card {
    padding: 56px 20px;
    border-radius: 22px;
  }
  .final-card .btn {
    width: 100%;
  }
  .faq summary {
    font-size: 17px;
  }
}
