/* Single stylesheet for the entire tredsy.com site. Deliberately
   small and framework-free — the whole point of this site is to host
   policy pages reliably; bringing in Tailwind/Bootstrap for ~5 static
   pages would be more dependency than content. */

:root {
  --bg: #ffffff;
  --bg-muted: #f7f7f8;
  --text: #1a1a1f;
  --text-muted: #5e5e6e;
  --border: #e5e5ea;
  --accent: #1a1a1f;
  --link: #2563eb;
  --max-width: 720px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --bg-muted: #16161a;
    --text: #f2f2f5;
    --text-muted: #9b9ba8;
    --border: #2a2a31;
    --accent: #f2f2f5;
    --link: #7aa5ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.site-header a.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
header.site-header nav a {
  color: var(--text-muted);
  margin-left: 20px;
  font-size: 14px;
}
header.site-header nav a:hover { color: var(--text); }

h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}
p, li { color: var(--text); }
.muted { color: var(--text-muted); font-size: 14px; }

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.callout {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
}

.hero {
  text-align: center;
  padding: 80px 20px 40px;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 20px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--text-muted); font-size: 14px; margin: 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
footer.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
footer.site-footer a {
  color: var(--text-muted);
  margin-right: 16px;
}
footer.site-footer a:hover { color: var(--text); }

/* Product landing */
.landing-page {
  --landing-bg: #f2f5f7;
  --landing-surface: #ffffff;
  --landing-ink: #111820;
  --landing-muted: #617080;
  --landing-line: #dce3e8;
  --landing-green: #8ad2b1;
  --landing-coral: #f07b68;
  --landing-yellow: #f2c75c;
  background: var(--landing-bg);
  color: var(--landing-ink);
}

.landing-page .site-header {
  background: rgba(242, 245, 247, 0.92);
  border-color: var(--landing-line);
  backdrop-filter: blur(18px);
}

.landing-page .site-header .inner,
.landing-page .site-footer .inner {
  max-width: 1180px;
}

.brand-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-with-mark img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-with-mark span {
  color: #111820;
}

.landing-page .site-header nav a {
  color: var(--landing-muted);
}

.landing-page .site-header nav a:hover {
  color: var(--landing-ink);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  margin-left: 16px;
  border: 1px solid var(--landing-line);
  border-radius: 6px;
  padding: 2px;
}

.landing-page .site-header nav .language-switch a {
  margin: 0;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 800;
}

.landing-page .site-header nav .language-switch a[aria-current="true"] {
  background: var(--landing-ink);
  color: #fff;
  text-decoration: none;
}

.landing-page .site-header a.brand {
  color: var(--landing-ink);
}

.product-hero {
  min-height: 680px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 68px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #587080;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-hero h1 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(76px, 11vw, 148px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 610px;
  margin: 30px 0 14px;
  color: var(--landing-ink);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.12;
}

.product-hero .lead {
  max-width: 590px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.availability,
.support-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 10px 15px;
  background: var(--landing-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.text-link {
  color: var(--landing-ink);
  font-size: 14px;
  font-weight: 700;
}

.product-stage {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.stage-accent {
  position: absolute;
  inset: 10% 4% 5% 7%;
  border-radius: 7px;
  background: var(--landing-green);
  transform: rotate(-4deg);
}

.phone-shell {
  position: relative;
  width: min(100%, 330px);
  border: 10px solid #111820;
  border-radius: 38px;
  padding: 9px;
  background: #111820;
  box-shadow: 0 24px 52px rgba(17, 24, 32, 0.22);
  transform: rotate(2deg);
}

.phone-screen {
  min-height: 570px;
  overflow: hidden;
  border-radius: 24px;
  padding: 14px 13px 16px;
  background: #f4f6f7;
  color: #19202a;
}

.phone-status,
.app-header,
.calendar-toolbar,
.scheduled-heading,
.post-row,
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  padding: 0 4px 18px;
  font-size: 11px;
  font-weight: 800;
}

.status-symbols {
  font-size: 9px;
  letter-spacing: 0.1em;
}

.app-header {
  padding: 0 3px 15px;
}

.app-header strong {
  display: block;
  font-size: 21px;
}

.app-header img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.screen-label {
  display: block;
  color: #758292;
  font-size: 10px;
  font-weight: 700;
}

.calendar-card,
.scheduled-card {
  border: 1px solid #e4e8eb;
  border-radius: 7px;
  background: #fff;
  padding: 15px;
}

.calendar-toolbar strong,
.scheduled-heading strong {
  font-size: 14px;
}

.calendar-toolbar span,
.scheduled-heading span {
  color: #2b7b5b;
  font-size: 10px;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  text-align: center;
}

.calendar-days {
  margin: 18px 0 7px;
  color: #98a3ad;
  font-size: 9px;
  font-weight: 800;
}

.calendar-dates {
  font-size: 11px;
  font-weight: 700;
}

.calendar-dates span {
  display: grid;
  min-height: 24px;
  place-items: center;
  border-radius: 50%;
}

.calendar-dates .selected {
  background: #111820;
  color: #fff;
}

.calendar-dates .quiet {
  color: #a6afb8;
}

.scheduled-card {
  margin-top: 11px;
}

.post-row {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid #edf0f2;
  padding-top: 12px;
}

.post-time {
  color: #2b7b5b;
  font-size: 11px;
  font-weight: 800;
}

.post-row strong,
.post-row small {
  display: block;
}

.post-row strong {
  font-size: 11px;
}

.post-row small {
  margin-top: 2px;
  color: #7c8792;
  font-size: 9px;
}

.tab-bar {
  width: 70%;
  margin: 17px auto 0;
  border: 1px solid #e3e8eb;
  border-radius: 26px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 18px rgba(17, 24, 32, 0.1);
  color: #56616d;
}

.tab-bar .active {
  color: #111820;
}

.tab-bar .add {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #111820;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.trust-strip {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  padding: 22px 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 14px;
}

.trust-strip span {
  margin-top: 2px;
  color: var(--landing-muted);
  font-size: 13px;
}

.landing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px 20px;
}

.section-heading {
  max-width: 760px;
}

.landing-page h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-panel {
  min-height: 230px;
  border: 1px solid var(--landing-line);
  border-radius: 7px;
  padding: 24px;
  background: var(--landing-surface);
}

.feature-panel-large {
  grid-column: span 2;
  background: #111820;
}

.feature-index {
  color: #2d8463;
  font-size: 12px;
  font-weight: 800;
}

.feature-panel-large .feature-index {
  color: var(--landing-green);
}

.feature-panel h3 {
  margin: 52px 0 8px;
  color: var(--landing-ink);
  font-size: 21px;
}

.feature-panel p {
  max-width: 420px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 15px;
}

.feature-panel-large h3,
.feature-panel-large p {
  color: #fff;
}

.feature-panel-large p {
  color: #bdc8d0;
}

.mini-timeline {
  display: flex;
  max-width: 430px;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #d5dde3;
  font-size: 11px;
  font-weight: 700;
}

.mini-timeline i {
  height: 1px;
  flex: 1;
  background: #49606d;
}

.workflow-band {
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  background: #e6ecef;
}

.compact-heading {
  max-width: 630px;
}

.workflow-list {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
}

.workflow-list li {
  border-top: 2px solid #b6c4cc;
  padding-top: 15px;
}

.workflow-list span {
  color: #2d8463;
  font-size: 12px;
  font-weight: 800;
}

.workflow-list h3 {
  margin: 34px 0 7px;
  color: var(--landing-ink);
  font-size: 18px;
}

.workflow-list p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 14px;
}

.support-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.support-section img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.support-section h2 {
  font-size: 30px;
}

.support-section p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--landing-muted);
}

.support-button:hover {
  color: #fff;
  text-decoration: none;
}

.landing-page .site-footer {
  border-color: var(--landing-line);
  margin-top: 0;
  background: #e6ecef;
}

@media (max-width: 780px) {
  .landing-header nav > a { display: none; }
  .landing-page .site-header nav .language-switch a {
    display: inline-flex;
    margin-left: 0;
  }
  .language-switch { margin-left: 0; }
  .product-hero {
    min-height: auto;
    padding-top: 58px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .product-hero h1 { font-size: 82px; }
  .hero-statement { font-size: 27px; }
  .product-stage { min-height: 530px; }
  .phone-shell { width: 285px; }
  .phone-screen { min-height: 500px; }
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .landing-section { padding: 76px 20px; }
  .landing-page h2 { font-size: 31px; }
  .feature-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }
  .feature-panel-large { grid-column: auto; }
  .feature-panel { min-height: 200px; }
  .support-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .support-button { justify-self: start; }
}
