/* Friio static site — shared styles
   Brand: primary #00624D, light #0D8F5B, bg #FFFCF5
*/

:root {
  --green-primary: #00624D;
  --green-light: #0D8F5B;
  --green-dark: #004637;
  --green-accent: #C6F600;
  --cream: #FFFCF5;
  --bg: #FFFCF5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --danger: #DC2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 98, 77, 0.15);
  --max-width: 1100px;
  --content-width: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background-color: rgba(255, 252, 245, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 22px;
}

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

.nav a:hover {
  color: var(--green-primary);
}

/* Hero */
.hero {
  padding: 64px 24px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, #F0F9F4 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 143, 91, 0.12) 0%, rgba(13, 143, 91, 0) 70%);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-text {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(0, 98, 77, 0.08);
  color: var(--green-primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

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

.hero-lead {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--green-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--green-primary);
  color: #FFFFFF;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 24px 60px rgba(0, 98, 77, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #1A1A1A;
  border-radius: 100px;
  z-index: 2;
}

.phone-content {
  flex: 1;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.phone-card {
  aspect-ratio: 110 / 170;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.phone-card.red { background: #560007; }
.phone-card.orange { background: #FF4D00; }
.phone-card.lime { background: #C6F600; color: #1A1A1A; }
.phone-card.green { background: #00624D; }

.phone-card-icon {
  font-size: 24px;
  text-align: center;
  margin-top: 12px;
}

.phone-card-name {
  font-size: 10px;
}

.phone-card-pill {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 8px;
  align-self: flex-start;
}

.phone-card.lime .phone-card-pill {
  background: rgba(0, 0, 0, 0.15);
  color: #1A1A1A;
}

/* Features section */
.features {
  padding: 80px 24px;
  background: var(--surface);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  text-align: center;
  color: var(--green-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Premium pitch */
.pitch {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, #E8F5ED 100%);
}

.pitch-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pitch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pitch-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pitch-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CTA section */
.cta {
  padding: 80px 24px;
  background: var(--green-primary);
  color: #FFFFFF;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn-light {
  background: #FFFFFF;
  color: var(--green-primary);
}

.btn-light:hover {
  background: var(--cream);
}

/* Legal page main */
main.legal {
  flex: 1;
  padding: 48px 24px;
}

.legal-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

main.legal h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

main.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

main.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

main.legal p, main.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

main.legal ul, main.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

main.legal a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main.legal a:hover {
  color: var(--green-dark);
}

main.legal .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* Callout boxes */
.callout {
  background-color: var(--surface);
  border: 1.5px solid var(--green-primary);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}

.callout-title {
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-warn {
  border-color: var(--danger);
}

.callout-warn .callout-title {
  color: var(--danger);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

th {
  background-color: #F9FAFB;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background-color: var(--text);
  color: #D1D5DB;
  padding: 48px 24px 32px;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 14px;
  color: #9CA3AF;
  max-width: 280px;
  line-height: 1.5;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #374151;
  font-size: 13px;
  color: #9CA3AF;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero h1 {
    font-size: 44px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .hero {
    padding: 48px 20px 64px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-lead {
    font-size: 17px;
  }
  .features, .pitch, .cta {
    padding: 64px 20px;
  }
  .section-title {
    font-size: 30px;
  }
  .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .cta h2 {
    font-size: 28px;
  }
  main.legal {
    padding: 32px 20px;
  }
  main.legal h1 {
    font-size: 28px;
  }
  main.legal h2 {
    font-size: 20px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .pitch-stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pitch-stat-value {
    font-size: 42px;
  }
  .phone-mockup {
    width: 240px;
    height: 480px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
}
