/* ShareSomeone — plans: the Settings plan card and the /pricing page.
   Same SOMEONE tokens as app.css (loaded first); light and dark come from
   those variables. Same-origin stylesheet only (strict CSP). */

/* Settings: Plan · Usage · Billing · Upgrade. Same card language as the
   Accounts dashboard and Compose destinations (acct-card / dest-card). */
.plan-card {
  border-color: var(--burgundy);
}
.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.plan-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}
.plan-head .eyebrow {
  margin: 0 0 6px;
}
.plan-status {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.plan-card .notice {
  margin: 14px 0 0;
}
.plan-section {
  margin: 24px 0 0;
}
.plan-section h3 {
  margin: 0 0 4px;
  font-size: clamp(19px, 2.4vw, 22px);
}
.plan-section > p {
  margin: 0 0 12px;
  max-width: 680px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.plan-section > p.actions {
  margin: 12px 0 0;
}
.plan-meters,
.plan-allowances {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  align-items: start;
}
.plan-meter,
.plan-allowances div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan-meter-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
}
.plan-meter-label label {
  font-weight: 700;
}
.plan-meter-text {
  color: var(--muted);
  font-size: 14px;
}
.plan-meter meter {
  display: block;
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}
.plan-meter-full {
  border-color: var(--bad);
}
.plan-meter-full .plan-meter-text {
  color: var(--bad);
  font-weight: 700;
}
.plan-allowances div {
  background: var(--bg);
  box-shadow: none;
}
.plan-allowances dt {
  color: var(--muted);
  font-size: 14px;
}
.plan-allowances dd {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
}

/* /pricing */
.pricing-hero {
  padding: clamp(24px, 6vw, 56px) 0 8px;
}
.pricing-hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 24px 0 0;
}
@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.plan-pro {
  border-color: var(--accent);
  border-width: 2px;
}
.plan h2 {
  margin: 0 0 4px;
}
.plan-price {
  font: 700 clamp(28px, 5vw, 36px) / 1.1 var(--serif);
  margin: 8px 0 2px;
  color: var(--burgundy);
}
.plan-price small {
  font: 400 15px/1.4 var(--sans);
  color: var(--muted);
}
.plan-features {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.plan-features li:first-child {
  border-top: 0;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.compare caption {
  text-align: left;
  font: 700 20px/1.3 var(--serif);
  margin: 0 0 12px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.compare tbody th {
  font-weight: 400;
  color: var(--muted);
}
@media (max-width: 479px) {
  .compare {
    font-size: 14px;
  }
  .compare th,
  .compare td {
    padding: 8px 4px;
  }
}
.pricing-notes {
  font-size: 14px;
  color: var(--muted);
}
.pricing-notes li {
  margin: 0 0 6px;
}
.plan-features li.feature-pending {
  color: var(--muted);
}
.plan-features li.feature-pending::before {
  border: 0;
  border-top: 2px solid var(--muted);
  transform: none;
  top: 17px;
  height: 0;
}
