/* CallWatcher — callwatcher.co.uk
   Dark-mode iPhone app aesthetic. Flat. No glow. */

:root {
  --bg-base: #000000;
  --surface-1: #1C1C1E;
  --surface-2: #2C2C2E;
  --hairline: rgba(255, 255, 255, 0.09);
  --text-primary: #F5F5F7;
  --text-secondary: rgba(235, 235, 245, 0.60);
  --text-tertiary: rgba(235, 235, 245, 0.30);
  --accent: #0A84FF;
  --accent-pressed: #0069D6;
  --success: #30D158;
  --danger: #FF453A;
  --gold: #FFD60A;
  --header-bg: rgba(0, 0, 0, 0.72);
  --font: -apple-system, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  --radius-btn: 14px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --header-h: 54px;
  --sticky-cta-h: 64px;
  --ease-press: 120ms ease;
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --space: 8px;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font);
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 0;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.site-menu,
.menu-toggle,
.menu-close,
.menu-nav,
.faq-trigger {
  font-family: var(--font);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.has-sticky-cta {
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a:hover {
  color: var(--text-primary);
}

:focus {
  outline: none;
}

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

::selection {
  background: rgba(10, 132, 255, 0.35);
  color: var(--text-primary);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 400;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(1080px, calc(100% - 64px));
  }
}

@media (min-width: 1100px) {
  .wrap {
    width: min(1080px, calc(100% - 80px));
  }
}

/* Quiet editorial label — NO pill, NO bg, NO border */
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  background: none;
  border: 0;
  padding: 0;
}

/* iOS Settings icon badges — solid square, simple glyph */
.icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg {
  width: 16px;
  height: 16px;
}
.icon-badge--blue { background: #0A84FF; }
.icon-badge--green { background: #30D158; }
.icon-badge--orange { background: #FF9F0A; }
.icon-badge--yellow { background: #FFD60A; }
.icon-badge--red { background: #FF453A; }
.icon-badge--purple { background: #BF5AF2; }

/* Grouped Settings list: one rounded surface, hairlines BETWEEN rows */
.group {
  background: var(--surface-1);
  border-radius: 14px;
  overflow: hidden;
}
.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--text-primary);
}
.group-row + .group-row,
.group > a + a,
.group > .faq-item + .faq-item,
.group > .quote-row + .quote-row {
  border-top: 1px solid var(--hairline);
}
.group-row > span:first-child:not(.icon-badge) {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  flex-shrink: 0;
}
.group-row > a,
.group-row > strong {
  margin-left: auto;
  text-align: right;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}
.group-row > a {
  color: var(--accent);
}
.group-row-stack {
  align-items: flex-start;
  padding: 14px 16px;
}
.group-row-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.group-row-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.group-row-text span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}

/* Buttons — flat fill only, no glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color var(--ease-press), transform var(--ease-press);
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}

.btn:hover {
  color: #fff;
  background: var(--accent);
}

.btn:active {
  background: var(--accent-pressed);
  transform: scale(0.97);
  color: #fff;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-secondary:active {
  background: #3A3A3C;
  color: var(--text-primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 1px;
}

.text-link:hover {
  color: #409CFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:active {
  color: var(--accent-pressed);
}

/* Sticky top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .site-header {
    padding: 0 28px;
  }
}

.wordmark {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark:hover {
  color: var(--text-primary);
  opacity: 0.85;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle-icon {
  width: 22px;
  height: 14px;
  display: block;
  position: relative;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 240ms var(--ease-sheet), opacity 200ms var(--ease-sheet);
  transform-origin: center;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1),
body.menu-open .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2),
body.menu-open .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3),
body.menu-open .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* iOS inset sheet */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms var(--ease-sheet), visibility 280ms var(--ease-sheet);
}

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

.site-menu {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  left: max(8px, env(safe-area-inset-left, 0px));
  z-index: 210;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transition: transform 280ms var(--ease-sheet), opacity 280ms var(--ease-sheet), visibility 280ms var(--ease-sheet);
  pointer-events: none;
}

.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-handle {
  width: 36px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 4px 12px 8px 20px;
  flex-shrink: 0;
}

.menu-top-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  border: 0;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
}

.menu-nav {
  flex: 1;
  min-height: 0;
  padding: 4px 16px 0;
  overflow-y: auto;
}

.menu-group {
  background: var(--surface-1);
  border-radius: 14px;
  overflow: hidden;
}

.menu-group a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.menu-group a:not(:last-child) {
  border-bottom: 1px solid var(--hairline);
}

.menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.menu-label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.menu-group a[aria-current="page"] .menu-label {
  font-weight: 600;
}

.menu-group a[aria-current="page"] .menu-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.menu-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.menu-footer {
  margin-top: auto;
  padding: 24px 16px 20px;
  flex-shrink: 0;
}

/* ========== HOME ========== */
.hero {
  padding: 64px 0 80px;
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0 128px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.hero h1 {
  font-size: clamp(38px, 9vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12ch;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(56px, 5.5vw, 68px);
  }
}

.hero-sub {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

/* iPhone mockup — fixed 9:19.5 silhouette, content does not hug */
.phone-stage {
  display: flex;
  justify-content: center;
}

#phone-demo,
#review-demo,
#sync-demo {
  opacity: 1;
}

.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  height: auto;
  background: #111;
  border-radius: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 50%;
}

@media (min-width: 768px) {
  .phone {
    max-width: 300px;
  }
}

.phone-bezel {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dynamic Island — black lozenge, camera hint tucked left only */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  z-index: 5;
}
.phone-island::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #070708;
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 0;
  z-index: 4;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.phone-status-time {
  display: block;
  text-align: left;
  min-width: 36px;
  color: #fff;
}

.phone-status-right {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 12px;
}

/* 4 vertical cellular bars, increasing height */
.signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 11px;
  width: 16px;
  flex-shrink: 0;
}

.signal i {
  display: block;
  width: 2.5px;
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 0;
  line-height: 0;
  background: #fff;
  border-radius: 0.6px;
}

.signal i:nth-child(1) { height: 3.5px; }
.signal i:nth-child(2) { height: 5.5px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 11px; }

/* Simple 3-arc Wi-Fi fan — not a horseshoe / headphones */
.wifi {
  width: 15px;
  height: 11px;
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.55' stroke-linecap='round' d='M2.1 4.6a7.4 7.4 0 0 1 11.8 0'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.55' stroke-linecap='round' d='M4.15 6.7a4.5 4.5 0 0 1 7.7 0'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.55' stroke-linecap='round' d='M6.15 8.7a2 2 0 0 1 3.7 0'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}
.wifi::before,
.wifi::after {
  content: none;
}

.battery {
  width: 22px;
  height: 11px;
  border: 1.4px solid #fff;
  border-radius: 3px;
  position: relative;
  padding: 1.5px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}

.battery span {
  display: block;
  height: 100%;
  width: 70%;
  background: #fff;
  border-radius: 1.5px;
}

.phone-screen {
  flex: 1;
  min-height: 0;
  background: #000;
  padding: 50px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.imessage-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.imessage-header .phone-avatar,
.imessage-header .avatar {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.imessage-header strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.imessage-header span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.imessage-thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

@keyframes bubble-wobble-in {
  0% {
    opacity: 0;
    transform: translate3d(-12px, 14px, 0) scale(0.78) rotate(-5deg);
  }
  58% {
    opacity: 1;
    transform: translate3d(4px, -5px, 0) scale(1.08) rotate(2.6deg);
  }
  78% {
    transform: translate3d(-2px, 2px, 0) scale(0.96) rotate(-1.2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-wobble-out {
  0% {
    opacity: 0;
    transform: translate3d(12px, 14px, 0) scale(0.78) rotate(5deg);
  }
  58% {
    opacity: 1;
    transform: translate3d(-4px, -5px, 0) scale(1.08) rotate(-2.6deg);
  }
  78% {
    transform: translate3d(2px, 2px, 0) scale(0.96) rotate(1.2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-wobble-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.82);
  }
  58% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
  78% {
    transform: translateY(1.5px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translate3d(-8px, 10px, 0) scale(0.86);
  transform-origin: left bottom;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.bubble.in {
  align-self: flex-start;
  background: #3A3A3C;
  color: var(--text-primary);
  border-bottom-left-radius: 5px;
}

.bubble.out {
  align-self: flex-end;
  background: #0A84FF;
  color: #fff;
  border-bottom-right-radius: 5px;
  transform: translate3d(8px, 10px, 0) scale(0.86);
  transform-origin: right bottom;
}

.bubble.system {
  align-self: center;
  background: #3A3A3C;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  max-width: 86%;
  padding: 8px 14px;
  border-radius: 16px;
}

.bubble.is-on {
  opacity: 1;
  animation: bubble-wobble-in 560ms cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.bubble.out.is-on,
.msg-out .bubble.is-on {
  animation-name: bubble-wobble-out;
}

.rich-link.is-on {
  opacity: 1;
  animation: bubble-wobble-pop 480ms cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.msg-out {
  align-self: flex-end;
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-out .bubble.out {
  max-width: 100%;
  align-self: stretch;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.rich-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #0066d6;
  border-radius: 12px 12px 16px 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.86);
  transform-origin: right bottom;
}
.rich-link-app {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  color: #4285F4;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.rich-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rich-link-copy strong {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rich-link-copy span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.01em;
}

/* Problem — stacked editorial rows, NOT three identical cards */
.problem {
  padding: 72px 0 80px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .problem {
    padding: 96px 0 128px;
  }
}

.problem-intro {
  max-width: 36rem;
  margin-bottom: 40px;
}

.problem-intro h2 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.problem-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 32rem;
}

.problem .group {
  max-width: 40rem;
}

/* Services teaser — compact link list, distinct from Work */
.services-teaser {
  padding: 72px 0 80px;
}

@media (min-width: 768px) {
  .services-teaser {
    padding: 96px 0 128px;
  }
}

.services-teaser h2 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 14ch;
}

.teaser-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  min-height: 64px;
}

.teaser-list a:active {
  background: var(--surface-2);
}

.teaser-list a > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.teaser-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.teaser-list a > span:nth-child(2) span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.35;
}

.teaser-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* Final CTA */
.final-cta {
  padding: 72px 0 80px;
}

@media (min-width: 768px) {
  .final-cta {
    padding: 96px 0 128px;
  }
}

.final-cta-panel {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sheet);
  padding: 36px 24px;
  text-align: left;
}

@media (min-width: 700px) {
  .final-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 40px;
  }
}

.final-cta-panel h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.final-cta-panel p {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 28rem;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .final-cta-panel p {
    margin-bottom: 0;
  }

  .final-cta-panel .btn {
    flex-shrink: 0;
  }
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hairline);
}

.sticky-cta.is-visible {
  display: block;
}

@media (min-width: 768px) {
  .sticky-cta,
  .sticky-cta.is-visible {
    display: none !important;
  }
}

.sticky-cta .btn {
  width: 100%;
  min-height: 44px;
}

/* ========== WORK ========== */
.page-hero {
  padding: 72px 0 40px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 96px 0 48px;
  }
}

.page-hero h1 {
  font-size: clamp(36px, 7vw, 56px);
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 34rem;
}

/* Work offerings — large stacked feature blocks */
.offerings {
  padding: 0 0 80px;
}

@media (min-width: 768px) {
  .offerings {
    padding: 0 0 128px;
  }
}

.offering {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .offering {
    padding: 64px 0;
  }
}

.offering-copy {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .offering:not(.offering-split) .offering-copy {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
  }

  .offering-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

.offering-visual {
  margin-top: 8px;
}

@media (min-width: 800px) {
  .offering-visual {
    margin-top: 0;
  }
}

.offering:last-child {
  border-bottom: 1px solid var(--hairline);
}

.offering-meta .icon-badge {
  margin-bottom: 12px;
}

.offering-meta .label {
  margin-bottom: 8px;
}

.offering h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.03em;
}

.offering p {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 40rem;
}

.offering p + p {
  margin-top: 12px;
}

/* How it works — vertical timeline */
.how {
  padding: 72px 0 80px;
}

@media (min-width: 768px) {
  .how {
    padding: 96px 0 128px;
  }
}

.how h2 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.035em;
  margin-bottom: 36px;
  max-width: 16ch;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline);
}

.timeline-step {
  position: relative;
  padding: 0 0 36px 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  box-sizing: border-box;
}

.timeline-step strong {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-step h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 36rem;
}

/* Testimonials */
.testimonials {
  padding: 72px 0 80px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .testimonials {
    padding: 96px 0 128px;
  }
}

.testimonials h2 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.testimonials-note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.quote-group {
  border-radius: 14px;
}

.quote-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  min-width: 0;
}

.quote-row figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stars {
  display: flex;
  gap: 3px;
}

.stars span {
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.quote-row blockquote {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.quote-row cite {
  font-style: normal;
  font-size: 13px;
  color: var(--text-secondary);
}

.quote-row cite strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 1px;
}

.quote-row .stars {
  flex-shrink: 0;
}
.quote-row .stars span {
  width: 11px;
  height: 11px;
}

/* FAQ — iOS Settings rows */
.faq {
  padding: 72px 0 80px;
}

@media (min-width: 768px) {
  .faq {
    padding: 96px 0 128px;
  }
}

.faq h2 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.faq-list {
  border-radius: 14px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger:active {
  background: var(--surface-2);
}

.faq-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-sheet);
  flex-shrink: 0;
  margin-right: 4px;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(-135deg);
}

.faq-panel {
  display: none;
  padding: 0 18px 18px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 42rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ========== CONTACT ========== */
.contact-page {
  padding: 72px 0 80px;
}

@media (min-width: 768px) {
  .contact-page {
    padding: 96px 0 128px;
  }
}

.contact-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

.contact-copy h1 {
  font-size: clamp(36px, 7vw, 52px);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  max-width: 12ch;
}

.contact-copy > p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 28rem;
  margin-bottom: 24px;
}

.contact-aside {
  margin-top: 8px;
  max-width: 28rem;
}

.contact-form-shell {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sheet);
  padding: 24px;
}

@media (min-width: 600px) {
  .contact-form-shell {
    padding: 32px;
  }
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field .hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  appearance: none;
  transition: border-color var(--ease-press);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23EBEBF54D' stroke-width='1.5' stroke-linecap='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.28);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1em;
  font-size: 13px;
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.field[hidden] {
  display: none;
}

.form-status {
  font-size: 14px;
  color: var(--danger);
  min-height: 1.2em;
}

.form-status[hidden] {
  display: none;
}

.btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  display: none;
}

.btn-submit.is-loading .btn-spinner {
  display: inline-block;
}

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

.form-success-state {
  display: none;
  text-align: center;
  padding: 40px 12px;
}

.form-success-state.is-visible {
  display: block;
}

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.14);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.form-success-state h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.form-success-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

.phone-compact {
  width: 100%;
  max-width: 248px;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 9px;
}
.phone-compact .phone-bezel {
  border-radius: 31px;
}
.phone-compact .phone-island {
  width: 84px;
  height: 24px;
  border-radius: 12px;
  top: 9px;
}
.phone-compact .phone-island::after {
  width: 4px;
  height: 4px;
  left: 6px;
  right: auto;
}
.phone-compact .phone-status {
  height: 44px;
  padding: 7px 14px 0;
  font-size: 11px;
}
.phone-compact .phone-screen {
  padding: 44px 10px 14px;
}
.phone-compact .imessage-header .phone-avatar,
.phone-compact .imessage-header .avatar {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  font-size: 13px;
}
.phone-compact .bubble {
  font-size: 12.5px;
  padding: 9px 12px;
}

.phone-stage-inline {
  justify-content: flex-start;
}

@media (max-width: 799px) {
  .phone-stage-inline {
    justify-content: center;
  }
}

/* Booking sync — two Settings groups, one event row each */
.sync-visual {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.sync-card {
  flex: 1;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}

.sync-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sync-event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px 10px 0;
  position: relative;
}

.sync-bar {
  width: 3px;
  align-self: stretch;
  margin: 8px 0 8px 12px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.sync-event-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sync-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sync-job {
  font-size: 13px;
  color: var(--text-secondary);
}

.sync-check {
  color: var(--success);
  opacity: 0;
  flex-shrink: 0;
}

.sync-event--dest {
  opacity: 0.28;
}
.sync-event--dest .sync-event-copy {
  opacity: 0;
}
.sync-event--dest .sync-bar {
  background: var(--text-tertiary);
}

.sync-bridge {
  width: 28px;
  position: relative;
  flex-shrink: 0;
  align-self: center;
  height: 1px;
  background: var(--hairline);
}

.sync-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.sync-visual.is-synced .sync-event--dest {
  opacity: 1;
}
.sync-visual.is-synced .sync-event--dest .sync-event-copy {
  opacity: 1;
}
.sync-visual.is-synced .sync-event--dest .sync-bar {
  background: var(--accent);
}
.sync-visual.is-synced .sync-check {
  opacity: 1;
}
.sync-check {
  transition: opacity 220ms ease;
}
.sync-event--dest,
.sync-event--dest .sync-event-copy {
  transition: opacity 220ms ease;
}

@media (max-width: 599px) {
  .sync-visual {
    flex-direction: column;
  }

  .sync-bridge {
    width: 1px;
    height: 24px;
    align-self: center;
  }
}

/* Contact response — not a pill */
.reply-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.reply-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-top {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand .wordmark {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 22rem;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.footer-copy {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

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

  .site-menu {
    transform: none !important;
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  .site-menu.is-open {
    transform: none !important;
  }

  .menu-backdrop {
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }

  .menu-toggle-icon span {
    transition: none !important;
  }

  .btn:active,
  .menu-toggle:active {
    transform: none;
  }

  .bubble,
  .rich-link,
  .sync-event--dest,
  .sync-event--dest .sync-event-copy,
  .sync-check,
  #phone-demo,
  #review-demo,
  #sync-demo {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .sync-event--dest .sync-bar {
    background: var(--accent) !important;
  }

  .sync-dot {
    display: none;
  }

  .reply-dot {
    animation: none !important;
  }
}
