/* The pages around the app (/pro, /manage, /privacy, /terms). They load styles.css for the fonts, the
   colours and the buttons, and this for their own layout. */

body.page { padding-bottom: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 14px 16px; }
.bar .btn { min-height: 40px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 16px 0; }
.wrap.narrow { max-width: 720px; }
.eyebrow { margin: 18px 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
.wrap h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 9vw, 80px); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 16px; }
.wrap h1 em, .wrap h2 em { color: var(--sun); }
.wrap h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; margin: 48px 0 12px; }
.wrap p, .wrap li { color: rgba(253, 249, 241, 0.82); }
.wrap a { color: var(--sun-pale); }
.wrap .lead { font-size: 18px; max-width: 36em; }

/* status cards (claiming Pro, the plan on /manage) */
.card { background: var(--paper); color: var(--type); border: 1.5px solid var(--type); border-radius: 22px; box-shadow: 0 4px 0 var(--type); padding: 20px; margin: 18px 0; }
.card p, .card li { color: var(--type); }
.card a { color: var(--type); }
.card h2 { margin: 0 0 10px; color: var(--type); font-size: 32px; }
.card .fine { color: var(--type-soft); }
.card.good { background: var(--sun); }
.card.warn-card { background: #FFE0D1; }
.status-line { font-size: 17px; margin: 0 0 12px; }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; vertical-align: -3px; margin-right: 8px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* /pro plans */
.big-plans { display: grid; gap: 14px; margin-top: 24px; }
.big-plan { position: relative; background: var(--paper); color: var(--type); border: 1.5px solid var(--type); border-radius: 22px; box-shadow: 0 4px 0 var(--type); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.big-plan.best { background: var(--sun); }
.big-plan h2 { margin: 0; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--type); }
.big-plan .amount { font-size: 44px; font-weight: 750; line-height: 1; margin: 4px 0 0; color: var(--type); }
.big-plan .amount span { font-size: 17px; font-weight: 650; }
.big-plan p { margin: 0; color: var(--type); }
.big-plan .btn { margin-top: 12px; align-self: flex-start; }
.big-plan .flag { position: absolute; top: -11px; right: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--type); color: var(--cream); padding: 4px 8px; border-radius: 99px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.compare th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253, 249, 241, 0.6); }
.compare td:first-child { color: rgba(253, 249, 241, 0.9); font-weight: 600; }
.compare td { color: rgba(253, 249, 241, 0.75); }
.compare td.yes { color: var(--sun); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* /manage */
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.facts-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--type-soft); padding-top: 3px; }
.facts-list dd { margin: 0; font-weight: 650; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.confirm { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--cream); border: 1.5px dashed var(--type); }
.confirm p { margin: 0 0 10px; }
.btn.danger { background: #FFD1C2; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; min-width: 0; border: 1.5px solid var(--type); border-radius: 12px; padding: 9px 10px; background: var(--cream); color: var(--type); font-family: var(--mono); font-size: 12px; }
.divider { border: 0; border-top: 1.5px dashed rgba(23, 32, 44, 0.25); margin: 18px 0; }

/* legal pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin-top: 36px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.updated { font-family: var(--mono); font-size: 12px; color: rgba(253, 249, 241, 0.55); }

@media (min-width: 760px) {
  .big-plans { grid-template-columns: 1fr 1fr; }
  .bar { padding: 18px 24px; }
}
