/* ═══════════════════════════════════════════════════════════════════════════
   Sheets Portal — Material 3 Marketing Site
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Google Workspace Accent Palette */
  --blue:       #4285F4;
  --green:      #0F9D58;
  --yellow:     #FBBC04;
  --red:        #EA4335;

  /* Neutral Surfaces */
  --bg:         #FAFAFA;
  --surface:    #FFFFFF;
  --border:     #E8EAED;
  --text:       #1F1F1F;
  --text-mid:   #5F6368;
  --text-light: #9AA0A6;

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

  /* Radii */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-pill: 100px;

  /* Elevation (soft) */
  --elevation-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --elevation-2: 0 2px 8px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);

  /* Sizing */
  --nav-h: 68px;
  --content-max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.navInner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navBrandLogo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(66,133,244,0.15));
}

.navBrandText {
  font-size: 22px;
  font-weight: 600;
  color: #4285F4;
  letter-spacing: -0.015em;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navLinks a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.navLinks a:hover {
  background: #F1F3F4;
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  box-shadow: var(--elevation-1);
}

.btnPrimary {
  background: var(--blue);
  color: #fff;
}

.btnPrimary:hover {
  background: #3b77e0;
}

.btnOutline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btnOutline:hover {
  background: #E8F0FE;
}

.btnLight {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btnLight:hover {
  background: rgba(255,255,255,0.3);
}

.btnLg {
  padding: 14px 32px;
  font-size: 15px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4F8FF 50%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 70% 45%, rgba(66,133,244,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(15,157,88,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.heroInner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.heroContent { max-width: 520px; }

.heroBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F0FE;
  color: var(--blue);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.heroBadge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}

.heroActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.heroBadgeRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.heroBadgeLabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.heroBadgeLabelStrong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.colorDots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.colorDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.colorDotBlue   { background: var(--blue); }
.colorDotGreen  { background: var(--green); }
.colorDotYellow { background: var(--yellow); }
.colorDotRed    { background: var(--red); }

/* ── Portal Mockup ────────────────────────────────────────────────────────── */

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

.mockup {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
  overflow: hidden;
}

.mockupTopbar {
  background: var(--blue);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockupTitle {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.mockupSubtitle {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 1px;
}

.mockupAvatar {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.mockupTabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mockupTab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
}

.mockupTabActive {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.mockupBody {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockupLabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.mockupRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.mockupRow:hover {
  border-color: #D2E3FC;
}

.mockupIcon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.mockupIconYellow { background: #FEF7E0; }
.mockupIconPurple { background: #EDE7F6; }
.mockupIconGreen  { background: #E6F4EA; }

.mockupRowInfo { flex: 1; min-width: 0; }

.mockupRowTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockupRowMeta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

.mockupBadge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.mockupBadgeYellow { background: #FEF7E0; color: #E37400; }
.mockupBadgeBlue   { background: #E8F0FE; color: var(--blue); }
.mockupBadgeGreen  { background: #E6F4EA; color: var(--green); }

.mockupDivider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.mockupFileRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-mid);
}

.mockupFileName {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.mockupFileSize {
  color: var(--text-light);
  font-size: 12px;
}

.mockupFooter {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
}

.mockupInput {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-light);
  font-family: var(--font);
}

.mockupSendBtn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.mockupSendBtn:hover {
  box-shadow: var(--elevation-1);
}

/* ── Google Strip ─────────────────────────────────────────────────────────── */

.googleStrip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.googleStripInner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 24px;
  justify-content: center;
}

.googleProduct {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
}

.googleProductIcon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.googleStripLabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

/* ── Shared Sections ──────────────────────────────────────────────────────── */

section {
  padding: 100px 24px;
}

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

.sectionLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F0FE;
  color: var(--blue);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.sectionLabel::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sectionSub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.7;
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

.how {
  background: var(--surface);
  scroll-margin-top: var(--nav-h);
}

.howGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0;
  margin-top: 48px;
}

.howStep {
  padding: 32px 28px;
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
  border-radius: 0;
}

.howStep:hover {
  background: #F4F8FF;
  border-color: #D2E3FC;
  position: relative;
  z-index: 1;
}

.howNum {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 14px;
}

.howStep h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.howStep p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.features {
  background: var(--bg);
  scroll-margin-top: var(--nav-h);
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.featureCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.featureCard:hover {
  border-color: #D2E3FC;
  box-shadow: var(--elevation-1);
}

.featureIcon {
  width: 48px;
  height: 48px;
  background: #E8F0FE;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.featureCard h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.featureCard p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── CTA ──────────────────────────────────────────────────────────────────── */

.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}

.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}

.footerInner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footerBrand {
  max-width: 260px;
}

.footerBrand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 12px;
  display: block;
}

.footerBrand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footerCol h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footerCol ul {
  list-style: none;
}

.footerCol li {
  margin-bottom: 8px;
}

.footerCol a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footerCol a:hover {
  color: #fff;
}

.footerBottom {
  max-width: var(--content-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footerBottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.15s;
}

.footerBottom a:hover {
  color: #fff;
}

/* ── Legal Pages ──────────────────────────────────────────────────────────── */

.legalHero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 40px;
}

.legalHeroInner {
  max-width: 900px;
  margin: 0 auto;
}

.legalHero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legalMeta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 4px;
}

.legalMeta a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.legalMeta a:hover {
  text-decoration: underline;
}

.legalBody {
  padding: 60px 24px;
  background: var(--bg);
  min-height: 60vh;
}

.legalBodyInner {
  max-width: 900px;
  margin: 0 auto;
}

.legalBody h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

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

.legalBody p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legalBody ul {
  margin: 6px 0 14px 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.8;
}

.legalBody li {
  margin-bottom: 4px;
}

.legalBody a {
  color: var(--blue);
  font-weight: 600;
}

.legalBody strong {
  color: var(--text);
  font-weight: 700;
}

.legalFooter {
  background: var(--text);
  padding: 20px 24px;
}

.legalFooterInner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.legalFooterInner a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.15s;
}

.legalFooterInner a:hover {
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .heroInner { grid-template-columns: 1fr; gap: 48px; }
  .heroVisual { order: -1; }
  .hideMobile { display: none !important; }
  .navLinks { gap: 2px; }
  .navLinks a { padding: 8px 10px; font-size: 13px; }
  section { padding: 60px 20px; }
}

@media (max-width: 500px) {
  .heroVisual { display: none; }
  .hero { padding: 48px 20px; }
}
