/* Shared styles for robertsonsoftware.com. Static, dependency-free.
   Direction-neutral (ADR-167): logical properties / text-align: start so the
   same sheet serves LTR locales and Arabic (dir="rtl") alike. */
:root {
  --brand: #2c2c80;
  --primary: #4169e1;
  --text: #24292f;
  --muted: #57606a;
  --border: #d0d7de;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --error: #b42318;
  --warning: #9a6700;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
/* Header weave: one seamless sett of the Robertson Hunting 1 true 2/2 twill
   (ADR-166) at 1px per thread with the 0.55 brand-navy scrim baked in - the
   banner-PNG treatment at a finer scale. The tile is generated from the
   registry threadcount by scripts/gen-website-tartan.mjs into
   platform/website/src/assets/header-weave.png and copied to the site root
   by the build. */
header {
  background-color: var(--brand);
  background-image: url('/header-weave.png?v=2');
  color: #fff;
  padding: 40px 24px 44px;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
header h1,
header h1 a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
header .header-glyph {
  flex: none;
}
header p {
  margin-top: 12px;
  font-size: 1.125rem;
  opacity: 0.85;
  text-wrap: balance;
}
header a {
  color: #fff;
  text-decoration: none;
}
header a:hover {
  text-decoration: underline;
}
/* Header sign-in: a secondary ghost button on the tartan banner, pinned to the
   top end (logical property flips it under dir="rtl"). It stays visually below
   any body CTA. On narrow screens it drops in-flow, centered under the tagline. */
.header-signin {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
}
.header-signin:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}
@media (max-width: 560px) {
  .header-signin {
    position: static;
    margin-top: 16px;
  }
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
section + section {
  margin-top: 48px;
}
h2 {
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 12px;
}
main h2 + p,
main p + p,
main p + ul,
main ul + p {
  margin-top: 8px;
}
main ul {
  padding-inline-start: 24px;
}
main li + li {
  margin-top: 4px;
}
.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}
.legal-language-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-alt);
  margin-top: 8px;
}
.product-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 8px;
  flex: none;
}
.product-card p {
  color: var(--muted);
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Legal body copy: links must not rely on color alone (WCAG 1.4.1). */
.legal a {
  text-decoration: underline;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 12px;
  font-size: 0.875rem;
}
th,
td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}
th {
  background: var(--bg-alt);
}
.table-scroll {
  overflow-x: auto;
}
/* Screenshot + text feature rows (product-page "closer look" gallery). */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
}
.feature-row img {
  width: 200px;
  height: auto;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.feature-row__text h3 {
  font-size: 1.0625rem;
  margin: 8px 0;
}
@media (max-width: 560px) {
  .feature-row {
    flex-direction: column;
  }
  .feature-row img {
    align-self: center;
  }
}
/* Exactly-3 card layout (product-page loop steps). An explicit 3-col grid,
   collapsing straight to 1-col - never a 2+1 wrap, which breaks the
   1-2-3 sequence the section sells. Grid auto-placement keeps DOM order
   and flips columns under dir="rtl" on its own. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.card-grid .product-card {
  margin-top: 0;
  padding: 16px;
}
@media (max-width: 719px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-grid .product-card {
    padding: 24px;
  }
}

/* Same no-2+1 rule for the 3 pricing tiers (middle-option anchoring). */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 719px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-alt);
  text-align: center;
  /* Column flex so the buy buttons bottom-align across the three cards
     regardless of each card's detail-text length (ADR-248). */
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  border-width: 2px;
}
.price-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.price-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
}
.price-card .cadence {
  color: var(--muted);
  font-size: 0.875rem;
}
.price-card .detail {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 12px;
  flex-grow: 1;
}
/* Checkout button (ADR-248) - server-rendered hidden, revealed by
   /goalito/pricing.js once Paddle checkout can actually open. */
.price-card .buy {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  border-radius: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.price-card .buy:hover {
  filter: brightness(1.08);
}
/* Standalone call-to-action button rendered as an anchor (e.g. the post-checkout
   welcome page's "Sign in to Goalito"). Larger than .buy so it reads as the
   primary next step. */
.cta-button {
  display: inline-block;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: 8px;
  padding: 14px 32px;
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.cta-button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
footer nav {
  margin-bottom: 8px;
}
footer nav a {
  margin: 0 8px;
  color: var(--muted);
}
footer nav.languages {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 2;
}
footer nav.languages a,
footer nav.languages .lang-current {
  margin: 0 6px;
  white-space: nowrap;
}
footer nav.languages .lang-current {
  color: var(--text);
  font-weight: 600;
}
footer .legal-language-note {
  margin-bottom: 8px;
}

/* Tartan generator (/tartan, ADR-222). */
.tartan-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tartan-example {
  font: inherit;
  font-size: 0.875rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.tartan-example:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tartan-field {
  margin-top: 16px;
}
.tartan-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.tartan-field textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.tartan-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.tartan-hint {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}
.tartan-messages {
  list-style: none;
  padding-inline-start: 0;
  margin-top: 4px;
}
.tartan-messages:empty {
  display: none;
}
.tartan-msg {
  font-size: 0.875rem;
  padding-inline-start: 20px;
  position: relative;
}
.tartan-msg::before {
  position: absolute;
  inset-inline-start: 0;
}
.tartan-msg--error {
  color: var(--error);
}
.tartan-msg--error::before {
  content: '✕';
}
.tartan-msg--warning {
  color: var(--warning);
}
.tartan-msg--warning::before {
  content: '!';
  font-weight: 700;
}
.tartan-msg--info {
  color: var(--muted);
}
.tartan-msg--info::before {
  content: 'i';
  font-weight: 700;
}
.tartan-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.tartan-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 24px;
}
.tartan-generate {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 600;
}
.tartan-generate:hover {
  filter: brightness(1.08);
}
#tartan-swap {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.tartan-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.tartan-outputs figure {
  flex: 1 1 260px;
  min-width: 0;
}
.tartan-outputs img {
  width: 100%;
  height: auto;
  max-width: 420px;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  image-rendering: pixelated;
}
.tartan-outputs figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 8px;
}
.tartan-dim {
  color: var(--muted);
}
.tartan-fineprint {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 16px;
}
.tartan-shades summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
}
.tartan-shades h3 {
  font-size: 0.9375rem;
  margin-top: 16px;
}
.tartan-shade-list {
  list-style: none;
  padding-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 0.8125rem;
}
.tartan-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  vertical-align: -3px;
  margin-inline-end: 6px;
}
.tartan-makers-mark {
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
