@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f5f4;
  --bg-subtle: #f1f1f0;
  --surface: #fff;
  --surface-soft: #f5f5f5;
  --text-main: #111;
  --text-body: #454545;
  --text-muted: #737373;
  --text-light: #929292;
  --border: #e7e7e7;
  --border-color: #e7e7e7;
  --border-strong: #d7d7d7;
  --black: #080808;
  --white: #fff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1160px;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.56);
  --glass-bg-strong: rgba(255, 255, 255, 0.76);
  --glass-edge: rgba(17, 17, 17, 0.075);
  --glass-blur: blur(20px) saturate(170%);
  --glass-shadow:
    0 14px 44px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glass-shadow-hover:
    0 24px 64px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.055);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Soft smoke the glass sits on */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(42vw 42vw at 8% 6%, rgba(0, 0, 0, 0.075), transparent 70%),
    radial-gradient(46vw 46vw at 96% 34%, rgba(0, 0, 0, 0.06), transparent 70%),
    radial-gradient(40vw 40vw at 26% 92%, rgba(0, 0, 0, 0.07), transparent 70%);
}

body,
button,
input {
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

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

::selection {
  background: var(--black);
  color: var(--white);
}

/* Layout */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Shared glass surface */

.badge,
.btn-secondary,
.btn-nav,
.mobile-menu-btn,
.preview-caption,
.free-card,
.showcase-ui-box,
.philosophy-box,
.mobile-drawer,
.drawer-close-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* Brand */

.brand-logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: -0.8px;
}

/* Navigation: floating glass pill */

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}

#header .nav-inner {
  min-height: 62px;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  pointer-events: auto;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

#header.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 #fff;
}

.nav-menu,
.nav-actions,
.hero-cta-group {
  display: flex;
  align-items: center;
}

.nav-menu {
  gap: 30px;
}

.nav-link {
  color: #626262;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active,
.footer-links a:hover {
  color: #000;
}

.nav-actions {
  gap: 10px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Solid black on hover: drop the glass highlight and blur so no pale rim shows */
.btn-nav:hover {
  background: var(--black);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(17, 17, 17, 0.11);
}

/* Hero */

.hero {
  position: relative;
  padding: 70px 0 100px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.hero::before {
  top: -60px;
  right: -110px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(8, 8, 8, 0.2), transparent 66%);
}

.hero::after {
  bottom: -120px;
  left: 6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(8, 8, 8, 0.1), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.hero-text-container {
  max-width: 560px;
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #252525;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.badge i {
  font-size: 12px;
}

.hero-headline {
  margin: 24px 0 18px;
  font: 800 clamp(46px, 5.4vw, 70px) / 1.04 "Manrope", sans-serif;
  letter-spacing: -0.075em;
}

.hero-headline span {
  display: block;
  color: #999;
}

.hero-sub {
  max-width: 490px;
  margin: 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.85;
}

.hero-cta-group {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Buttons are flat: no border and no inner highlight line */
.btn-primary {
  border: 0;
  background: var(--black);
  color: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #232323;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  border: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

/* Main button switched off from main.js */
.btn-primary[aria-disabled="true"],
.btn-primary[aria-disabled="true"]:hover {
  background: #dcdcd9;
  color: #7b7b78;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.hero-microtext {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 12px;
}

.hero-microtext i {
  color: #111;
}

.hero-microtext-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 700;
  transition: gap 0.2s;
}

.hero-link:hover {
  gap: 9px;
}

.hero-link i {
  font-size: 10px;
}

/* Phone preview (hero and screenshots) */

.phone-mockup-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(310px, 78%);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid #303030;
  border-radius: 40px;
  background: #090909;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.2),
    0 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Glass glare across the bezel */
.phone-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.2),
    transparent 36%
  );
  pointer-events: none;
  content: "";
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18.8;
  overflow: hidden;
  border-radius: 31px;
  background: #f3f3f3;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.phone-screen-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding: 24px;
  color: #777;
  text-align: center;
  font-size: 13px;
}

.phone-screen-placeholder i {
  font-size: 40px;
  color: #111;
}

.phone-screen-placeholder code {
  font-size: 11px;
}

.preview-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 500;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
}

/* General sections */

.section-free,
.showcase-section {
  padding: 94px 0;
}

.center-content {
  max-width: 690px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 15px;
  color: #737373;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-title {
  margin: 0 0 15px;
  font: 800 clamp(30px, 4vw, 44px) / 1.13 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Free features */

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.free-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.free-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 #fff;
  font-size: 15px;
}

.free-card h3 {
  margin: 0 0 9px;
  font: 700 17px "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.free-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Showcase */

.showcase-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-muted {
  background: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.showcase-grid.reverse .showcase-text {
  order: 2;
}

.showcase-grid.reverse .showcase-ui {
  order: 1;
}

.showcase-text .badge {
  margin-bottom: 22px;
}

.showcase-text .section-title {
  max-width: 470px;
}

.showcase-text .section-desc {
  max-width: 460px;
}

/* Smoke behind each showcase so the glass has something to frost */
.showcase-ui {
  position: relative;
  isolation: isolate;
}

.showcase-ui::before {
  position: absolute;
  inset: -6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 55% 50%,
    rgba(8, 8, 8, 0.16),
    transparent 68%
  );
  pointer-events: none;
  content: "";
}

.showcase-ui-box {
  max-width: 490px;
  margin-inline: auto;
  padding: 28px;
  border-radius: 30px;
  background: var(--glass-bg-strong);
}

.showcase-shot {
  margin: 0;
  display: flex;
  justify-content: center;
}

.mock-heading {
  margin-bottom: 8px;
  font: 700 20px "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.mock-copy {
  margin: 0 0 17px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.task-list,
.mock-list,
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: default;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

#interactive-task-list .task-row {
  cursor: pointer;
}

.task-row:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 17, 17, 0.12);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.task-left > span:last-child {
  overflow-wrap: anywhere;
}

.checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: white;
  font-size: 9px;
}

.checkbox i {
  opacity: 0;
}

.checkbox.checked,
.done .checkbox {
  background: #111;
  border-color: #111;
}

.checkbox.checked i,
.done .checkbox i {
  opacity: 1;
}

.completed-text,
.done .task-left > span:last-child {
  color: #999;
  text-decoration: line-through;
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.mock-tabs button {
  cursor: pointer;
  color: var(--text-muted);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.mock-tabs .badge {
  margin: 0;
}

.mock-tabs .badge {
  border: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  cursor: pointer;
}

/* Active tab: solid black, no pale rim */
.mock-tabs .badge.active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.mock-list .task-left i {
  color: #777;
}

.today-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.today-heading strong {
  font: 700 17px "Manrope", sans-serif;
}

.today-heading span {
  color: var(--text-light);
  font-size: 11px;
}

.task-badge {
  padding: 5px 9px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #777;
  font-size: 10px;
  white-space: nowrap;
}

/* Search demo */

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 #fff;
  color: #777;
}

.search-mockup-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 13px;
}

.search-results-list {
  margin-top: 12px;
}

.search-result-item {
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.search-result-item.highlighted {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 17, 17, 0.07);
  box-shadow: inset 0 1px 0 #fff;
}

.res-title {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}

.res-snippet {
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}

mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.1);
  color: #111;
}

/* Philosophy */

.philosophy-section {
  position: relative;
  padding: 60px 0;
  overflow: clip;
}

.philosophy-section::before,
.philosophy-section::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.philosophy-section::before {
  top: -30px;
  left: 14%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(8, 8, 8, 0.2), transparent 66%);
}

.philosophy-section::after {
  right: 12%;
  bottom: -50px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(8, 8, 8, 0.15), transparent 66%);
}

.philosophy-section .container {
  position: relative;
  z-index: 1;
}

.philosophy-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 40px;
  text-align: center;
  border-radius: 34px;
  background: var(--glass-bg-strong);
}

.philosophy-section .section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #888888;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.philosophy-statement {
  margin: 0 0 16px;
  color: #111111;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1.15;
}

.philosophy-sub {
  max-width: 480px;
  margin: 0 auto;
  color: #777777;
  font-size: 15px;
  line-height: 1.6;
}

.philosophy-box .btn-primary {
  margin-top: 28px;
}

/* Download section (unchanged) */

.cta-section.download-section {
  position: relative;
  padding: 118px 0 108px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(194, 218, 255, 0.2) 0%,
      transparent 65%
    ),
    #f3f8ff;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-section .download-title {
  max-width: 100%;
  margin: 0 0 25px;
  color: #111318;
  font: 800 clamp(32px, 4.5vw, 50px) / 1.15 "Manrope", sans-serif;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.download-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.download-button {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: 700 16px / 1 "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 55, 120, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.download-button i {
  flex: 0 0 auto;
  font-size: 20px;
}

.download-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 12px 25px rgba(20, 55, 120, 0.2);
}

.download-button:active {
  transform: translateY(-1px);
}

.download-button-android {
  background: linear-gradient(135deg, #a100ff 0%, #7900f5 48%, #4e00d8 100%);
  box-shadow: 0 10px 24px rgba(126, 0, 245, 0.28);
}

.download-button-android:hover {
  box-shadow: 0 14px 30px rgba(126, 0, 245, 0.36);
}

.download-button-ios {
  background: linear-gradient(135deg, #30343b 0%, #0a0b0d 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.download-button-ios:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.download-button-windows {
  background: linear-gradient(135deg, #25a0ff 0%, #0875f5 55%, #075bd5 100%);
  box-shadow: 0 10px 24px rgba(8, 117, 245, 0.3);
}

.download-button-windows:hover {
  box-shadow: 0 14px 30px rgba(8, 117, 245, 0.38);
}

.download-button-apk {
  background: linear-gradient(135deg, #34d399 0%, #16a34a 50%, #047857 100%);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.download-button-apk:hover {
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.36);
}

.download-button:focus-visible {
  outline: 3px solid rgba(30, 120, 255, 0.35);
  outline-offset: 4px;
}

/* Footer */

footer {
  padding: 30px 0;
  border-top: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.footer-links a {
  color: #666;
  font-size: 12.5px;
  font-weight: 600;
}

.footer-note {
  justify-self: end;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Toast */

.toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px 12px 12px;
  border: 1px solid #333;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: white;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.22s,
    transform 0.22s,
    visibility 0.22s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #111;
  font-size: 11px;
}

/* Mobile drawer: glass sheet */

.mobile-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  width: min(360px, 88vw);
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.mobile-backdrop.open .mobile-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  font-size: 17px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.drawer-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 600;
}

.drawer-nav-link i {
  color: #999;
  font-size: 11px;
}

.drawer-cta {
  width: 100%;
}

/* Features page */

.page-hero {
  position: relative;
  padding: 80px 0 24px;
  text-align: center;
}

.page-hero .badge {
  margin-inline: auto;
}

.page-hero .hero-sub {
  margin-inline: auto;
}

/* Scroll reveal */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal:not(.active) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready .reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.stagger-1 {
  transition-delay: 0.08s !important;
}

.stagger-2 {
  transition-delay: 0.16s !important;
}

.stagger-3 {
  transition-delay: 0.24s !important;
}

.stagger-4 {
  transition-delay: 0.32s !important;
}

/* Tablet */

@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .nav-menu {
    gap: 18px;
  }

  .hero {
    padding: 56px 0 78px;
  }

  .hero-grid {
    gap: 35px;
  }

  .free-grid {
    gap: 12px;
  }
}

/* Mobile */

@media (max-width: 850px) {
  html {
    scroll-padding-top: 88px;
  }

  .container {
    width: calc(100% - 32px);
  }

  #header {
    padding-top: 10px;
  }

  #header .nav-inner {
    min-height: 58px;
    padding: 0 8px 0 14px;
  }

  .nav-menu,
  .btn-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .hero {
    padding: 44px 0 65px;
  }

  .hero::before {
    width: 380px;
    height: 380px;
    right: -140px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-text-container {
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta-group,
  .hero-microtext {
    justify-content: center;
  }

  .hero-headline {
    margin-top: 21px;
    font-size: clamp(43px, 12vw, 62px);
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-cta-group {
    align-items: stretch;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    flex: 1 1 auto;
    padding-inline: 15px;
  }

  .phone-mockup-wrapper {
    margin-top: 3px;
  }

  .phone-frame {
    width: min(260px, 72%);
  }

  .section-free,
  .showcase-section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 52px 0 12px;
  }

  .center-content {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(29px, 8vw, 38px);
  }

  .section-desc {
    font-size: 13px;
  }

  .free-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .free-card {
    padding: 24px;
    border-radius: 22px;
  }

  .card-icon {
    margin-bottom: 15px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .showcase-grid.reverse .showcase-text,
  .showcase-grid.reverse .showcase-ui {
    order: initial;
  }

  .showcase-text {
    text-align: center;
  }

  .showcase-text .badge {
    margin: 0 auto 17px;
  }

  .showcase-text .section-title,
  .showcase-text .section-desc {
    margin-inline: auto;
  }

  .free-card {
    text-align: center;
  }

  .card-icon {
    margin-inline: auto;
  }

  .showcase-ui-box {
    padding: 19px;
    border-radius: 22px;
  }

  .philosophy-section {
    padding: 48px 0;
  }

  .philosophy-box {
    padding: 44px 24px;
    border-radius: 26px;
  }

  .philosophy-statement {
    font-size: clamp(34px, 10vw, 48px);
  }

  .cta-section.download-section {
    padding: 76px 0 72px;
  }

  .download-section .download-title {
    max-width: 600px;
    margin-bottom: 24px;
    font-size: clamp(31px, 7.5vw, 43px);
  }

  .download-buttons {
    gap: 12px;
  }

  .download-button {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 14px;
  }

  .download-button i {
    font-size: 18px;
  }

  footer {
    padding: 28px 0 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    order: -1;
  }

  .footer-note {
    justify-self: center;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    text-align: center;
  }
}

/* Small phones */

@media (max-width: 480px) {
  .download-section .download-title {
    max-width: 340px;
    font-size: clamp(29px, 8vw, 36px);
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .download-button {
    width: 100%;
    min-height: 54px;
  }
}

@media (max-width: 540px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
  }

  .hero-microtext-dot {
    display: none;
  }

  .hero-microtext {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {

  .cta-section.download-section {
    padding: 62px 0;
  }

  .download-section .download-title {
    font-size: 29px;
  }

  .download-button {
    min-height: 52px;
    padding-inline: 15px;
    font-size: 13px;
  }
}

/* Browsers without backdrop-filter get a more solid panel */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .badge,
  .btn-secondary,
  .btn-nav,
  .mobile-menu-btn,
  .preview-caption,
  .free-card,
  .showcase-ui-box,
  .philosophy-box,
  .mobile-drawer,
  .drawer-close-btn,
  #header .nav-inner,
  footer {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}