/* ==========================================================================
   SatSun Tech — site stylesheet
   One file for every page. Brand themes switch via a class on <body>:
     (none)           SatSun teal
     .theme-talentup  TalentUp violet (CBSE maths apps)
     .theme-marksup   MarksUp terracotta (TN State Board maths)
   ========================================================================== */

:root {
  /* SatSun brand */
  --brand: #0f9d8a;
  --brand-dark: #0b7668;
  --brand-ink: #10383b;
  --brand-soft: #e6f6f2;
  --brand-glow: rgba(15, 157, 138, 0.16);

  /* Neutrals */
  --bg: #fbfdfc;
  --surface: #ffffff;
  --surface-2: #f3f8f6;
  --text: #15282c;
  --text-2: #4d6368;
  --text-3: #7b8d91;
  --line: #e2ebe8;
  --line-strong: #c9d8d3;

  /* Type */
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(21, 40, 44, 0.06), 0 4px 12px rgba(21, 40, 44, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 40, 44, 0.09);
  --shadow-lg: 0 24px 60px rgba(21, 40, 44, 0.14);

  /* Layout */
  --container: 1120px;
  --nav-h: 76px;
}

.theme-talentup {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --brand-ink: #2e1065;
  --brand-soft: #f1ebfd;
  --brand-glow: rgba(109, 40, 217, 0.14);
}

.theme-marksup {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-ink: #431407;
  --brand-soft: #fdeee4;
  --brand-glow: rgba(194, 65, 12, 0.14);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.container-narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--brand-ink);
  color: #fff;
  border-radius: var(--r-sm);
}

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

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-sub {
  color: var(--text-3);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-decoration: none;
}

.nav-links .nav-cta {
  margin-left: 0.5rem;
  color: #fff;
  background: var(--brand);
}

.nav-links .nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* --------------------------------------------------------------------------
   Buttons, badges, pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

.btn-outline:hover {
  border-color: var(--text-3);
}

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

.btn-sm {
  min-height: 40px;
  padding: 0.6rem 1.1rem;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 54px;
  padding: 1rem 1.7rem;
  font-size: 1.05rem;
}

/* Store buttons: black, two-line, like the official badges.
   Swap the inner markup for the official SVG badges when you add them
   (Google: play.google.com/intl/en_us/badges · Apple: developer.apple.com/app-store/marketing/guidelines). */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  background: #000;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-btn.is-web {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

.store-btn.is-web:hover {
  background: var(--surface-2);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.pill-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.pill-soon {
  background: #fff4e5;
  color: #9a3412;
}

.pill-dev {
  background: #eef2ff;
  color: #3730a3;
}

.pill-neutral {
  background: var(--surface-2);
  color: var(--text-2);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.meta-row span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sections and layout helpers
   -------------------------------------------------------------------------- */

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--surface-2);
}

.section-ink {
  background: var(--brand-ink);
  color: #e9f4f2;
}

.section-ink .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.section-ink a {
  color: #fff;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-2);
}

.section-ink .section-head p {
  color: rgba(233, 244, 242, 0.8);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 56ch;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.split-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(60% 80% at 100% 0%, var(--brand-glow), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, var(--brand-glow), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-text {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card {
  color: inherit;
  display: block;
}

a.card:hover,
.card.is-hoverable:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card > .pill {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.card-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.card-ink {
  background: var(--brand-ink);
  border-color: transparent;
  color: #e9f4f2;
}

.card-ink h3 {
  color: #fff;
}

.card-ink p {
  color: rgba(233, 244, 242, 0.82);
}

.card-ink .card-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Product cards (home page) */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .product-body {
  flex: 1;
}

.product-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}

.product-card li {
  position: relative;
  padding-left: 1.3rem;
  margin: 0.35rem 0;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.product-logo {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.product-logo.tu {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.product-logo.mu {
  background: linear-gradient(135deg, #ea580c, #9a3412);
}

.product-logo.mc {
  background: linear-gradient(135deg, #0ea5a4, #0b7668);
}

.product-logo.mh {
  background: linear-gradient(135deg, #0891b2, #155e75);
}

.product-logo.mp {
  background: linear-gradient(135deg, #4a90d9, #1d4ed8);
}

/* Feature list with icons */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.feature p {
  color: var(--text-2);
  font-size: 0.97rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--text-2);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.stat span {
  color: var(--text-2);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Phone frames / screenshots
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.2;
  margin-inline: auto;
  padding: 10px;
  border-radius: 40px;
  background: #0d1416;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3a3d;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: var(--brand-soft);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Placeholder shown until a real screenshot is added */
.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--brand-glow), transparent),
    linear-gradient(180deg, var(--brand-soft), #fff);
  color: var(--brand-dark);
}

.phone-placeholder strong {
  font-size: 1rem;
}

.phone-placeholder span {
  font-size: 0.8rem;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

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

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.gallery .phone {
  max-width: 250px;
}

.hero-composite {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(21, 40, 44, 0.18));
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-card {
  padding: 2rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  border-color: var(--brand);
  box-shadow: 0 16px 40px var(--brand-glow);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.75rem 0 0.5rem;
}

.price strong {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  color: var(--text-2);
}

.price-card ul {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  color: var(--text-2);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b7668' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.theme-talentup .price-card li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234c1d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.theme-marksup .price-card li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%239a3412' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.fine-print {
  font-size: 0.88rem;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   FAQ (details/summary)
   -------------------------------------------------------------------------- */

.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  transition: transform 0.2s ease;
}

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

.faq details p,
.faq details ul {
  padding-bottom: 1.1rem;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Callouts, notices
   -------------------------------------------------------------------------- */

.callout {
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  border: 1px solid transparent;
}

.callout.is-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.callout.is-neutral {
  background: var(--surface-2);
  border-color: var(--line);
}

.callout p {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
  display: grid;
  gap: 1.1rem;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-card dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-card dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Legal / long-form pages
   -------------------------------------------------------------------------- */

.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg));
}

.page-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  color: var(--text-3);
  font-size: 0.92rem;
}

.prose {
  padding: 3rem 0 5rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
}

.prose .notice {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  margin-bottom: 2rem;
}

.prose .notice p,
.prose .notice li {
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
}

.prose th {
  background: var(--surface-2);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose .box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 1rem 0;
}

.prose section#delete-account {
  padding: 0.25rem 1.5rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border: 1px solid transparent;
  margin: 1.5rem 0;
}

.prose section#delete-account h2 {
  margin-top: 1.4rem;
}

.toc {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.95rem;
}

.toc li {
  break-inside: avoid;
  margin: 0.2rem 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 4rem 0 2rem;
  background: #10383b;
  color: #cfe3df;
}

.theme-talentup .site-footer {
  background: #1e1038;
  color: #d9d0ee;
}

.theme-marksup .site-footer {
  background: #3b1a0e;
  color: #ead9cf;
}

.site-footer a {
  color: inherit;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-brand address {
  font-style: normal;
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-col h4 {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .store-btn {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .grid-4,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-composite {
    max-width: 520px;
  }

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

@media (max-width: 860px) {
  :root {
    --nav-h: 66px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0.9rem;
    border-radius: var(--r-sm);
  }

  .nav-links .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .split,
  .split-wide,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero .phone {
    max-width: 230px;
  }

  .section {
    padding: 4rem 0;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .stats,
  .gallery,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .card,
  .price-card,
  .contact-card {
    padding: 1.4rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #666;
  }
}
