/* ------------------------------------------------------------
   TileWizard marketing site
   ------------------------------------------------------------ */

:root {
  --red: #e53238;
  --blue: #0064d2;
  --blue-dark: #0050a8;
  --yellow: #f5af02;
  --green: #86b817;
  --navy: #0b0b4f;

  --text: #14163a;
  --muted: #5b6079;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --border: #e1e6f2;
  --tint-blue: #e8f1fd;
  --tint-yellow: #fff6d9;
  --tint-red: #fdeaea;
  --tint-green: #f0f7dc;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 11, 79, .06), 0 8px 24px rgba(11, 11, 79, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

/* Four-color brand stripe */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--green) 75% 100%);
}

/* Soft brand-color orbs behind the page content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 38vmax at 6% 10%, rgba(229, 50, 56, .13), transparent 70%),
    radial-gradient(circle 42vmax at 94% 24%, rgba(0, 100, 210, .14), transparent 70%),
    radial-gradient(circle 40vmax at 84% 94%, rgba(245, 175, 2, .16), transparent 70%),
    radial-gradient(circle 40vmax at 10% 88%, rgba(134, 184, 23, .15), transparent 70%);
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
.nav .btn, .nav .btn:hover { color: #fff; }
.btn:hover { background: var(--blue-dark); color: #fff; }

/* ---------- App Store badge ---------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  color: #fff;
  background: #000;
  border-radius: 11px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.appstore-badge:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.appstore-badge svg { width: 28px; height: 28px; flex: none; }
.appstore-badge span { display: block; line-height: 1.1; text-align: left; }
.appstore-badge .small { font-size: 11px; letter-spacing: .01em; }
.appstore-badge .big { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }

/* "Coming soon" variant: outlined, not a link */
.appstore-badge.soon {
  color: var(--text);
  background: rgba(255, 255, 255, .7);
  border: 1.5px dashed #b9c1d9;
  cursor: default;
}
.appstore-badge.soon:hover { color: var(--text); transform: none; box-shadow: none; }

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

.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, var(--tint-blue), transparent 70%),
    radial-gradient(600px 320px at 5% 100%, var(--tint-yellow), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--tint-blue);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.hero h1 em { font-style: normal; color: var(--blue); }

.lede {
  max-width: 34em;
  margin: 22px 0 32px;
  font-size: 19px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.cta-note { font-size: 14px; color: var(--muted); }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 2px 4px rgba(11, 11, 79, .12), 0 30px 60px rgba(11, 11, 79, .28);
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
}
.section-head p { margin: 14px 0 0; color: var(--muted); }

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

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }

.step-num, .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
}
.step-num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
}
.icon svg { width: 22px; height: 22px; }
.icon.blue { background: var(--tint-blue); color: var(--blue); }
.icon.yellow { background: var(--tint-yellow); color: #a87700; }
.icon.red { background: var(--tint-red); color: var(--red); }
.icon.green { background: var(--tint-green); color: #5c8200; }

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

.pricing { max-width: 1040px; margin: 0 auto; }
.plan { position: relative; }
.plan.featured {
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow), 0 12px 32px rgba(245, 175, 2, .18);
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, #ffd45c, var(--yellow));
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(245, 175, 2, .35);
}
.plan h3 { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .price {
  margin: 6px 0 4px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul {
  margin: 20px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.plan li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.pricing-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Closing CTA ---------- */

.cta-band {
  padding: 80px 0;
  color: #fff;
  background: var(--navy);
  text-align: center;
}
.cta-band img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.cta-band h2 {
  margin: 22px 0 10px;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
}
.cta-band p { margin: 0 0 30px; color: #c3c7ee; }
.cta-band .appstore-badge { border: 1px solid rgba(255, 255, 255, .35); }
.cta-band .cta-row { justify-content: center; }
.cta-band .appstore-badge.soon,
.cta-band .appstore-badge.soon:hover {
  color: #fff;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, .45);
}

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

.site-footer {
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.fine {
  flex-basis: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* ---------- Policy page ---------- */

.page-head {
  padding: 56px 0 44px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 800; }
.page-head .updated { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 14px;
}
.toc h2 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--border); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 5px 0 5px 14px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.policy { max-width: 720px; font-size: 16px; line-height: 1.7; }
.policy h2 { margin: 44px 0 12px; font-size: 22px; font-weight: 700; }
.policy h3 { margin: 20px 0 12px; font-size: 18px; font-weight: 700; }
.policy p { margin: 0 0 14px; }
.policy ul, .policy ol { margin: 4px 0 16px; padding-left: 24px; }
.policy li { margin-bottom: 6px; }

.callout {
  margin: 0 0 8px;
  padding: 18px 22px;
  background: var(--tint-blue);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.table-wrap {
  margin: 8px 0 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.kv { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.kv th, .kv td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }
.kv th { width: 30%; min-width: 150px; font-weight: 600; background: var(--bg-soft); }

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 64px;
    text-align: center;
  }
  .hero-art { order: -1; width: 200px; }
  .lede { margin-left: auto; margin-right: auto; font-size: 17px; }
  .cta-row { justify-content: center; }
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .toc ol { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .appstore-badge, .btn { transition: none; }
}
