/* MargoSuite — light, card-based layout.
   Drop-in extensions (no build step):
   - Screenshot: add <img> inside .preview; the sketch hides automatically.
   - Video: <div class="video-frame"><iframe ...></iframe></div>
   - Pricing: <section class="section" id="pricing"> with .pricing-grid > .price-card
   - Gallery: .gallery around extra .preview figures
*/

:root {
  --bg: #f4f7f6;
  --bg-accent: #e7f0ee;
  --surface: #ffffff;
  --ink: #172421;
  --muted: #5c6b67;
  --line: #e1ebe7;
  --accent: #0d6b60;
  --accent-dark: #0a524a;
  --accent-soft: #e6f4f1;
  --shadow: 0 16px 40px rgba(23, 36, 33, 0.06);
  --radius: 18px;
  --max: 1120px;
  --prose: 760px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --sheets: #1f7a4d;
  --cloud: #1d4e89;
  --slides: #9a6408;
  --mail: #9a3d4c;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 90% -10%, var(--bg-accent), transparent 60%),
    var(--bg);
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 40;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: #c9d7d3;
}

.button--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-panel a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-weight: 700;
}

.hero-panel a span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-panel a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.section {
  padding: 1.5rem 0 4rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card .eyebrow {
  margin-bottom: 0.35rem;
}

.product-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.product-list li + li {
  margin-top: 0.25rem;
}

.card--sheets { --product: var(--sheets); }
.card--cloud { --product: var(--cloud); }
.card--slides { --product: var(--slides); }
.card--mail { --product: var(--mail); }

.card .eyebrow {
  color: var(--product, var(--accent-dark));
}

.preview {
  margin: 0;
  background: linear-gradient(180deg, #f8fbfa, #eef3f1);
  border-bottom: 1px solid var(--line);
  min-height: 190px;
}

.preview img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.preview:has(img) .sketch {
  display: none;
}

.sketch {
  height: 210px;
  margin: 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.8rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 28px repeat(4, 1fr);
  gap: 4px;
  height: 100%;
}

.sheet-grid span {
  background: #f3f6f5;
  border-radius: 4px;
}

.sheet-grid span:first-child,
.sheet-grid span:nth-child(-n + 5) {
  background: #e4eeeb;
}

.sheet-grid .hot {
  background: #d9f3df;
  box-shadow: inset 0 0 0 2px var(--sheets);
}

.file-list,
.mail-list {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  height: 100%;
}

.file-list i,
.mail-list i {
  display: block;
  height: 0.85rem;
  border-radius: 6px;
  background: #e7eef5;
  font-style: normal;
}

.file-list i:nth-child(2) { width: 86%; background: #d5e4f5; }
.file-list i:nth-child(3) { width: 70%; }
.file-list i:nth-child(4) { width: 78%; background: #d5e4f5; }

.slide-canvas {
  height: 100%;
  border-radius: 8px;
  background: #fffaf2;
  border: 1px solid #f0e2c8;
  padding: 1rem;
}

.slide-canvas b,
.slide-canvas em {
  display: block;
  border-radius: 6px;
  background: #f3e2c2;
}

.slide-canvas b { height: 0.9rem; width: 55%; margin-bottom: 0.8rem; }
.slide-canvas em { height: 0.55rem; width: 80%; margin-top: 0.45rem; background: #f7edd9; }

.mail-list i { width: 100%; }
.mail-list i:nth-child(odd) { background: #f8e8eb; width: 92%; }

.permission-grid,
.pricing-grid,
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.permission,
.price-card,
.contact-card,
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.permission,
.price-card {
  padding: 1.2rem 1.25rem 1.3rem;
}

.permission h3,
.price-card h3 {
  margin-bottom: 0.4rem;
}

.permission p,
.price-card p {
  margin: 0;
  color: var(--muted);
}

.callout {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
  background: var(--accent-soft);
  border-color: #cfe4df;
}

.callout p:last-child {
  margin-bottom: 0;
}

.contact-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.contact-card a[href^="mailto:"] {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  align-items: start;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 700;
}

.fine-print {
  max-width: 42rem;
  margin: 0.8rem 0 0;
}

.legal {
  padding: 3rem 0 4rem;
}

.legal-layout {
  width: min(var(--prose), 100%);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: #24312e;
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101816;
  border-radius: 12px;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.25rem 0 0.6rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .card-grid,
  .permission-grid,
  .pricing-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
