/* DelaySend.net — style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;
  --surface:     #FFFFFF;
  --border:      #E2E8F0;
  --border-lt:   #F1F5F9;
  --text:        #0F172A;
  --text-mid:    #475569;
  --text-muted:  #94A3B8;
  --accent:      #4F46E5;
  --accent-dim:  rgba(79, 70, 229, 0.08);
  --accent-hover:#4338CA;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius:    6px;
  --radius-md: 12px;
  --max-w:     720px;
  --max-w-wide:1060px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

p { color: var(--text-mid); }
p + p { margin-top: 0.9rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--wide { max-width: var(--max-w-wide); }

section { padding-block: 3rem; }
section.section-alt { background: var(--bg-alt); }
section + section { border-top: 1px solid var(--border-lt); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Platform strip ---------- */
.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.platform-strip-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.platform-strip-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.psi-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.psi-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.psi-item img {
  display: block;
  flex-shrink: 0;
}

.psi-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
}

.hero-headline { margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 46ch;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ---------- Why it matters ---------- */
.impact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 2rem;
}

.impact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.impact-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  min-width: 175px;
  flex-shrink: 0;
}

.impact-item p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ---------- How-to ---------- */
.howto-intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  max-width: 54ch;
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.platform {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s;
}

.platform:hover { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }

.platform--gmail   { border-top-color: #EA4335; }
.platform--outlook { border-top-color: #0078D4; }
.platform--slack   { border-top-color: #4A154B; }
.platform--teams   { border-top-color: #6264A7; }

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-dot--gmail   { background: #EA4335; }
.platform-dot--outlook { background: #0078D4; }
.platform-dot--slack   { background: #4A154B; }
.platform-dot--teams   { background: #6264A7; }

.platform-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.platform p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  background: var(--bg-alt);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  align-self: flex-start;
}

.platform-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* ---------- Related reading ---------- */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.reading-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.reading-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.reading-card h3 { color: var(--text); }

.reading-card p {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.reading-card::after {
  content: "Visit site ↗";
  display: block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.15s;
}

.reading-card:hover::after { opacity: 1; }

/* ---------- Section heading ---------- */
.section-title { margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.footer-powered { font-size: 0.78rem; color: var(--text-muted); }

.footer-powered a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-powered a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 360px; }
}

@media (max-width: 768px) {
  .reading-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section         { padding-block: 2.25rem; }
  .hero           { padding-block: 2rem 1.75rem; }
  .platform-list  { grid-template-columns: 1fr; }
  .reading-grid   { grid-template-columns: 1fr; }
  .impact-item    { flex-direction: column; gap: 0.3rem; }
  .impact-item h3 { min-width: 0; }
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}
