/* ─── Newberry Studio — Daylight palette ─── */

:root {
  /* Surfaces */
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --card-border: #E5E7EB;
  --card-border-hover: #D1D5DB;
  --input-bg: #F3F4F6;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;

  /* Accent — deep teal */
  --teal: #0D9488;
  --teal-light: rgba(13, 148, 136, 0.08);
  --teal-border: rgba(13, 148, 136, 0.25);

  /* Semantic */
  --violet: #7C3AED;
  --amber: #D97706;

  /* Layout */
  --max-width: 720px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ─── Reset ─── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0F766E;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Layout ─── */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ─── Header ─── */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo:hover {
  color: var(--text-primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--teal);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
}

/* ─── Hero ─── */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--teal);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── App Cards ─── */

.apps-section {
  padding: 0 0 80px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 4px 24px rgba(107, 114, 128, 0.08);
  color: inherit;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.app-icon.r2r {
  background: #0a0612;
  color: #00f5e4;
  border: 2px solid #1a1030;
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.app-card-body .app-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

.app-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.badge.ios {
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.badge.coming-soon {
  background: var(--input-bg);
  color: var(--text-tertiary);
  border: 1px solid var(--card-border);
}

.app-card-arrow {
  color: var(--text-tertiary);
  font-size: 20px;
  padding-top: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.app-card:hover .app-card-arrow {
  transform: translateX(3px);
  color: var(--teal);
}

/* Card for future / placeholder apps */
.app-card.placeholder {
  border-style: dashed;
  opacity: 0.55;
  pointer-events: none;
}

.app-card.placeholder .app-icon {
  background: var(--input-bg);
  color: var(--text-tertiary);
  border: 2px dashed var(--card-border);
}

/* ─── Legal pages ─── */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-page ul {
  margin: 0 0 14px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--teal);
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
}

/* ─── Contact section ─── */

.contact-section {
  padding: 0 0 80px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-card a {
  font-weight: 600;
}

/* ─── Footer ─── */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--card-border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 36px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .app-card {
    padding: 24px;
    gap: 20px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 12px;
  }

  .legal-card {
    padding: 24px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-nav {
    gap: 16px;
  }
}
