/* ---- Terms of Service / subscription pricing page.
       Page-specific styles only (prefix .tos-). Shared styles.css supplies the
       brand tokens, header, support band and footer and is NOT modified. ---- */

:root { --tos-green: #00d084; --tos-green-ink: #04734b; --tos-sky: #0693e3; }
html { scroll-padding-top: 70px; }
.tos-wrap { width: 100%; padding-inline: max(16px, calc((100% - 1120px) / 2)); }

/* ---------- Hero ---------- */
.tos-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(30px, 4.4vw, 52px);
  padding-bottom: clamp(64px, 7vw, 84px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 30%, rgb(17 129 199 / .26), transparent 36%),
    linear-gradient(145deg, #061b3d 0%, #06234a 58%, #041833 100%);
}
.tos-hero .eyebrow { color: var(--cyan); }
.tos-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.tos-hero-sub {
  margin: 8px 0 24px;
  color: #5bc0f5;
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}
.tos-hero-row { display: flex; align-items: center; gap: 20px; }
.tos-date {
  flex: none;
  width: 104px;
  padding: 10px 6px 11px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 14px 30px rgb(0 0 0 / .25);
}
.tos-date small { display: block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.tos-date b { display: block; font-size: 42px; font-weight: 800; line-height: 1.05; }
.tos-date span { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tos-hero-lines { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; }
.tos-hero-lines small { display: block; margin-top: 6px; color: #c9d6e6; font-size: 14px; }

/* ---------- Stat strip (overlaps the hero's bottom edge) ---------- */
.tos-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -40px;
  list-style: none;
}
.tos-stats-band { background: var(--white); padding-bottom: 6px; }
.tos-stats li {
  padding: 16px 10px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 14px 30px rgb(6 27 61 / .16);
}
.tos-stats b { display: block; font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tos-stats span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }
.tos-stats li:nth-child(1) { color: var(--white); background: var(--blue); }
.tos-stats li:nth-child(2) { color: var(--navy); background: var(--cyan); }
.tos-stats li:nth-child(3) { color: var(--navy); background: var(--tos-green); }

/* ---------- Sticky "on this page" navigation ---------- */
.tos-toc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgb(6 27 61 / .06);
}
.tos-toc ul {
  display: flex;
  gap: 6px;
  list-style: none;
  overflow-x: auto;
  padding-block: 9px;
  scrollbar-width: none;
}
.tos-toc ul::-webkit-scrollbar { display: none; }
.tos-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tos-toc a:hover, .tos-toc a:focus-visible { background: rgb(30 115 190 / .09); border-color: rgb(30 115 190 / .3); }
.tos-toc a.is-key { color: var(--white); background: var(--blue); }
.tos-toc a.is-key:hover { background: var(--deep-blue); }

/* ---------- Sections ---------- */
.tos-section { padding-top: clamp(30px, 4vw, 46px); padding-bottom: clamp(30px, 4vw, 46px); background: var(--white); }
.tos-section--tint {
  background:
    radial-gradient(circle at 88% 12%, rgb(30 115 190 / .08), transparent 24%),
    linear-gradient(118deg, #f4f9fd 0%, #ffffff 70%);
  border-top: 1px solid rgb(30 115 190 / .14);
  border-bottom: 1px solid rgb(30 115 190 / .14);
}
.tos-section--grey { background: #f4f7fb; border-top: 1px solid #e3e9f1; }
.tos-section .eyebrow { color: var(--tos-sky); margin-bottom: 8px; }
.tos-section h2 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.tos-section h2 span { color: var(--blue); }
.tos-section p { margin: 0 0 12px; }
.tos-section p:last-child { margin-bottom: 0; }
.tos-section a:not(.button) { color: var(--blue); font-weight: 700; }

/* ---------- About (intro wording kept verbatim) ---------- */
.tos-lead {
  margin: 0 0 18px !important;
  padding: 13px 16px;
  border-left: 4px solid var(--tos-green);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgb(6 27 61 / .07);
  color: var(--dark);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.tos-lead span { color: var(--deep-blue); }
.tos-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tos-about-card {
  padding: 18px 18px 16px;
  border: 1px solid #e3e9f1;
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
}
.tos-about-card:nth-child(1) { grid-column: 1 / -1; }
.tos-about-card:nth-child(2) { border-top-color: var(--tos-sky); }
.tos-about-card:nth-child(3) { border-top-color: var(--tos-green); }
.tos-about-card:nth-child(4) { border-top-color: var(--deep-blue); }
.tos-about-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--deep-blue); font-size: 18px; font-weight: 700; line-height: 1.25; }
.tos-about-card h3 svg { flex: none; width: 24px; height: 24px; color: var(--blue); }
.tos-about-cols { columns: 2; column-gap: 28px; }
.tos-about-cols p { break-inside: avoid; }
.tos-about-card b { color: var(--dark); }

/* ---------- What changes ---------- */
.tos-changes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.tos-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; list-style: none; }
.tos-ticks li, .tos-todo li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.5; color: #32373c; }
.tos-ticks li::before, .tos-todo li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef5fc;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.tos-ticks b, .tos-todo b { color: var(--dark); }
.tos-todo {
  padding: 16px 18px;
  border: 1px solid #e3e9f1;
  border-left: 4px solid var(--tos-green);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 24px rgb(6 27 61 / .07);
}
.tos-todo .eyebrow { color: var(--tos-green-ink); }
.tos-todo ul { display: grid; gap: 10px; list-style: none; }
.tos-todo li { font-size: 14.5px; }
.tos-todo li::before { background: #e9fbf3; color: var(--tos-green-ink); }

/* ---------- Pricing cards ---------- */
.tos-plans { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tos-plans-side { display: grid; gap: 14px; }
.tos-plan {
  padding: 18px 20px 16px;
  border: 1px solid #e3e9f1;
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 24px rgb(6 27 61 / .06);
  scroll-margin-top: 70px;
}
.tos-plan--home { border-top-color: var(--tos-sky); }
.tos-plan--fence { border-top-color: var(--tos-green); }
.tos-plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tos-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}
.tos-plan h3 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.2; }
.tos-plan h3 small { display: block; margin-top: 2px; color: #5d6673; font-size: 13px; font-weight: 400; }
.tos-free {
  margin: 0 0 12px !important;
  padding: 11px 14px;
  border-left: 4px solid var(--tos-green);
  border-radius: var(--radius);
  background: #e9fbf3;
  color: #17382b;
  font-size: 14.5px;
  line-height: 1.5;
}
.tos-plan p { font-size: 14.5px; line-height: 1.5; }
.tos-rows { width: 100%; margin: 4px 0 10px; border-collapse: collapse; }
.tos-rows caption { text-align: left; padding-bottom: 2px; color: #5d6673; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tos-rows th, .tos-rows td { padding: 10px 0; border-bottom: 1px solid #e3e9f1; font-size: 15px; line-height: 1.35; text-align: left; vertical-align: baseline; }
.tos-rows thead th { padding: 6px 0; color: #5d6673; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tos-rows th[scope="row"] { color: #32373c; font-weight: 400; }
.tos-rows td { color: var(--navy); font-size: 17px; font-weight: 700; text-align: right; white-space: nowrap; }
.tos-rows thead th:last-child { text-align: right; }
.tos-rows td small { color: #5d6673; font-size: 12px; font-weight: 400; }
.tos-rows tr.is-add th, .tos-rows tr.is-add td { border-bottom: 0; color: var(--deep-blue); }
.tos-rows tr.is-add th { font-weight: 700; }
.tos-rows tr:last-child th, .tos-rows tr:last-child td { border-bottom: 0; }
.tos-price { margin: 0 0 8px !important; color: #32373c; }
.tos-price b { color: var(--navy); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tos-fine { color: #5d6673; font-size: 13.5px !important; }

/* ---------- Monthly examples (navy card) ---------- */
.tos-examples {
  margin-top: 14px;
  padding: 18px 20px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  scroll-margin-top: 70px;
}
.tos-examples h3 { margin: 0 0 6px; color: #5bc0f5; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tos-examples table { width: 100%; border-collapse: collapse; }
.tos-examples th, .tos-examples td { padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / .16); font-size: 15px; line-height: 1.4; text-align: left; vertical-align: middle; }
.tos-examples thead th { padding: 4px 0 6px; color: #c9d6e6; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tos-examples thead th:last-child, .tos-examples td { text-align: right; }
.tos-examples th[scope="row"] { font-weight: 600; }
.tos-examples th small { display: block; color: #c9d6e6; font-size: 13px; font-weight: 400; }
.tos-examples td { color: var(--tos-green); font-size: 21px; font-weight: 800; white-space: nowrap; }
.tos-examples p { margin: 12px 0 0; color: #c9d6e6; font-size: 14px; line-height: 1.5; }
.tos-examples p b { color: var(--white); }
.tos-count {
  margin-top: 14px;
  padding: 13px 16px 14px;
  border-left: 4px solid var(--cyan);
  border-radius: 6px;
  background: rgb(24 186 242 / .13);
}
.tos-count strong { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tos-count ul { display: flex; flex-wrap: wrap; gap: 8px 34px; list-style: none; }
.tos-count li { position: relative; padding-left: 20px; color: var(--white); font-size: 16px; line-height: 1.45; }
.tos-count li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.tos-count li b { color: var(--white); font-weight: 800; }

/* Picture tooltips on the two counting rules: hover, keyboard focus or tap */
.tos-tip {
  position: relative;
  display: inline-block;
  cursor: help;
  text-decoration: underline dotted rgb(24 186 242 / .9);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  border-radius: 3px;
}
.tos-tip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.tos-tip-pop {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 14px);
  width: 250px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f7fb;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  pointer-events: none;
}
.tos-tip-pop--tall { width: 150px; }
.tos-tip-pop img { display: block; width: 100%; height: auto; }
.tos-tip-pop::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 100%;
  border: 9px solid transparent;
  border-top-color: #f4f7fb;
}
.tos-tip:hover .tos-tip-pop,
.tos-tip:focus .tos-tip-pop,
.tos-tip:focus-within .tos-tip-pop { opacity: 1; visibility: visible; transform: none; }

/* ---------- Terms at a glance ---------- */
.tos-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.tos-glance li {
  position: relative;
  padding: 13px 16px 13px 44px;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  background: var(--white);
  color: #32373c;
  font-size: 14.5px;
  line-height: 1.5;
}
.tos-glance li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Service terms (accordion) ---------- */
.tos-terms-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.tos-terms-head h2 { margin-bottom: 6px; }
.tos-terms-head p { margin: 0; font-size: 15px; }
.tos-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1.6px solid var(--blue);
  border-radius: 6px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.tos-toggle:hover { color: var(--white); background: var(--blue); }
.tos-important {
  margin: 0 0 14px !important;
  padding: 14px 16px;
  border-left: 4px solid #c77700;
  border-radius: var(--radius);
  background: #fff6e5;
  color: #4a3200;
  font-size: 15px;
  line-height: 1.5;
}
.tos-acc { display: grid; gap: 8px; }
.tos-acc details {
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  background: var(--white);
  scroll-margin-top: 70px;
}
.tos-acc details[open] { border-color: rgb(30 115 190 / .45); box-shadow: 0 10px 24px rgb(6 27 61 / .07); }
.tos-acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.tos-acc summary::-webkit-details-marker { display: none; }
.tos-acc summary .tos-num { width: 30px; height: 30px; font-size: 14px; background: var(--deep-blue); }
.tos-acc summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .18s ease;
}
.tos-acc details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tos-acc summary:hover { color: var(--blue); }
.tos-acc-body { padding: 2px 18px 16px 58px; font-size: 15px; line-height: 1.6; }
.tos-acc-body b { color: var(--dark); }
.tos-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dbe3ee; font-size: 14.5px; }
.tos-meta p { margin: 0 0 6px; }

/* Support band: keep the two buttons side by side on desktop */
.tos-support-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 920px) {
  .tos-about { grid-template-columns: 1fr; }
  .tos-about-cols { columns: 1; }
  .tos-changes, .tos-plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tos-hero { padding-bottom: 58px; }
  .tos-hero-row { gap: 14px; }
  .tos-date { width: 86px; }
  .tos-date b { font-size: 34px; }
  .tos-stats { gap: 7px; margin-top: -34px; }
  .tos-stats li { padding: 12px 4px 11px; display: flex; flex-direction: column; justify-content: center; }
  .tos-stats b { font-size: 19px; }
  .tos-hero-lines br { display: none; }
  .tos-stats span { font-size: 10.5px; letter-spacing: .03em; }
  .tos-ticks, .tos-glance { grid-template-columns: 1fr; }
  .tos-plan, .tos-examples { padding: 16px 15px 14px; }
  .tos-examples td { font-size: 18px; padding-left: 10px; }
  .tos-acc summary { font-size: 15.5px; padding: 10px 13px; }
  .tos-acc-body { padding: 2px 14px 14px 14px; }
  .tos-support-actions { grid-template-columns: 1fr; }
  .tos-toggle { width: 100%; }
}
@media print {
  .tos-toc, .site-header nav, .support, .tos-toggle { display: none; }
}
