:root {
  --bg: #f6f5f7;
  --bg-soft: #ecebef;
  --surface: #ffffff;
  --text: #0e1b2a;
  --text-muted: #5b6573;
  --coral: #ff7a66;
  --coral-strong: #ff624a;
  --coral-soft: #ffe7e1;
  --amber: #f7c47a;
  --amber-soft: #fdeccd;
  --mint: #88c8b8;
  --mint-soft: #d8efe7;
  --violet: #a99bd6;
  --violet-soft: #e6e0f4;
  --border: #e7e4ea;
  --shadow-card: 0 10px 30px rgba(20, 20, 40, 0.06);
  --shadow-phone: 0 30px 60px rgba(20, 30, 60, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.small {
  font-size: 13px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(246, 245, 247, 0.75);
  border-bottom: 1px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-wordmark {
  height: 30px;
  width: auto;
  display: block;
}

.brand-name-accent {
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}

.primary-nav a {
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.primary-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-pill {
  border-radius: 999px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 102, 0.35);
}

.btn-primary:hover {
  background: var(--coral-strong);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-dark {
  background: #0e1b2a;
  color: #fff;
}

.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.apple-logo {
  display: inline-grid;
  place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 32px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 500px at 85% 30%,
      rgba(255, 200, 188, 0.55),
      transparent 60%
    ),
    radial-gradient(700px 500px at 0% 0%, rgba(214, 220, 255, 0.45), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-soft);
  color: var(--coral-strong);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}

.pill-spark {
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 22px;
  font-weight: 800;
}

.accent {
  color: var(--coral);
}

.lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 460px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.proof-text .stars {
  color: #f5b400;
  letter-spacing: 2px;
  font-size: 14px;
}

.proof-text .muted {
  font-size: 14px;
  margin-top: 2px;
}

/* ---------- Hero visual (phones) ---------- */
.hero-visual {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: 270px;
  height: 560px;
  background: #0b0d12;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
}

.phone-before {
  left: 0;
  top: 30px;
  transform: rotate(-2deg);
}

.phone-after {
  right: 0;
  top: 0;
  transform: rotate(2deg);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #0b0d12;
  border-radius: 14px;
  z-index: 4;
}

.phone-top {
  position: relative;
  padding: 18px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 22px;
}

.phone-back,
.phone-share,
.phone-heart {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f1f4;
  color: var(--text);
  font-size: 14px;
}

.room-photo {
  flex: 1;
  margin: 0 14px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.room-empty {
  background: linear-gradient(180deg, #d0c7bd 0%, #b8a896 50%, #a08b76 100%);
}

.room-empty .window {
  position: absolute;
  top: 18%;
  left: 14%;
  width: 38%;
  height: 38%;
  background: linear-gradient(180deg, #cfe6f7, #f5e8d4);
  border: 6px solid #f4ede4;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.room-empty .radiator {
  position: absolute;
  bottom: 18%;
  left: 18%;
  width: 30%;
  height: 8%;
  background: #ece2d4;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-styled {
  background: linear-gradient(180deg, #c7d4c3 0%, #b8c5b1 60%, #d8c8b3 100%);
}

.room-styled .sofa {
  position: absolute;
  bottom: 22%;
  left: 18%;
  width: 64%;
  height: 22%;
  background: linear-gradient(180deg, #efe6d6, #d9cab2);
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.room-styled .frame {
  position: absolute;
  top: 18%;
  width: 22%;
  height: 26%;
  background: #f1e9da;
  border: 3px solid #d4c2a4;
  border-radius: 3px;
}

.room-styled .frame-a {
  left: 28%;
}

.room-styled .frame-b {
  left: 54%;
}

.room-styled .plant {
  position: absolute;
  right: 8%;
  bottom: 22%;
  width: 18%;
  height: 30%;
  background: radial-gradient(circle at 50% 30%, #6c9b73 0 60%, transparent 61%),
    linear-gradient(180deg, transparent 60%, #b89070 60% 100%);
}

.room-styled .lamp {
  position: absolute;
  top: 6%;
  right: 30%;
  width: 14%;
  height: 14%;
  background: radial-gradient(circle at 50% 60%, #f7e7c1 0 50%, transparent 51%);
}

.phone-card {
  margin: 14px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f1eef2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.phone-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coral-soft);
  display: grid;
  place-items: center;
}

.phone-card-title {
  font-weight: 700;
  font-size: 14px;
}

.phone-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.style-chips {
  display: flex;
  gap: 6px;
  padding: 12px 14px 6px;
  overflow: hidden;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f1f4;
  color: var(--text);
}

.chip-active {
  background: var(--coral);
  color: #fff;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 14px 12px;
}

.thumb {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4d9d2, #b8c3b3);
}

.thumb:nth-child(2) {
  background: linear-gradient(135deg, #e3d6c2, #c6b496);
}

.thumb:nth-child(3) {
  background: linear-gradient(135deg, #d8e0d6, #b4c4b8);
}

.thumb:nth-child(4) {
  background: linear-gradient(135deg, #ead7c5, #cdb59a);
}

.phone-generate {
  margin: 0 14px 16px;
  padding: 12px 0;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(255, 122, 102, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  left: 50%;
  bottom: 32%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(255, 122, 102, 0.3);
  z-index: 5;
}

/* ---------- Feature cards ---------- */
.features {
  padding: 24px 0 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.icon-coral {
  background: var(--coral-soft);
  color: var(--coral);
}
.icon-amber {
  background: var(--amber-soft);
  color: #d99a35;
}
.icon-mint {
  background: var(--mint-soft);
  color: #2f8f76;
}
.icon-violet {
  background: var(--violet-soft);
  color: #6f5fb7;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Trust band ---------- */
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.laurel {
  color: #d4a85c;
  font-size: 24px;
}

.laurel-flip {
  transform: scaleX(-1);
}

.trust-text {
  text-align: center;
}

.trust-line {
  font-weight: 700;
  font-size: 14px;
}

.trust-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
}

.trust-score {
  font-weight: 800;
}

.stars {
  color: #f5b400;
  letter-spacing: 2px;
}

/* ---------- Generic sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #fff;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-card);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pricing-card-pro {
  background: linear-gradient(180deg, #fff5f1, #ffffff);
  border-color: #ffd5cc;
}

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.checks li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 15px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--coral);
  font-weight: 800;
}

/* ---------- Final CTA ---------- */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, #fff, #ffe7e1);
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-cta .cta-row {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.brand-footer .brand-name {
  font-size: 18px;
}

.brand-footer .brand-wordmark {
  height: 24px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 40px 0 80px;
}

.legal-container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin: 14px 0 6px;
  line-height: 1.05;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0 36px;
  box-shadow: var(--shadow-card);
}

.legal-toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
}

.legal-toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--coral);
}

.legal section {
  margin: 36px 0;
  scroll-margin-top: 90px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.65;
  color: #2a3441;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal code {
  background: #f2eff4;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal a {
  color: var(--coral-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .btn a,
.legal .btn {
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal table th,
.legal table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal table th {
  background: #faf8fb;
  font-weight: 700;
}

.legal table tr:last-child td {
  border-bottom: none;
}

.legal-back {
  margin-top: 48px;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* ---------- Auth / delete-account page ---------- */
.auth-page {
  position: relative;
  padding: 56px 0 80px;
  min-height: 70vh;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      700px 400px at 80% 0%,
      rgba(255, 200, 188, 0.45),
      transparent 60%
    ),
    radial-gradient(600px 400px at 0% 100%, rgba(214, 220, 255, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 14px 0 6px;
}

.auth-card .muted {
  font-size: 15px;
  margin: 0 0 22px;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-btn {
  width: 100%;
  justify-content: center;
  background: #fff;
}

.auth-or {
  position: relative;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 4px 0;
}

.auth-or::before,
.auth-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.auth-or::before {
  left: 0;
}

.auth-or::after {
  right: 0;
}

.auth-or span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #faf9fb;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #9aa3b1;
  font-weight: 400;
}

.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 122, 102, 0.15);
}

.auth-form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

.auth-foot {
  text-align: center;
  margin-top: 6px;
}

.auth-foot a {
  color: var(--coral-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-error {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fff1ee;
  color: #b3331b;
  border: 1px solid #f5cdc4;
  border-radius: 12px;
  font-size: 14px;
}

.pill-danger {
  background: #fff1ee;
  color: #b3331b;
}

.callout {
  background: #fff8f6;
  border: 1px solid #f5d6cb;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 8px 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.callout ul {
  margin: 0;
  padding-left: 20px;
}

.callout li {
  margin: 4px 0;
}

.btn-danger {
  background: #d9352a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 53, 42, 0.32);
}

.btn-danger:hover {
  background: #b9281e;
}

.btn-danger:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.auth-row .btn {
  flex: 1 1 200px;
  justify-content: center;
}

.g-logo {
  display: inline-grid;
  place-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    padding: 16px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    height: 540px;
  }
  .phone {
    width: 230px;
    height: 480px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .primary-nav {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 14px 20px;
  }
  .brand-name {
    font-size: 18px;
  }
  .nav-cta {
    padding: 8px 16px;
    font-size: 14px;
  }
  .hero-visual {
    height: 460px;
  }
  .phone {
    width: 195px;
    height: 410px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 28px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .btn-lg {
    padding: 14px 22px;
    font-size: 15px;
  }
}
