/* AutoYard inner pages (Prices, Security), round 3. Shared parts are in site-v3.css. */

.page-section { padding: 0 0 112px; }
.plans-compact .plan-people { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(231, 226, 218, 0.9); }
.plan-main .plan-name { color: var(--blue); }
.page-section .fine { margin-top: 24px; }

/* ---------- Everything in every plan (table) ---------- */
.compare { margin-top: 112px; }
.ftable {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.ftable th {
  padding: 16px 20px; background: #EFE9E1; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.ftable th:first-child { text-align: left; width: 58%; }
.ftable th.col-main { color: var(--blue); }
.ftable td { padding: 22px 20px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ftable td:first-child { text-align: left; }
.ftable tbody tr:first-child td { border-top: 0; }
.ftable .f-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ftable .f-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ftick { display: inline-block; width: 18px; height: 18px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5FD6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.f-all { display: none; }

/* ---------- Questions ---------- */
.faq { max-width: 720px; margin: 112px auto 0; }
.faq h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 28px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; font-weight: 600; }
.faq-item p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- Security page ---------- */
.safe4-boxed { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.safe4-boxed .safe, .safe4-boxed .safe:first-child { padding: 32px; border-left: 1px solid var(--line); }
.safe4-boxed .safe:first-child { border-left: 0; }
.safe4-boxed .safe-ic { background: var(--page); border: 1px solid var(--line); }
.keep { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; margin-top: 112px; align-items: start; }
.keep h2 { font-size: clamp(32px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.keep-list { display: grid; gap: 20px; }
.keep-item { padding: 26px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.keep-item h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.keep-item h3::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.keep-item p { margin-top: 10px; padding-left: 19px; font-size: 15.5px; color: var(--ink-2); }
.ask-line { margin-top: 96px; text-align: center; font-size: 16px; color: var(--ink-2); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .safe4-boxed { row-gap: 0; }
  .safe4-boxed .safe, .safe4-boxed .safe:first-child { border-left: 0; border-top: 1px solid var(--line); }
  .safe4-boxed .safe:nth-child(-n+2) { border-top: 0; }
  .safe4-boxed .safe:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .page-section { padding-bottom: 80px; }
  .compare, .faq, .keep { margin-top: 80px; }
  .keep { grid-template-columns: 1fr; gap: 28px; }
  .ask-line { margin-top: 64px; }
  /* Table becomes a list: one row per feature, ticks folded into one line */
  .ftable thead { display: none; }
  .ftable, .ftable tbody, .ftable tr, .ftable td { display: block; width: 100%; }
  .ftable td { padding: 0; border: 0; }
  .ftable tr { padding: 20px; border-top: 1px solid var(--line); }
  .ftable tbody tr:first-child { border-top: 0; }
  .ftable td:not(:first-child) { display: none; }
  .f-all { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); }
}
@media (max-width: 600px) {
  .safe4-boxed .safe, .safe4-boxed .safe:first-child,
  .safe4-boxed .safe:nth-child(even) { padding: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .safe4-boxed .safe:first-child { border-top: 0; }
  .keep-item { padding: 22px 24px; }
  .faq h2 { font-size: 28px; }
}

/* ---------- Legal reading pages (Privacy, Terms) ---------- */
.legal-wrap { max-width: 1148px; }
.legal-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin-top: 18px; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; }
.legal-sub { margin-top: 14px; font-size: 20px; color: var(--ink-2); }
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 680px); gap: 80px; padding: 48px 0 120px; }
.legal-toc { position: sticky; top: 120px; align-self: start; }
.legal-toc-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a {
  display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent;
  font-size: 14px; color: var(--ink-3); text-decoration: none; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--blue); border-image: linear-gradient(180deg, var(--blue), var(--orange)) 1; }
.legal-toc details > summary { display: none; }

.legal-intro { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 32px; }
.legal-card { padding: 32px 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 16px; }
.legal-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.legal-card p, .legal-card li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.legal-body h2 { margin: 56px 0 16px; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; }
.legal-body h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 600; }
.legal-body p, .legal-body li { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 14px; }
.legal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-body li::marker { color: #A8A29A; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a, .legal-card a { color: var(--blue); text-underline-offset: 3px; }
.legal-body code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.legal-body .table-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-body th { text-align: left; padding: 12px 16px; background: #EFE9E1; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.legal-body td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.6; }
.legal-body td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.legal-body .contact-box { display: grid; gap: 4px; margin-top: 16px; padding: 22px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 16px; color: var(--ink-2); }
.legal-body .contact-box strong { font-size: 16.5px; }

@media (max-width: 900px) {
  .legal-head { padding: 40px 0 28px; }
  .legal-sub { font-size: 18px; }
  .legal-grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 80px; }
  .legal-toc { position: static; }
  .legal-toc details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
  .legal-toc details > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
  .legal-toc details > summary::-webkit-details-marker { display: none; }
  .legal-toc details > summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--ink-3); }
  .legal-toc details[open] > summary::after { content: '\2212'; }
  .legal-toc details[open] > summary { border-bottom: 1px solid var(--line); }
  .legal-toc-title { display: none; }
  .legal-toc ol { padding: 10px 14px 14px; }
  .legal-card { padding: 24px; }
  .legal-body h2 { margin-top: 44px; font-size: 23px; }
  .legal-body td:first-child { white-space: normal; }
}

/* ---------- Status pages (QuickBooks disconnected, Connection result) ---------- */
.status-main { padding: 88px 0 112px; }
.status-card {
  max-width: 640px; margin: 0 auto; padding: 48px; background: var(--white);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.05);
}
.status-card.is-small { max-width: 520px; padding: 40px; }
.status-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink-2); }
.status-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-card h1 { margin-top: 22px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.status-card.is-small h1 { font-size: 26px; letter-spacing: -0.025em; }
.status-lead { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.status-points { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.status-points h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.status-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.status-points li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.status-points li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #EAF1FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5FD6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.status-points strong { color: var(--ink); font-weight: 600; }
.status-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-soft { background: #F1EFEA; color: var(--ink); }
.btn-soft:hover { background: #E8E4DD; }
.status-note { margin-top: 22px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.status-note a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Connection result: the script sets the icon's class to "tick" (worked) or "tick bad" (did not) */
#mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #E6F4EB; }
#mark.bad { background: #FBEAEA; }
#mark svg { width: 22px; height: 22px; }
.status-closing { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 600px) {
  .status-main { padding: 40px 0 72px; }
  .status-card, .status-card.is-small { padding: 28px 24px; border-radius: 20px; }
  .status-btns .btn { flex: 1 1 100%; }
}
