/* tenda — topbar + hero (light porcelain palette) */

:root {
  --jet: #0d2429;
  --ink: #16252b;
  --muted: rgba(13, 36, 41, 0.62);
  --muted-2: rgba(13, 36, 41, 0.42);
  --porcelain: #f5f3ec;
  --cream: #efeae0;
  --hair: rgba(13, 36, 41, 0.1);
  --hair-2: rgba(13, 36, 41, 0.16);
  --tangerine: #ec6d35;
  --evergreen: #2bb673;
  --jet-soft: rgba(13, 36, 41, 0.18);
  --device-green: #2f3d2a;
  --device-grey: #111214;

  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --tap: 44px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Soft green tap highlight on touch devices instead of the default
   red/orange iOS Safari shows on focus + the form's :invalid red. */
a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: var(--jet-soft);
}

input:invalid,
select:invalid {
  /* Kill native red ring for required fields — we do our own validation. */
  box-shadow: none;
  outline: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* `clip` is stricter than `hidden` (no scroll container created)
     and is the preferred way to kill horizontal panning on mobile.
     Browsers that don't support it fall back to `hidden` above. */
  overflow-x: clip;
}

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

  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--jet);
  background: var(--porcelain);
  overflow-x: hidden;
  overflow-x: clip;
  /* Kill horizontal swipe gestures on touch devices — page only
     scrolls vertically, while still allowing pinch-to-zoom for a11y. */
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  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: 1rem;
  top: 1rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  background: var(--jet);
  color: var(--porcelain);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--tangerine);
  outline-offset: 2px;
}

/* ───── Topbar ───── */

.topbar {
  flex-shrink: 0;
  padding: clamp(0.75rem, 1.6vw, 1.1rem) var(--gutter);
  background: var(--porcelain);
}

.topbar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem 0;
  border-radius: 8px;
}

.topbar__logo img {
  width: auto;
  height: clamp(28px, 4vw, 40px);
  display: block;
}

.topbar__logo:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 3px;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  background: var(--jet);
  color: var(--porcelain);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}

.topbar__btn:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .topbar__btn:hover {
    background: #071418;
    transform: translateY(-1px);
  }
}

/* ───── Page + hero ───── */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(0.5rem, 2vw, 1.25rem) var(--gutter)
    clamp(1rem, 3vw, 2rem);
}

.page__footer {
  max-width: var(--shell);
  width: 100%;
  margin-inline: auto;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.page__contact {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jet);
  text-decoration: none;
  letter-spacing: 0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .page__contact:hover {
    color: var(--tangerine);
  }
}

.page__contact:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 3px;
  border-radius: 4px;
}

.page__copyright {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.page__copyright-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--jet);
  line-height: 1;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: var(--shell);
  width: 100%;
  margin-inline: auto;
}

.hero__grid {
  width: 100%;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  max-width: 36rem;
}

/* News pill */

.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hair-2);
  box-shadow: 0 2px 6px rgba(13, 36, 41, 0.04);
  font-size: 0.82rem;
  color: var(--muted);
}

.news-pill__tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--jet);
  color: var(--porcelain);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.news-pill__text {
  color: var(--jet);
  font-weight: 500;
}

.news-pill__emoji {
  font-size: 0.95rem;
  line-height: 1;
}

/* Headline */

.hero__headline {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--jet);
}

.hero__headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--jet);
}

.hero__sub {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  color: var(--muted);
}

/* Waitlist form (preserved) */

.hero__waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: clamp(0.25rem, 1vh, 0.75rem);
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 30rem;
}

.waitlist[hidden] {
  display: none;
}

@media (min-width: 480px) {
  .waitlist {
    flex-direction: row;
    align-items: stretch;
  }
}

.waitlist__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease;
}

.waitlist__field:focus-within {
  outline: 2px solid var(--jet);
  outline-offset: 2px;
  border-color: rgba(13, 36, 41, 0.55);
}

.waitlist__dial {
  flex-shrink: 0;
  min-height: 48px;
  /* Cap how much horizontal space the country picker can take so the
     phone-number input always has room. The native picker still shows
     the full option text when opened. */
  max-width: 9rem;
  padding: 0 0.75rem 0 0.9rem;
  border: 0;
  border-right: 1px solid var(--hair);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jet);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%230d2429' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 10px;
  padding-right: 1.6rem;
  border-radius: 14px 0 0 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.waitlist__dial[hidden] {
  display: none;
}

.waitlist__dial:focus {
  outline: none;
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border-radius: 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--jet);
}

.waitlist__input::placeholder {
  color: var(--muted-2);
}

.waitlist__input:focus {
  outline: none;
}

.waitlist__dial:not([hidden]) + label + .waitlist__input {
  padding-left: 0.6rem;
  border-radius: 0 14px 14px 0;
}

.waitlist__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border-radius: 14px;
  border: 0;
  background: var(--jet);
  color: var(--porcelain);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease;
}

.waitlist__btn:focus-visible {
  outline: 2px solid var(--jet);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .waitlist__btn:hover {
    background: #071418;
    transform: translateY(-1px);
  }
}

.waitlist__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.waitlist__status {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.waitlist__success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 30rem;
  min-height: 68px;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 0;
  background: var(--jet);
  color: var(--porcelain);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
  animation: waitlistSuccessIn 0.32s ease both;
}

.waitlist__success[hidden] {
  display: none;
}

.waitlist__success-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.25;
}

.waitlist__success-line {
  display: block;
}

.waitlist__success-line--top {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.waitlist__success:focus-visible {
  outline: 2px solid var(--jet);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .waitlist__success:hover {
    background: #071418;
    transform: translateY(-1px);
  }
}

@keyframes waitlistSuccessIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist__success {
    animation: none;
  }
}

/* ───── Devices stage (preserved) ───── */

.hero__devices {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 960px) {
  .hero__devices {
    justify-content: flex-end;
    margin-inline: 0;
  }
}

.phone {
  position: absolute;
  filter: drop-shadow(0 30px 55px rgba(13, 36, 41, 0.18));
}

/* Mirrored pair: front phone tilts left, back phone tilts right,
   they overlap in the middle like the reference layout. */

.phone--front {
  width: 55%;
  max-width: 270px;
  left: 4%;
  top: 10%;
  transform: rotate(-7deg);
  z-index: 3;
}

.phone--back {
  width: 55%;
  max-width: 270px;
  right: 2%;
  top: -2%;
  transform: rotate(7deg);
  z-index: 2;
}

@media (max-width: 600px) {
  .phone--front {
    left: 2%;
  }

  .phone--back {
    right: -2%;
  }
}

.phone__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 260 / 540;
  border-radius: 38px;
  /* Metallic body: dark center fading to silver at the edges so the
     side rails read as a polished aluminum/titanium band. */
  background:
    linear-gradient(
      135deg,
      #6b7079 0%,
      #2f343b 7%,
      #0c0e11 22%,
      #0c0e11 78%,
      #2f343b 93%,
      #6b7079 100%
    );
  padding: 7px;
  box-shadow:
    /* Bright silver lining hugging the outer edge */
    0 0 0 0.75px rgba(225, 229, 234, 0.95),
    /* Thin dark separator so the silver pops against the page */
    0 0 0 2px rgba(0, 0, 0, 0.45),
    /* Top highlight — light hitting the upper rail */
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.28),
    /* Bottom shadow — depth on the lower rail */
    inset 0 -1.5px 1.5px rgba(0, 0, 0, 0.6),
    /* Side highlight + shadow for chamfered edge feel */
    inset 1px 0 0.5px rgba(255, 255, 255, 0.1),
    inset -1px 0 0.5px rgba(0, 0, 0, 0.35),
    /* Inner bezel ring where the screen sits */
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}

.phone__screen--splash {
  background: #14232a;
}

.phone__splash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ───── Projects screen (front phone) ───── */

.projects {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
  font-size: 9px;
}

.projects__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.7rem 0.15rem;
  color: var(--jet);
}

.status-left,
.status-right {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.status__time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status__icon {
  display: block;
  color: var(--jet);
}

.status__signal {
  margin-bottom: 1px;
}

.status__battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.22rem 0 0.26rem;
  height: 10px;
  min-width: 20px;
  background: var(--jet);
  border-radius: 3px;
  color: #fff;
}

.status__battery::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 4px;
  background: var(--jet);
  border-radius: 0 1px 1px 0;
}

.status__battery-pct {
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.projects__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.7rem 0.25rem;
}

.projects__search,
.projects__menu {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(13, 36, 41, 0.08);
}

.projects__tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.05rem 0.6rem 0.4rem;
}

.projects__tab {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
}

.projects__tab--on {
  background: var(--jet);
  color: #fff;
  border-color: var(--jet);
}

.projects__list {
  list-style: none;
  margin: 0;
  padding: 0 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
}

.proj-card {
  padding: 0.45rem 0.5rem 0.4rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(13, 36, 41, 0.05);
}

.proj-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.proj-card__title {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--jet);
}

.proj-card__sub {
  margin: 0.08rem 0 0;
  font-size: 0.52rem;
  color: var(--muted);
}

.ring {
  --pct: 0;
  --ring-color: #d3d6c2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--ring-color) calc(var(--pct) * 1%),
    #eceade calc(var(--pct) * 1%)
  );
  position: relative;
  flex-shrink: 0;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #fff;
}

.ring__text {
  position: relative;
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--jet);
}

.proj-card__team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.proj-card__label {
  font-size: 0.52rem;
  color: var(--muted);
  font-weight: 600;
}

.avatars {
  display: flex;
  align-items: center;
}

.stack {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  margin-left: -4px;
  background: var(--jet);
  font-size: 0.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jet);
}

.stack:first-child {
  margin-left: 0;
}

.stack--a {
  background: #c07f55;
}

.stack--b {
  background: #c7e36a;
}

.stack--c {
  background: #b46a4b;
}

.stack--plus {
  background: #eef2df;
  color: var(--jet);
}

.proj-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px dashed var(--hair);
}

.meta {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--jet);
}

.meta--muted {
  color: var(--muted);
}

/* ───── Chats screen (back phone) ───── */

.chats {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  font-size: 9px;
  padding-top: 0.9rem;
}

.chats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem 0.3rem;
}

.chats__search,
.chats__add {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(13, 36, 41, 0.08);
}

.chats__tabs {
  display: flex;
  gap: 0.2rem;
}

.chats__tab {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(13, 36, 41, 0.05);
}

.chats__tab--on {
  background: var(--jet);
  color: #fff;
}

.chat-list {
  list-style: none;
  margin: 0;
  padding: 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
  overflow: hidden;
}

.chat-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  padding: 0.22rem 0.3rem;
  border-bottom: 1px solid rgba(13, 36, 41, 0.05);
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #cfcfcf;
}

.avatar--a { background: linear-gradient(135deg, #b46a4b, #8a4a2f); }
.avatar--b { background: linear-gradient(135deg, #c9d4b1, #8fa277); }
.avatar--c { background: linear-gradient(135deg, #2e5a64, #0d2429); }
.avatar--d { background: linear-gradient(135deg, #7d92a6, #4a6076); }
.avatar--e { background: linear-gradient(135deg, #9fb9e2, #5f82b4); }
.avatar--f { background: linear-gradient(135deg, #d6dfe6, #a8b9c6); }
.avatar--g { background: linear-gradient(135deg, #ca9a7e, #7b553e); }
.avatar--h { background: linear-gradient(135deg, #aabd8e, #6f8656); }

.chat-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-row__name {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--jet);
}

.chat-row__msg {
  font-size: 0.5rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chats__tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.28rem 0.4rem 0.4rem;
  border-top: 1px solid rgba(13, 36, 41, 0.05);
}

.chats__tab-icon {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(13, 36, 41, 0.12);
}

.chats__tab-icon--on {
  background: var(--jet);
}

/* ───── Small screens: devices ABOVE copy, copy overlays phones ───── */

@media (max-width: 959px) {
  .hero {
    align-items: flex-start;
  }

  .page {
    /* Give the topbar → phone gap some real breathing room on mobile. */
    padding-top: clamp(1.25rem, 5vw, 2.25rem);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    /* No vertical gap — we'll pull the copy up over the phones with
       a negative margin so the headline overlaps the phone visuals. */
    gap: 0;
  }

  .hero__devices {
    order: 1;
    max-width: 440px;
    /* taller stage so the tilted phones are fully contained */
    aspect-ratio: 1 / 1.22;
    margin-top: clamp(0.5rem, 2vw, 1rem);
    /* Phones sit visually behind the copy block. */
    z-index: 1;
  }

  .hero__copy {
    order: 2;
    max-width: none;
    position: relative;
    /* Force a fresh stacking context above the phone stage so the
       cream backdrop always paints on top, regardless of grid quirks. */
    isolation: isolate;
    z-index: 5;
    margin-top: -5rem;
    padding-top: 1.5rem;
    /* Backdrop is rendered via the ::before pseudo below so it can
       be guaranteed full-viewport-width without relying on grid
       negative-margin behaviour (which iOS Safari can clip on the
       right edge). */
    background: transparent;
  }

  .hero__copy::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--cream);
    z-index: -1;
    pointer-events: none;
  }

  /* Whole mobile page sits on cream so the copy backdrop bleeds to
     every edge — no thin porcelain strip on the right, no porcelain
     break before the contact / copyright footer. */
  body {
    background: var(--cream);
  }

  .topbar {
    background: var(--cream);
  }
}

@media (max-width: 600px) {
  .hero__devices {
    max-width: 100%;
    aspect-ratio: 1 / 1.28;
  }

  .phone--front,
  .phone--back {
    width: 47%;
    max-width: 215px;
  }

  .phone--front {
    left: 6%;
    top: 6%;
  }

  .phone--back {
    right: 5%;
    top: -3%;
  }

  .hero__copy {
    /* Stronger overlap on phones: pulls the news pill + headline
       up so they cover ~1/4 of the phone visuals on initial load.
       Clamped so it doesn't overshoot on very tall/short viewports. */
    margin-top: clamp(-11rem, -34vw, -5rem);
  }

  .page__footer {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ========================================================================
   Welcome page (post-waitlist) — /welcome.html
   ======================================================================== */

.welcome-body {
  background: var(--jet);
  color: var(--porcelain);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar--welcome {
  background: transparent;
  border-bottom: 1px solid rgba(245, 243, 236, 0.08);
}

.topbar--welcome .topbar__logo--mark {
  width: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
}

.topbar--welcome .topbar__logo--mark img {
  width: auto;
  height: 100%;
  max-height: 40px;
  display: block;
}

.welcome {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.welcome__hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 44rem;
  margin-inline: auto;
}

.welcome__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--porcelain);
}

.welcome__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 243, 236, 0.72);
  line-height: 1.4;
}

.welcome__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .welcome__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.wcard {
  background: var(--porcelain);
  color: var(--jet);
  border-radius: 28px;
  padding: 1.6rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .wcard:hover {
    transform: translateY(-3px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 18px 40px rgba(0, 0, 0, 0.22);
  }
}

.wcard__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--jet);
}

.wcard__icon svg {
  width: 26px;
  height: 26px;
}

.wcard__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.wcard__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(13, 36, 41, 0.65);
}

.wcard__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--jet);
  color: var(--porcelain);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .wcard__cta:hover {
    background: #071418;
    transform: translateY(-1px);
  }
}

.wcard__cta:focus-visible {
  outline: 2px solid var(--jet);
  outline-offset: 3px;
}

/* Share card extras */
.share {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.share__row {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.share__url {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--jet);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
  text-overflow: ellipsis;
}

.share__copy {
  flex-shrink: 0;
  padding: 0 0.95rem;
  border: 0;
  border-left: 1px solid var(--hair-2);
  background: var(--jet);
  color: var(--porcelain);
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .share__copy:hover {
    background: #071418;
  }
}

.share__copy.is-copied {
  background: var(--evergreen);
}

.share__copy:focus-visible {
  outline: 2px solid var(--jet);
  outline-offset: 2px;
}

.share__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--jet);
  transition: background-color 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .share__btn:hover {
    background: #fff;
    transform: translateY(-1px);
    border-color: var(--jet);
  }
}

.share__btn--whatsapp svg {
  color: #25d366;
}

.share__btn--imessage svg {
  color: #34c759;
}

.welcome__footer {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1rem var(--gutter) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(245, 243, 236, 0.6);
  font-size: 0.85rem;
}

.welcome__contact {
  color: var(--porcelain);
  text-decoration: none;
  font-weight: 600;
}

.welcome__contact:hover {
  text-decoration: underline;
}

.welcome__copyright {
  margin: 0;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .welcome__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ========================================================================
   Footer socials (Instagram, TikTok)
   ======================================================================== */

.page__footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.page__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--jet);
  background: transparent;
  text-decoration: none;
  border: 1px solid var(--hair-2);
  transition: color 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease, transform 0.18s ease;
}

.page__social svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .page__social:hover {
    color: var(--tangerine);
    border-color: var(--tangerine);
    transform: translateY(-1px);
  }
}

.page__social:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 3px;
}

.page__social--soon {
  opacity: 0.4;
  cursor: not-allowed;
}

.page__social--soon:hover {
  color: var(--jet);
  border-color: var(--hair-2);
  transform: none;
}

/* ========================================================================
   Calendly modal (custom iframe — replaces flaky popup widget)
   ======================================================================== */

.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: calFadeIn 0.18s ease both;
}

.cal-modal[hidden] {
  display: none;
}

.cal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 36, 41, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cal-modal__panel {
  position: relative;
  width: min(1000px, calc(100vw - 32px));
  height: min(92vh, 800px);
  max-height: 92vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  animation: calPanelIn 0.24s var(--ease) both;
}

@media (max-width: 768px) {
  .cal-modal__panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
}

.cal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: rgba(13, 36, 41, 0.08);
  color: var(--jet);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.cal-modal__close:hover {
  background: rgba(13, 36, 41, 0.16);
  transform: scale(1.05);
}

.cal-modal__close:focus-visible {
  outline: 2px solid var(--jet);
  outline-offset: 3px;
}

.cal-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.cal-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 2;
}

.cal-modal__loader[hidden] {
  display: none;
}

.cal-modal__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--hair-2);
  border-top-color: var(--jet);
  animation: calSpin 0.8s linear infinite;
}

@keyframes calSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes calFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes calPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cal-modal,
  .cal-modal__panel {
    animation: none;
  }
  .cal-modal__spinner {
    animation: calSpin 1.5s linear infinite;
  }
}

/* Lock background scroll when modal is open */
body.cal-locked {
  overflow: hidden;
}
