/* MyFont landing — Tailgrids Appspace layout + warm peach hero */

:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --ink: #111928;
  --ink-soft: #637381;
  --line: #e5e7eb;
  --accent: #b84a2e;
  --accent-hot: #e07a45;
  --accent-soft: #fff1ea;
  --accent-blue: #3758f9;
  --peach-light: #fff9f5;
  --peach-mid: #f8e6d8;
  --peach-deep: #f3d5c0;
  --peach-edge: #efc9ae;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 3px rgba(17, 25, 40, 0.04), 0 8px 24px rgba(17, 25, 40, 0.04);
  --shadow-phone: 0 24px 60px rgba(17, 25, 40, 0.18);
  --header-h: 72px;
  --font: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Playfair Display", Georgia, serif;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(17, 25, 40, 0.04);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-hot), var(--accent));
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

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

.btn-primary:hover {
  background: #2a46e0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — Tailgrids Appspace layout + warm peach gradient */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 4.5rem;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 95% 70% at 50% 6%, #ffffff 0%, rgba(255, 255, 255, 0.97) 36%, transparent 72%),
    radial-gradient(ellipse 120% 85% at 50% 120%, var(--peach-edge) 0%, var(--peach-deep) 22%, var(--peach-mid) 48%, var(--peach-light) 72%, #fffdfb 100%);
}

.hero-ripples {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 50% 108%,
      transparent 0,
      transparent 48px,
      rgba(255, 255, 255, 0.14) 49px,
      rgba(255, 255, 255, 0.14) 50px
    );
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: center;
  padding-bottom: 3.5rem;
}

.hero-copy {
  max-width: 34rem;
  padding-bottom: 0.5rem;
}

.hero-copy h1 {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: clamp(2.75rem, 5.2vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1.35rem;
}

.lead {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 168px;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #000;
}

.store-btn small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.15;
}

.store-btn strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.store-btn.light {
  background: #fff;
  color: var(--ink);
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stars {
  color: #f59e0b;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Light grey stage — half-cropped phone + two side screens */
.hero-mock {
  position: relative;
  width: min(100%, 480px);
  height: 540px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 32px;
  background: #f3f4f6;
  overflow: hidden;
  padding-top: 28px;
}

/* Rounded outline frames peeking left/right behind the phone */
.side-screen {
  position: absolute;
  top: 48px;
  width: 236px;
  height: auto;
  aspect-ratio: 200 / 420;
  color: #1f2937;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.side-screen-left {
  left: 50%;
  transform: translateX(calc(-50% - 70px)) rotate(-5.5deg);
  transform-origin: 50% 55%;
}

.side-screen-right {
  left: 50%;
  transform: translateX(calc(-50% + 70px)) rotate(5.5deg);
  transform-origin: 50% 55%;
}

.phone-hero {
  position: relative;
  z-index: 2;
  width: 268px;
  /* Extends past the stage so bottom (and a bit of top) crop */
  flex-shrink: 0;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  background: #0f1115;
  border-radius: 999px;
  z-index: 3;
}

.phone-hero .phone-screen {
  min-height: 560px;
  padding: 2rem 0.9rem 1rem;
  background: #f7f4f0;
}

.hero-screen-heroimg {
  height: 100px;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.35), transparent 55%),
    linear-gradient(145deg, #f5e6ef 0%, #e8e4f5 45%, #f0e2d8 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.hero-screen-script {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #9a4a2e;
  letter-spacing: 0.02em;
}

.screen-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.7rem;
  font-weight: 600;
}

.screen-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.screen-meta .meta-avatar {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #d4a574 0%, #8b5a3c 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.friend-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.friend-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.45rem;
}

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

.friend-avatars i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #f7f4f0;
  margin-left: -7px;
  display: block;
  background: linear-gradient(135deg, #f0b892, #b84a2e);
}

.friend-avatars i:first-child {
  margin-left: 0;
}

.friend-avatars i:nth-child(2) {
  background: linear-gradient(135deg, #93c5fd, #2563eb);
}

.friend-avatars i:nth-child(3) {
  background: linear-gradient(135deg, #86efac, #16a34a);
}

.avatar-more {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4b5563;
}

.add-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: #ebe7e2;
  color: #374151;
  font-size: 0.68rem;
  font-weight: 700;
  pointer-events: none;
}

.add-pill span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  line-height: 1;
  color: #111827;
}

.screen-divider {
  border-top: 1px dashed #d6d0c8;
  margin: 0.15rem 0 0.75rem;
}

.members-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
}

.members-row span:last-child {
  font-weight: 600;
  color: #6b7280;
}

.phone-hero .font-card {
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 2px rgba(17, 25, 40, 0.04);
}

.phone-hero .font-sample {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
}

.phone-hero .font-sample.cafe {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.35rem;
}

.phone-hero .font-meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.15rem;
}

.phone-hero .dock {
  display: none;
}

/* Phone shells */
.phone {
  position: relative;
  background: linear-gradient(160deg, #2a2e36 0%, #0f1115 40%, #0a0c10 100%);
  border-radius: 36px;
  padding: 9px;
  box-shadow:
    0 24px 50px rgba(17, 25, 40, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border: 1px solid #3a3f4a;
}

.phone-lg {
  width: 260px;
}

.phone-md {
  width: 228px;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
}

.phone-sm {
  width: 180px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  background: #0f1115;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #fbf7f2 0%, #f3ebe3 48%, #efe4d8 100%);
  min-height: 480px;
  padding: 2.1rem 1rem 1rem;
}

.phone-sm .phone-screen,
.compact-screen {
  min-height: 340px;
}

.phone-md .phone-screen {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 2rem 0.85rem 0.9rem;
  box-sizing: border-box;
}

.phone-md .canvas-area {
  flex: 1;
  height: auto;
  min-height: 280px;
}

.phone-md .imessage {
  flex: 1;
  min-height: 180px;
}

.phone-md .keyboard-pane {
  margin-top: auto;
}

.screen-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.screen-brand {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.screen-brand.small {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.screen-sub {
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin: 0.25rem 0 1rem;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 18px rgba(184, 74, 46, 0.28);
}

.pill-cta.compact {
  margin-top: 1rem;
}

.font-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-card);
}

.font-card.muted {
  opacity: 0.85;
}

.font-sample {
  display: block;
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.1;
}

.font-sample.cafe {
  font-family: var(--font-brand);
  font-weight: 600;
  font-style: italic;
  font-size: 1.35rem;
}

.font-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.dock {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.dock-item {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-radius: 10px;
}

.dock-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Trust band */
.trust-band {
  padding: 2.75rem 0 3.5rem;
  text-align: center;
}

.trust-title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.15rem;
}

.trust-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #4b5563;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.trust-meta strong {
  color: #111827;
}

.trust-star {
  color: #f59e0b;
  margin-left: 0.15rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background: linear-gradient(135deg, #f0b892, #b84a2e);
}

.avatar-stack span:nth-child(2) {
  background: linear-gradient(135deg, #a8c0ff, #3758f9);
}

.avatar-stack span:nth-child(3) {
  background: linear-gradient(135deg, #9be7c4, #2f9e6c);
}

.avatar-stack span:nth-child(4) {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

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

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.25rem;
  color: #374151;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  opacity: 1;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.85rem 0 0.85rem;
}

.section-head p {
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(55, 88, 249, 0.1);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 25, 40, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #6b7280;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Split / about */
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.mock-frame {
  display: grid;
  place-items: center;
  padding: 3.25rem 2rem;
  border-radius: var(--radius-lg);
  background: #eef1ff;
  box-shadow: var(--shadow-card);
  min-height: 0;
}

.mock-frame-alt {
  background: #fff1ea;
}

.split-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.split-copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(55, 88, 249, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233758F9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.text-link {
  color: var(--accent-blue);
  font-weight: 700;
}

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

/* Editor / keyboard screens */
.editor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.canvas-area {
  position: relative;
  height: 280px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #d6cfc6;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.canvas-area.small {
  height: 200px;
}

.guide-lines {
  position: absolute;
  inset: 18% 12%;
  border-top: 1px solid rgba(184, 74, 46, 0.25);
  border-bottom: 1px solid rgba(55, 88, 249, 0.35);
  opacity: 0.8;
}

.glyph-path {
  width: 70%;
  height: auto;
  position: relative;
  z-index: 1;
}

.tool-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tool-row span {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.55rem 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.imessage {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 160px;
  margin-bottom: 0.85rem;
}

.imessage.tight {
  min-height: 90px;
}

.bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  font-size: 0.82rem;
}

.bubble.them {
  align-self: flex-start;
  background: #e8e8ed;
}

.bubble.me {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
}

.bubble.handwritten {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.15rem;
}

.keyboard-pane {
  background: #d5d8de;
  border-radius: 14px;
  padding: 0.55rem;
}

.keyboard-pane.mini {
  padding: 0.4rem;
}

.key-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.key-row.tight {
  grid-template-columns: 1.2fr repeat(4, 1fr) 1.2fr;
}

.keyboard-pane.mini .key-row {
  grid-template-columns: repeat(4, 1fr);
}

.key-row span,
.space-bar {
  background: #fff;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  box-shadow: 0 1px 0 #8e939c;
}

.space-bar {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card h3 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step-card > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.step-visual {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  min-height: 180px;
  display: grid;
  place-items: center;
}

.mini-ui {
  width: 100%;
  max-width: 220px;
  display: grid;
  gap: 0.55rem;
}

.mini-btn {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ef4444;
}

.mini-profile {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 14px;
  background: #f8fafc;
}

.mini-profile strong {
  display: block;
  font-size: 0.85rem;
}

.mini-profile small {
  color: var(--ink-soft);
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1rem;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0b892, #b84a2e);
  flex-shrink: 0;
}

.avatar-sm.blue {
  background: linear-gradient(135deg, #a8c0ff, #3758f9);
}

.avatar-sm.green {
  background: linear-gradient(135deg, #9be7c4, #2f9e6c);
}

.avatar-sm.terracotta {
  background: linear-gradient(135deg, #f0b892, #b84a2e);
}

.mini-checks {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.mini-ui.chart .bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 90px;
  margin-bottom: 0.75rem;
}

.mini-ui.chart .bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #93a8ff, var(--accent-blue));
  display: block;
}

.mini-ui.chart .bars i:nth-child(1) { height: 40%; }
.mini-ui.chart .bars i:nth-child(2) { height: 65%; }
.mini-ui.chart .bars i:nth-child(3) { height: 50%; }
.mini-ui.chart .bars i:nth-child(4) { height: 85%; }
.mini-ui.chart .bars i:nth-child(5) { height: 70%; }

.mini-export {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Phone carousel */
.phone-carousel {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 0 2rem;
  overflow: hidden;
}

.phone-carousel .phone {
  flex-shrink: 0;
}

.phone-carousel .featured {
  z-index: 2;
  transform: translateY(-12px) scale(1.05);
}

.tilt-left {
  transform: rotate(-6deg) translateY(18px);
  opacity: 0.92;
}

.tilt-right {
  transform: rotate(6deg) translateY(18px);
  opacity: 0.92;
}

.screen-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.format-chip {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.format-chip.active {
  outline: 2px solid var(--accent);
  background: #fff;
}

.preview-sample {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.preview-sample.secondary {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.slider {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 55%, #e5e7eb 55%);
  margin-top: 1.5rem;
}

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quote-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.quote-card p {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.quote-card footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quote-card strong {
  display: block;
  font-size: 0.92rem;
}

.quote-card small {
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.35rem 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 0;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-blue);
  font-size: 1.25rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 1rem;
}

/* CTA */
.cta-band {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, #fff 0%, transparent 55%),
    linear-gradient(180deg, #fff4eb 0%, #f0b892 100%);
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 16rem;
  color: #94a3b8;
}

.site-footer .logo-text {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  color: #94a3b8;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(55, 88, 249, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 40;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* Legal pages */
.legal-page {
  padding: 3.5rem 0 5rem;
  background: #fff;
}

.legal-wrap {
  max-width: 720px;
}

.legal-eyebrow {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.legal-eyebrow a {
  color: var(--ink-soft);
}

.legal-eyebrow a:hover {
  color: var(--accent);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
}

.legal-lead {
  font-size: 1.15rem;
  color: #1f2937 !important;
  font-weight: 500;
  margin-bottom: 2rem !important;
}

.legal-article h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
  color: #111827;
}

.legal-page article p {
  color: #4b5563;
  margin-bottom: 0.85rem;
  max-width: 42rem;
  line-height: 1.7;
}

.legal-next {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-visual {
    animation-delay: 0.12s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .feature-card,
  .step-card,
  .quote-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid,
  .steps-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-carousel .tilt-left,
  .phone-carousel .tilt-right {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid,
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy {
    max-width: none;
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mock {
    width: min(100%, 360px);
    height: 420px;
    padding-top: 20px;
  }

  .side-screen {
    top: 32px;
    width: 180px;
  }

  .side-screen-left {
    transform: translateX(calc(-50% - 52px)) rotate(-5.5deg);
  }

  .side-screen-right {
    transform: translateX(calc(-50% + 52px)) rotate(5.5deg);
  }

  .phone-hero {
    width: 210px;
  }

  .phone-hero .phone-screen {
    min-height: 460px;
  }

  .hero-actions,
  .store-row {
    width: 100%;
  }

  .store-btn {
    flex: 1 1 auto;
  }

  .phone-carousel {
    gap: 0.65rem;
  }

  .phone-sm {
    width: 150px;
  }

  .phone-carousel .featured {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .steps-grid,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .phone-carousel .phone-sm:not(.featured) {
    display: none;
  }

  .logo-cloud {
    gap: 0.65rem 1rem;
    font-size: 0.78rem;
  }

  .header-actions .btn-primary {
    display: none;
  }
}
