/*
Theme Name: FoamDesk
Author: FoamDesk
Description: A calm, premium launch site for FoamDesk, the CRM built for RV detailing businesses.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: foamdesk
*/

:root {
  --ink: #102a43;
  --muted: #5f7184;
  --blue: #1477f8;
  --blue-dark: #075cca;
  --aqua: #29c7b8;
  --line: #dce7f1;
  --surface: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(29, 72, 113, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(20, 119, 248, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(41, 199, 184, 0.13), transparent 24rem),
    #f7fbff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.fd-shell { min-height: 100vh; overflow: hidden; }

.fd-nav,
.fd-hero,
.fd-features,
.fd-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

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

.fd-footer a {
  color: inherit;
  text-decoration: none;
}

.fd-footer a:hover {
  color: var(--fd-ink);
}

.fd-legal-wrap {
  min-height: calc(100vh - 190px);
  padding: 80px 24px;
}

.fd-legal {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--fd-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(31, 45, 61, 0.08);
}

.fd-legal h1 {
  margin: 16px 0 30px;
  color: var(--fd-ink);
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.055em;
}

.fd-legal-content {
  color: var(--fd-muted);
  font-size: 16px;
  line-height: 1.75;
}

.fd-legal-content h2 {
  margin: 34px 0 8px;
  color: var(--fd-ink);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.fd-legal-content a {
  color: var(--fd-blue);
}

.fd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.fd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.fd-brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(22, 48, 92, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 119, 248, 0.16);
}

.fd-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fd-nav-link,
.fd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fd-nav-link { border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.fd-button { color: #fff; background: var(--blue); box-shadow: 0 14px 30px rgba(20,119,248,.25); }
.fd-nav-link:hover, .fd-button:hover { transform: translateY(-2px); }
.fd-button:hover { background: var(--blue-dark); }
.fd-nav-link:focus-visible, .fd-button:focus-visible { outline: 3px solid rgba(20,119,248,.28); outline-offset: 3px; }

.fd-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: clamp(62px, 9vw, 112px) 0 76px;
}

.fd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(20,119,248,.18);
  border-radius: 999px;
  color: #0758b8;
  background: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 720;
}

.fd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(41,199,184,.13); }

.fd-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.fd-gradient { color: var(--blue); }

.fd-lede {
  max-width: 620px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.fd-note { margin: 16px 0 0; color: #718397; font-size: .92rem; }

.fd-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(194,211,225,.8);
  border-radius: 32px;
  background: #f8fbff;
  box-shadow: var(--shadow);
  transform: rotate(.7deg);
}

.fd-hero-visual::before {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(41,199,184,.16);
  filter: blur(18px);
  z-index: 1;
  pointer-events: none;
}

.fd-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0 110px;
}

.fd-feature { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.68); }
.fd-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 18px; border-radius: 12px; color: var(--blue); background: #e5f1ff; font-weight: 800; }
.fd-feature h2 { margin: 0 0 9px; font-size: 1.08rem; letter-spacing: -.025em; }
.fd-feature p { margin: 0; color: var(--muted); line-height: 1.55; }

.fd-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 38px; border-top: 1px solid var(--line); color: #718397; font-size: .86rem; }

@media (max-width: 840px) {
  .fd-hero { grid-template-columns: 1fr; padding-top: 52px; }
  .fd-hero-visual { width: 100%; max-width: 680px; transform: none; }
  .fd-features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .fd-nav, .fd-hero, .fd-features, .fd-footer { width: min(100% - 28px, 1160px); }
  .fd-nav-link { padding-inline: 14px; font-size: .86rem; }
  .fd-hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .fd-hero-visual { border-radius: 24px; }
  .fd-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
