/* SantaTexting.com — festive deep reds & golds, cream backgrounds.
   Chat styling matches the approved phone mockup. */

:root {
  --red: #9e1b23;
  --red-bright: #b3232c;
  --deep-red: #6e1018;
  --gold: #b0862f;
  --gold-light: #cba44a;
  --cream: #fbf6e9;
  --cream-dark: #f4ead2;
  --ink: #3a2c1e;
  --green: #22542e;
  --card-shadow: 0 4px 18px rgba(110, 16, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}
h1, h2, h3, .brand-name { font-family: Georgia, serif; }
a { color: var(--red); }
.hidden { display: none !important; }
.center { text-align: center; }
.fineprint { font-size: 0.85rem; color: #7a6a55; text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 1rem;
  background: linear-gradient(180deg, var(--red-bright), var(--deep-red));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold-light); object-fit: cover; }
.brand-name { color: #fff; font-size: 1.35rem; font-weight: bold; letter-spacing: 0.3px; }
.brand-name em { color: var(--gold-light); font-style: normal; }
.site-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: #ffe9c9; text-decoration: none; font-size: 0.98rem; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-nav .nav-cta {
  background: var(--gold); color: #fff !important; padding: 0.35rem 0.9rem;
  border-radius: 999px; font-weight: bold; text-decoration: none !important;
}
.site-nav .nav-owner { opacity: 0.75; font-size: 0.88rem; }

main { max-width: 1080px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.view-title { color: var(--deep-red); text-align: center; font-size: 2rem; margin: 0.4rem 0; }
.view-sub { text-align: center; max-width: 640px; margin: 0.2rem auto 1.4rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; padding: 1.5rem 0 2rem; }
.hero h1 { font-size: 2.7rem; line-height: 1.15; color: var(--deep-red); margin: 0 0 0.8rem; }
.hero h1 .gold { color: var(--gold); }
.hero-sub { font-size: 1.13rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem 0 0.7rem; }
.hero-note { font-size: 0.9rem; color: #7a6a55; }
.hero-photo { position: relative; text-align: center; }
.hero-photo img {
  max-width: 100%; max-height: 520px; border-radius: 18px;
  border: 4px solid var(--gold); box-shadow: var(--card-shadow); object-fit: cover;
}
.hero-badge {
  position: absolute; right: 6%; bottom: 8%;
  background: var(--red); color: #fff; border: 2px solid var(--gold-light);
  border-radius: 12px; padding: 0.45rem 0.8rem; font-weight: bold; transform: rotate(-4deg);
  box-shadow: var(--card-shadow);
}
.hero-badge small { font-weight: normal; opacity: 0.85; }

/* buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 1rem; padding: 0.6rem 1.3rem; border-radius: 999px;
  background: var(--red); color: #fff; transition: transform 0.08s ease, background 0.15s;
}
.btn:hover { background: var(--red-bright); }
.btn:active { transform: scale(0.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #fff; font-weight: bold; }
.btn-gold:hover { background: linear-gradient(180deg, var(--gold), #96702a); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: #f7e8e8; }
.btn-big { font-size: 1.12rem; padding: 0.8rem 1.8rem; }
.btn-block { display: block; width: 100%; margin-top: 1rem; }
.link-btn { background: none; border: none; color: #ffe9c9; cursor: pointer; font-size: 0.85rem; text-decoration: underline; margin-left: auto; }

/* sections + cards */
.steps, .pricing, .promise { padding: 1.6rem 0; }
.steps h2, .pricing h2, .promise h2 { text-align: center; color: var(--deep-red); font-size: 1.9rem; }
.step-grid, .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.2rem; }
.step-card, .price-card, .card {
  background: #fff; border: 1px solid #ecd9ae; border-radius: 16px;
  padding: 1.3rem; box-shadow: var(--card-shadow);
}
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: bold;
  border: 2px solid var(--gold-light);
}
.step-card h3, .price-card h3 { color: var(--deep-red); margin: 0.7rem 0 0.4rem; }
.price-card { text-align: center; position: relative; }
.price-card .price { font-size: 2.1rem; font-weight: bold; color: var(--gold); }
.price-card .price small { font-size: 1rem; }
.price-card.featured { border: 2px solid var(--gold); background: #fffdf4; }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 0.15rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: bold;
}
.promise { max-width: 760px; margin: 0 auto; text-align: center; }
.card { max-width: 680px; margin: 0 auto 1.2rem; }
.card h3 { color: var(--deep-red); margin-top: 0.4rem; }

/* forms */
label { display: block; margin: 0.7rem 0; font-weight: bold; font-size: 0.95rem; }
label small { display: block; font-weight: normal; color: #7a6a55; margin-top: 0.2rem; }
input, select, textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.62rem 0.75rem; font-size: 1rem; font-family: inherit;
  border: 1.5px solid #d8c491; border-radius: 10px; background: #fffdf7; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.child-card { border: 1.5px dashed #d8c491; border-radius: 14px; padding: 1rem; margin: 1rem 0; background: #fffdf7; }
.child-card h4 { margin: 0 0 0.4rem; color: var(--red); display: flex; justify-content: space-between; align-items: center; }
.child-card .remove-child { font-size: 0.8rem; }
.addon-row { display: flex; gap: 0.6rem; align-items: flex-start; background: #fdf3d8; border-radius: 10px; padding: 0.55rem 0.7rem; margin: 0.45rem 0; }
.addon-row input { width: auto; margin-top: 0.25rem; }
.addon-row .was { text-decoration: line-through; color: #a08b62; font-size: 0.88rem; }
.form-error { background: #fbe4e4; border: 1px solid #e5a3a3; color: #7d1414; border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.8rem 0; }
.form-ok { background: #e6f4e6; border: 1px solid #9dc79d; color: var(--green); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.8rem 0; }

/* order summary */
.summary-line { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dotted #e3d3a8; font-size: 0.97rem; }
.summary-line.discount { color: var(--green); font-weight: bold; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: bold; color: var(--deep-red); padding: 0.6rem 0 0.2rem; }
.coupon-row { display: flex; gap: 0.6rem; margin: 1rem 0 0.3rem; }
.coupon-row input { flex: 1; }
#paypal-buttons { margin-top: 1rem; min-height: 50px; }
.success { text-align: center; }
.family-code {
  font-family: "Courier New", monospace; font-size: 1.9rem; font-weight: bold; letter-spacing: 2px;
  color: var(--deep-red); background: var(--cream-dark); border: 2px dashed var(--gold);
  border-radius: 12px; padding: 0.7rem; margin: 0.6rem auto; max-width: 420px;
}
.download-btn { display: inline-block; margin: 0.35rem; }

/* phone chat (per the approved mockup) */
.phone {
  max-width: 430px; margin: 0 auto; background: #fff;
  border-radius: 22px; overflow: hidden; box-shadow: 0 10px 34px rgba(110, 16, 24, 0.25);
  border: 1px solid #e9dcc0; display: flex; flex-direction: column; height: min(72vh, 640px);
}
.phone-header {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  border-bottom: 3px solid var(--gold);
  color: #fff; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem;
}
.phone-header img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold-light); object-fit: cover; }
.phone-name { font-weight: bold; font-size: 1.12rem; line-height: 1.15; }
.phone-status { font-size: 0.85rem; color: #ffd9a8; }
.sample-chip { margin-left: auto; background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: bold; padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 1px; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 1rem 0.8rem;
  background: var(--cream); display: flex; flex-direction: column; gap: 0.55rem;
}
.bubble {
  max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 18px; font-size: 1.02rem;
  line-height: 1.4; white-space: pre-wrap; word-wrap: break-word;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.bubble.santa { background: #fff; color: #222; align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.10); }
.bubble.child { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble.typing { color: #a08b62; letter-spacing: 3px; }
.chat-input-row { display: flex; gap: 0.55rem; padding: 0.6rem; background: #f3ecd9; border-top: 1px solid #e5d9b8; }
.chat-input-row input { flex: 1; border-radius: 999px; margin-top: 0; border-color: #ddd0ac; background: #fff; }
.send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: var(--red); color: #fff; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
}
.send-btn:hover { background: var(--red-bright); }

.child-switcher { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.child-switcher button {
  border: 2px solid var(--gold); background: #fff; color: var(--deep-red); border-radius: 999px;
  padding: 0.4rem 1rem; font-family: inherit; font-size: 0.98rem; cursor: pointer; font-weight: bold;
}
.child-switcher button.active { background: var(--red); color: #fff; border-color: var(--red); }
.downloads-card { margin-top: 1.4rem; text-align: center; }
.demo-cta { margin-top: 1.3rem; }

/* owner */
.owner-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.tab {
  border: 2px solid var(--gold); background: #fff; color: var(--deep-red); border-radius: 999px;
  padding: 0.45rem 1.2rem; font-family: inherit; font-size: 1rem; cursor: pointer; font-weight: bold;
}
.tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.tab-panel { max-width: 900px; margin: 0 auto; }
table.owner-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); font-size: 0.92rem; }
table.owner-table th { background: var(--deep-red); color: #ffe9c9; text-align: left; padding: 0.55rem 0.7rem; }
table.owner-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #eee0bd; vertical-align: top; }
.status-chip { display: inline-block; padding: 0.08rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: bold; }
.status-active { background: #dff0df; color: var(--green); }
.status-pending { background: #fdf3d8; color: #8a6d1f; }
.status-inactive { background: #f3d9d9; color: #7d1414; }
.status-paid { background: #dff0df; color: var(--green); }
.status-awaiting_payment { background: #fdf3d8; color: #8a6d1f; }
.mini-btn { font-size: 0.82rem; padding: 0.28rem 0.7rem; }
.owner-conv { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; }

.site-footer {
  text-align: center; padding: 1.6rem 1rem 2.2rem; color: #ffe9c9;
  background: linear-gradient(180deg, var(--red), var(--deep-red)); border-top: 3px solid var(--gold);
}
.site-footer .fineprint { color: #e8cf9f; }

/* mobile */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: 2.1rem; }
  .step-grid, .price-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.12rem; }
  .site-nav { gap: 0.6rem; font-size: 0.92rem; }
  table.owner-table { font-size: 0.82rem; }
  .phone { height: 68vh; }
}
