/* ibelo waitlist site. Mobile first; brand colours and type from the ibelo Brand Guide. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  --ink: #141414;
  --paper: #ffffff;
  --mist: #f2f2f2;
  --graphite: #5a5a5a;
  --honey: #e8a317; /* accent only, never on the logo or as text on light backgrounds */
  --border: #8c8c8c; /* 3.4:1 on Paper, enough for form-field edges */
  --error: #b42318;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --gutter: 20px;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font: 400 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wordmark {
  font: 500 1.625rem/1 var(--font-head);
  letter-spacing: -0.02em;
  padding-bottom: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  font: 400 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hero and form */

.hero {
  padding-block: 40px 64px;
}

.hero h1 {
  font-size: clamp(2.625rem, 8.5vw + 0.5rem, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lede {
  margin-top: 20px;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--graphite);
}

.signup,
.success {
  margin-top: 32px;
  max-width: 36rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup input[type='email'] {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1 var(--font-body);
  transition: border-color 0.15s;
}
.signup input[type='email']::placeholder {
  color: #8a8a8a;
}
.signup input[type='email']:hover {
  border-color: var(--ink);
}
.signup input[type='email']:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
  border-radius: 12px;
}
.signup input[aria-invalid='true'] {
  border-color: var(--error);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font: 500 1.0625rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.button:hover {
  background: #333;
}
.button:active {
  transform: translateY(1px);
}
.button:focus-visible {
  border-radius: 12px;
}
.button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.turnstile:not(:empty) {
  margin-top: 16px;
}

.status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 0.9375rem;
}
.status:empty {
  min-height: 0;
  margin-top: 0;
}
.status.is-error {
  color: var(--error);
}

.fineprint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--graphite);
}

.success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--mist);
}
.success:focus {
  outline: none;
}
.success h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.success p {
  margin-top: 6px;
  color: var(--graphite);
}
.success-icon {
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: 1px;
}
.success-icon circle {
  fill: var(--honey);
}
.success-icon path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Product clips (looping, muted, play only while on screen) */

.demo {
  padding-block: 0 56px;
}

.clip {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 16 / 10;
  border: 1px solid #E4E4E4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mist);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.05), 0 16px 40px rgba(20, 20, 20, 0.09);
}

.clip video,
.clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.clip-toggle:hover {
  opacity: 1;
}
.clip-toggle:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 50%;
}
/* pause icon (two bars) while playing, play triangle while paused */
.clip-toggle::before,
.clip-toggle::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: #fff;
}
.clip-toggle::before {
  left: 12px;
}
.clip-toggle::after {
  left: 20px;
}
.clip-toggle[aria-pressed='true']::before {
  left: 14px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
  top: 11px;
}
.clip-toggle[aria-pressed='true']::after {
  display: none;
}

.clip-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--graphite);
}

/* Steps */

.steps-section {
  padding-block: 8px 64px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 28px;
  border-top: 1px solid #E4E4E4;
}
.feature:first-of-type {
  margin-top: 20px;
}

.feature-text h3 {
  margin-top: 12px;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature-text p {
  margin-top: 10px;
  max-width: 30rem;
  color: var(--graphite);
  font-size: 1.0625rem;
}

.step-num {
  font: 400 0.8125rem/1 var(--font-mono);
  color: var(--graphite);
}

.feature-text .step-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font: 400 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Founding members band */

.beta {
  background: var(--ink);
  color: var(--paper);
  padding-block: 56px;
}
.beta .label {
  color: #bdbdbd;
}
.beta h2 {
  margin-top: 12px;
  max-width: 24ch;
  font-size: clamp(1.75rem, 4.5vw + 0.5rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.beta .button {
  margin-top: 28px;
}
.beta :focus-visible {
  outline-color: var(--paper);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}
.button-light:hover {
  background: var(--mist);
}

/* Footer */

.site-footer {
  padding-block: 32px 40px;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding-block: 8px;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer,
.legal {
  margin-top: 8px;
  color: var(--graphite);
}
.disclaimer {
  margin-top: 16px;
}

/* Privacy and 404 pages */

.prose {
  max-width: 44rem;
  padding-block: 32px 64px;
}
.prose h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.prose .updated,
.prose .label + h1 {
  margin-top: 12px;
}
.prose code {
  font: 400 0.875em/1 var(--font-mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--mist);
}
.prose h2 {
  margin-top: 40px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose p,
.prose ul {
  margin-top: 12px;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  text-decoration: underline;
}
.prose .button {
  margin-top: 28px;
}
.prose .button,
.footer-links a {
  text-decoration: none;
}

/* Wider screens */

@media (min-width: 560px) {
  .field-row {
    flex-direction: row;
  }
  .field-row input[type='email'] {
    flex: 1;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .site-header {
    padding-block: 28px;
  }
  .hero {
    padding-block: 72px 96px;
  }
  .lede {
    font-size: 1.25rem;
  }
  .steps-section {
    padding-block: 0 72px;
  }
  .demo {
    padding-block: 0 96px;
  }
  .beta {
    padding-block: 88px;
  }
  .prose {
    padding-block: 56px 96px;
  }
}

@media (min-width: 900px) {
  /* text beside its clip, alternating sides */
  .feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    align-items: center;
    gap: 56px;
    padding-block: 56px;
  }
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  }
  .feature:nth-of-type(even) .feature-text {
    order: 2;
  }
  .feature .clip {
    margin-top: 0;
  }
  .feature-text h3 {
    font-size: 2.25rem;
  }
}
