:root {
  --navy: #26374a;
  --navy-deep: #1c2b3a;
  --ink: #333333;
  --ink-muted: #595959;
  --link: #284162;
  --link-hover: #0535d2;
  --red: #af3c43;
  --red-deep: #822730;
  --danger: #d3080c;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --panel: #ffffff;
  --panel-soft: #f2f2f2;
  --border: #8c8c8c;
  --border-light: #dbdbdb;
  --white: #ffffff;
  --crm: #26374a;
  --crm-deep: #1c2b3a;
  --interview: #af3c43;
  --interview-deep: #822730;
  --accent-line: #284162;
  --radius: 0;
  --shadow: none;
  --panel-width: 720px;
  --font-display: "Lato", sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
}

button,
a.btn,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input,
textarea,
select {
  font-size: 16px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ——— Canada.ca-style chrome ——— */
.fip-bar {
  background: var(--navy);
  color: var(--white);
}

.fip-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fip-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.fip-brand:hover {
  color: var(--white);
  text-decoration: underline;
}

.fip-maple,
.fip-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.fip-lang {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  font: 600 0.85rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fip-lang:hover,
.fip-lang:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.app-bar {
  background: var(--bg-soft);
  border-bottom: 4px solid var(--red);
}

.app-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(38, 55, 74, 0.18);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--navy);
}

.logo-text > span:first-child {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: inherit;
  color: var(--navy);
}

.logo-text > span:last-child {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.back-link {
  font-size: 0.95rem;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.back-link:hover {
  color: var(--link-hover);
}

/* ——— Layout ——— */
.site {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.site-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.alert-info {
  background: #ebf2fc;
  border-left: 4px solid var(--navy);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ——— Home ——— */
.home-panel {
  width: min(100%, var(--panel-width));
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: fade-up 0.45s ease both;
  position: relative;
  overflow: visible;
}

.home-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.home-sub {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  max-width: 40rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 28rem;
  margin-inline: 0;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.4;
  overflow: visible;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-stack .btn {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: none;
}

.btn-stack .btn-interview {
  box-shadow: none;
}

.btn-stack .btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn:active {
  filter: brightness(0.96);
}

.btn-crm {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.btn-crm:hover {
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: none;
}

.btn-interview {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-interview:hover {
  background: #e6e6e6;
  color: var(--ink);
  box-shadow: none;
}

.btn-download {
  background: var(--red);
  color: var(--white);
  box-shadow: none;
  font-size: 1.05rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.25rem;
  white-space: normal;
  gap: 0.45rem;
  max-width: 28rem;
  animation: download-pulse 1.4s ease-in-out infinite;
}

.btn-download:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn-download .btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@keyframes download-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(175, 60, 67, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(175, 60, 67, 0);
  }
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* ——— Interview page ——— */
.interview-stack {
  width: min(100%, var(--panel-width));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fade-up 0.45s ease both;
}

.interview-hero,
.interview-copy {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.interview-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.interview-hero .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 1rem 0 1.25rem;
  max-width: 40rem;
}

.interview-hero .steps {
  margin-bottom: 1.35rem;
}

.interview-layout {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.interview-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.interview-copy .lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  flex: 1;
  border-top: 1px solid var(--border-light);
  max-width: 40rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-light);
}

.step-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.interview-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 1.25rem 1rem;
  box-shadow: none;
  overflow: hidden;
  max-width: 280px;
}

.phone-stage {
  position: relative;
  width: min(100%, 200px);
  aspect-ratio: 9 / 18.5;
  perspective: 900px;
}

.phone-frame {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  border-radius: 2.1rem;
  border: 2px solid #333;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.35rem;
  background: #0a0a0a;
  border-radius: 1rem;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0.55rem;
  top: 2.1rem;
  bottom: 0.55rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  padding: 0.85rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
}

.slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #ebf2fc;
  padding: 0.28rem 0.55rem;
  border-radius: 0;
  margin-bottom: 0.55rem;
  border-left: 3px solid var(--red);
}

.slide h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.slide p {
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.field {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.4rem;
}

.field label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.12rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field .value {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 600;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.22rem;
  margin-bottom: 0.65rem;
}

.cal-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  border-radius: 0;
  color: var(--ink-muted);
  background: var(--bg-soft);
}

.cal-grid .head {
  background: transparent;
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 0.5rem;
}

.cal-grid .picked {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.slot {
  font-size: 0.62rem;
  text-align: center;
  padding: 0.4rem 0.25rem;
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid transparent;
}

.slot.on {
  background: #ebf2fc;
  color: var(--navy);
  border-color: var(--navy);
}

.confirm-card {
  margin-top: 0.35rem;
  background: #fff;
  border-radius: 0;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--border-light);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.confirm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  background: #ebf2fc;
  display: grid;
  place-items: center;
  color: var(--navy);
  animation: pop 0.6s ease both;
}

.confirm-icon--wait {
  background: #f9e9ea;
  color: var(--red);
}

.confirm-card strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--ink);
}

.confirm-card small {
  font-size: 0.65rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.notify {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--navy);
  color: #fff;
  border-radius: 0;
  padding: 0.55rem 0.65rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
  animation: slide-in 0.5s ease 0.2s both;
}

.notify .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.notify div {
  font-size: 0.62rem;
  line-height: 1.35;
}

.notify strong {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.1rem;
}

.video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4rem;
  min-height: 0;
}

.video-tile {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #26374a;
  min-height: 0;
}

.video-tile:first-child {
  grid-column: 1 / -1;
}

.video-avatar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.video-face {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #4a627a, #26374a);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.video-face::before {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: #c5d0e0;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
}

.video-face::after {
  content: "";
  position: absolute;
  width: 58%;
  height: 36%;
  border-radius: 50% 50% 40% 40%;
  background: #c5d0e0;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.video-tile:nth-child(2) .video-face {
  background: linear-gradient(145deg, #3d5a73, #26374a);
}

.video-tile:nth-child(3) .video-face {
  background: linear-gradient(145deg, #af3c43, #822730);
}

.video-name {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 0;
}

.video-bar {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.video-bar i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.slide-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0;
  border: none;
  background: #b8b8b8;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.slide-dots button.is-active {
  width: 1.35rem;
  background: var(--navy);
}

/* ——— Modal ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(38, 55, 74, 0.55);
  backdrop-filter: none;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(100%, 420px);
  background: var(--panel);
  color: var(--ink);
  border-radius: 0;
  border-top: 4px solid var(--red);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(12px);
  transition: transform 0.28s ease;
  position: relative;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.modal .hint {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(40, 65, 98, 0.2);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  min-height: 2.75rem;
  box-shadow: none;
  font-size: 1rem;
  text-decoration: underline;
  border: 0;
}

.btn-ghost:hover {
  color: var(--link-hover);
  transform: none;
  box-shadow: none;
  background: transparent;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: var(--ink);
  background: #e6e6e6;
}

.form-error {
  display: none;
  color: var(--danger);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.form-error.is-visible {
  display: block;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ——— Install guide ——— */
.install-panel {
  width: min(100%, var(--panel-width));
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: fade-up 0.45s ease both;
  position: relative;
  overflow: visible;
}

.install-view[hidden] {
  display: none !important;
}

.install-view.is-active {
  display: block;
  animation: fade-up 0.35s ease both;
}

.install-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.install-lead {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  max-width: 40rem;
}

.install-hint {
  background: var(--bg-soft);
  border-left: 4px solid var(--navy);
  border-radius: 0;
  padding: 0.95rem 1rem;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
  max-width: 40rem;
}

.install-hint span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.install-progress {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.install-progress span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.install-progress-bar {
  height: 8px;
  border-radius: 0;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.install-progress-bar i {
  display: block;
  height: 100%;
  width: 9%;
  border-radius: 0;
  background: var(--navy);
  transition: width 0.3s ease;
}

.install-figure {
  margin: 0 auto 0.85rem;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 1px solid var(--border-light);
  outline: none;
  box-shadow: none;
  isolation: isolate;
  position: relative;
  width: min(100%, 100%);
  max-height: none;
  padding: 0.5rem;
  background: var(--bg-soft);
}

.install-figure::before {
  display: none;
}

.install-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border: 0;
  outline: 0;
  margin: 0;
  clip-path: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.install-caption {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
  min-height: 0;
  text-align: left;
  max-width: 40rem;
}

.install-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 28rem;
}

.btn-nav {
  min-height: 3rem;
  font-size: 1.05rem;
}

.btn-back {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn-back:hover:not(:disabled) {
  background: #e6e6e6;
}

.btn-back:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-next {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.btn-next:hover {
  background: var(--navy-deep);
}

/* ——— Unsubscribe ——— */
.unsub-panel {
  width: min(100%, var(--panel-width));
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: fade-up 0.45s ease both;
}

.unsub-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.65rem;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.unsub-lead {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  max-width: 40rem;
}

.unsub-email {
  display: block;
  margin: 0.35rem 0 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  background: var(--bg-soft);
  border-left: 4px solid var(--navy);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  word-break: break-all;
}

.unsub-form .form-group {
  margin-bottom: 1rem;
  max-width: 28rem;
}

.unsub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
  max-width: 28rem;
}

.unsub-success {
  text-align: left;
  padding: 0.5rem 0 0.25rem;
}

.unsub-success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 0.85rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #e6f2e8;
  color: #278400;
  border: 1px solid #278400;
}

.unsub-success h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.unsub-success p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.15rem;
  max-width: 36rem;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: none;
}

.btn-danger:hover {
  background: #a8060a;
  color: var(--white);
}

@media (max-width: 860px) {
  .interview-layout {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    width: min(100%, 220px);
  }

  .interview-visual {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }

  .site {
    padding: 1.15rem 0.85rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .fip-inner,
  .app-bar-inner,
  .site-footer-inner {
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .home-title,
  .install-title,
  .interview-hero h1,
  .unsub-panel h1 {
    font-size: 1.7rem;
  }

  .home-sub,
  .install-lead,
  .interview-hero .lead,
  .unsub-lead {
    font-size: 1.05rem;
  }

  .btn,
  .btn-stack .btn {
    min-height: 3rem;
    font-size: 1rem;
  }

  .btn-download {
    min-height: 3.1rem;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .interview-stack {
    width: 100%;
    gap: 1.15rem;
  }

  .phone-stage {
    width: min(56vw, 170px);
  }

  .install-figure {
    margin-bottom: 0.7rem;
    width: 100%;
  }

  .install-figure img {
    max-height: min(42vh, 340px);
  }

  .install-nav {
    position: sticky;
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    background: linear-gradient(180deg, transparent, var(--bg) 28%);
    padding-top: 0.5rem;
  }

  .modal {
    width: 100%;
    max-height: min(92vh, 640px);
    overflow: auto;
    padding: 1.35rem 1.1rem 1.15rem;
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .form-group input {
    min-height: 3.1rem;
    font-size: 16px;
  }

  .steps li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .home-kicker {
    font-size: 0.78rem;
  }

  .btn-download {
    font-size: 0.9rem;
  }

  .install-figure img {
    max-height: min(40vh, 300px);
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:active {
    filter: brightness(0.96);
  }
}

@supports (padding: max(0px)) {
  .modal-overlay {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-download {
    animation: none;
  }
}
