/* ============================================================================
   Video Postcard — design system
   ----------------------------------------------------------------------------
   Direction: AIRMAIL. The product's whole charm is that it looks like something
   that arrived in the post, so the visual language is postal — cream paper,
   ink blue, postal red, stamps and postmarks — but executed with modern
   restraint: generous space, confident type, no clutter and no skeuomorphic
   kitsch. Traditional object, contemporary frame.

   The audience is realtors, car salespeople and families, and the seller is a
   man who has to win a room in thirteen seconds. So: large type, high contrast,
   obvious next step, nothing that needs explaining.
   ========================================================================== */

:root {
  /* ---- ink & paper ---- */
  --ink:        #16202e;
  --ink-2:      #3d4a5c;
  --ink-3:      #6b7788;
  --paper:      #fbf7ef;   /* the card itself */
  --page:       #f4f1ea;   /* the desk it sits on */
  --white:      #ffffff;
  --line:       #e6dfd2;
  --line-soft:  #f0eae0;

  /* ---- postal accents ---- */
  --post-red:   #c8102e;
  --post-blue:  #14385f;

  /* ---- brand accent (overridden per brand) ---- */
  --accent:      #14385f;
  --accent-soft: #e9eff6;
  --accent-ink:  #ffffff;

  --ok:   #146c43;
  --warn: #9a5b06;
  --bad:  #b3261e;

  /* ---- type ---- */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- shape ---- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  /* ---- elevation: soft, paper-like, never neon ---- */
  --lift-1: 0 1px 2px rgba(22,32,46,.06), 0 2px 6px rgba(22,32,46,.05);
  --lift-2: 0 2px 6px rgba(22,32,46,.07), 0 10px 28px rgba(22,32,46,.10);
  --lift-3: 0 4px 14px rgba(22,32,46,.10), 0 26px 60px rgba(22,32,46,.16);

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fraunces is a variable font; these axes give it warmth without whimsy. */
h1, h2, h3, .display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.16rem; line-height: 1.3; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 2px; }

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 1.8em;
}
.muted   { color: var(--ink-3); font-size: .93rem; }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .7em;
}

/* ---------------------------------------------------------------- layout -- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 520px; margin: 0 auto; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
@media (max-width: 700px) { .section { padding: 48px 0; } }

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- masthead -- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* A tiny stamp as the mark — the product's whole idea in 26 pixels. */
.logo .mark {
  width: 26px; height: 31px; flex: none; border-radius: 2px;
  background: var(--accent); position: relative;
  -webkit-mask: radial-gradient(circle 2.6px at 0 0, #0000 96%, #000) -2.6px -2.6px / 8.6px 8.6px round;
          mask: radial-gradient(circle 2.6px at 0 0, #0000 96%, #000) -2.6px -2.6px / 8.6px 8.6px round;
}
.logo .mark::after {
  content: ""; position: absolute; inset: 5px;
  border: 1.5px solid rgba(255,255,255,.65); border-radius: 1px;
}
.logo .name {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); line-height: 1.1; letter-spacing: -.01em;
}
.logo .name small {
  display: block; font-family: var(--body); font-weight: 400;
  font-size: .69rem; color: var(--ink-3); letter-spacing: .01em; margin-top: 2px;
}
.masthead nav { display: flex; align-items: center; gap: 6px; }
.masthead nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.masthead nav a:hover { color: var(--ink); background: rgba(22,32,46,.05); }
.masthead nav a.btn { color: var(--accent-ink); background: var(--accent); padding: 8px 15px; }
.masthead nav a.btn:hover { color: var(--accent-ink); background: var(--accent); }
.masthead nav a.btn.ghost { color: var(--ink); background: var(--white); }
@media (max-width: 620px) {
  .masthead nav a.hide-sm { display: none; }
  .logo .name small { display: none; }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-size: .97rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: var(--lift-1);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--lift-2); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.quiet { background: transparent; color: var(--ink-2); box-shadow: none; border-color: transparent; }
.btn.quiet:hover { background: rgba(22,32,46,.05); color: var(--ink); transform: none; box-shadow: none; }
.btn.danger { background: var(--white); color: var(--bad); border-color: #eccbc8; }
.btn.sm { padding: 8px 15px; font-size: .86rem; }
.btn.lg { padding: 16px 30px; font-size: 1.03rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------- cards -- */
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px; box-shadow: var(--lift-1);
}
.panel.flush { padding: 0; overflow: hidden; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }

.feature { padding: 26px; border-radius: var(--r); background: var(--white);
           border: 1px solid var(--line); box-shadow: var(--lift-1); }
.feature .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: .92rem; margin-bottom: 14px;
}

/* ---------------------------------------------------------------- forms --- */
label { display: block; font-weight: 600; font-size: .88rem; margin: 20px 0 7px; color: var(--ink); }
label .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-3); margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-soft);
}
::placeholder { color: #a9b1bd; }

.flash { padding: 13px 17px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .95rem; }
.flash.error { background: #fdeceb; color: #8c1d18; border: 1px solid #f3c9c5; }
.flash.ok    { background: #e7f4ec; color: #14532d; border: 1px solid #b8e0c6; }

/* ---------------------------------------------------------------- table --- */
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: .71rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.pill.off { background: #f1efea; color: var(--ink-3); }

/* ---------------------------------------------------------------- footer -- */
.site-foot {
  border-top: 1px solid var(--line); padding: 40px 24px; text-align: center;
  color: var(--ink-3); font-size: .88rem; background: var(--white);
}
.site-foot .logo { justify-content: center; margin-bottom: 14px; }

[hidden] { display: none !important; }

/* ============================ landing page ============================== */
.hero { padding: 78px 0 64px; position: relative; overflow: hidden; }
.hero::before {                       /* a faint postmark ring, barely there */
  content: ""; position: absolute; top: -140px; right: -130px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 44px solid var(--accent); opacity: .045; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
  position: relative;
}
@media (max-width: 940px) {
  .hero { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: .34em; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero .reassure { margin: 20px 0 0; font-size: .87rem; color: var(--ink-3); }

/* the tilted stack of cards in the hero */
.hero-art { position: relative; min-height: 340px; }
.hero-art .card-back, .hero-art .card-front {
  position: absolute; border-radius: 10px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--lift-3);
}
.hero-art .card-back {
  inset: 30px 46px 40px 8px; transform: rotate(-6deg);
  background: repeating-linear-gradient(45deg,#f7f2e7 0 9px,#f2ecdf 9px 18px);
}
.hero-art .card-front {
  inset: 0 0 46px 44px; transform: rotate(2.4deg); overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-art .strip {
  height: 9px; flex: none;
  background: repeating-linear-gradient(45deg,
    var(--post-red) 0 9px, var(--post-red) 9px 18px, #fff 18px 27px,
    var(--post-blue) 27px 36px, var(--post-blue) 36px 45px, #fff 45px 54px);
  opacity: .9;
}
.hero-art .inner { padding: 20px 22px; display: grid; grid-template-columns: 1fr 96px; gap: 14px; flex: 1; }
.hero-art .kicker { font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.hero-art .head { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--accent); line-height: 1.16; margin: 5px 0 10px; }
.hero-art .lines span { display: block; height: 6px; border-radius: 3px; background: #e8e1d3; margin-bottom: 7px; }
.hero-art .lines span:nth-child(2) { width: 88%; }
.hero-art .lines span:nth-child(3) { width: 66%; }
.hero-art .stamp-mini {
  width: 60px; height: 72px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, #fff);
  display: grid; place-items: center; color: var(--accent); font-size: 1.1rem;
  -webkit-mask: radial-gradient(circle 3px at 0 0, #0000 96%, #000) -3px -3px / 10px 10px round;
          mask: radial-gradient(circle 3px at 0 0, #0000 96%, #000) -3px -3px / 10px 10px round;
}
.hero-art .postmark-mini {
  font-size: .55rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); transform: rotate(-8deg); text-align: center; margin-top: 6px;
}
.hero-art .play-chip {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--white); border-radius: 999px; padding: 9px 18px 9px 12px;
  box-shadow: var(--lift-2); display: flex; align-items: center; gap: 9px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.hero-art .play-chip i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
}
.hero-art .play-chip i::after {
  content: ""; margin-left: 2px;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* logos / audience strip */
.audience-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white); padding: 20px 0;
}
.audience-strip ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 10px 34px; justify-content: center;
  font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}

/* section heading block */
.sec-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* A.I. cost cards — the price is part of the design, never a footnote */
.ai-card { position: relative; }
.ai-card .price-tag {
  display: inline-block; margin-top: 12px; white-space: nowrap; font-size: .8rem; font-weight: 700;
  color: var(--warn); background: #fff8ec; border: 1px solid #f6dcb2;
  padding: 5px 12px; border-radius: 999px;
}
.note-band {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
  border-radius: var(--r); padding: 24px 26px; margin-top: 30px;
}
.note-band h3 { margin-top: 0; }

/* pricing */
.plan {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--lift-1);
}
.plan.featured { border-color: var(--accent); box-shadow: var(--lift-2); position: relative; }
.plan.featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan .price { font-family: var(--display); font-size: 2.3rem; color: var(--ink); margin: 10px 0 2px; line-height: 1; }
.plan .price small { font-family: var(--body); font-size: .88rem; color: var(--ink-3); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; font-size: .94rem; color: var(--ink-2); }
.plan ul li { padding: 7px 0 7px 26px; position: relative; }
.plan ul li::before {
  content: ""; position: absolute; left: 3px; top: 14px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan form, .plan .foot { margin-top: auto; }

/* ======================== studio: media pickers ========================= */
.media-slot {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); overflow: hidden; margin: 16px 0 0;
}
.media-slot > .m-help { margin: 16px 20px 14px; font-size: .9rem; color: var(--ink-3); }
.m-tabs { display: flex; border-bottom: 1px solid var(--line); background: #faf8f3; }
.m-tab {
  flex: 1; border: 0; background: none; cursor: pointer;
  font-family: var(--body); font-size: .87rem; font-weight: 600; color: var(--ink-3);
  padding: 13px 8px; border-bottom: 2.5px solid transparent;
}
.m-tab:hover { color: var(--accent); }
.m-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--white); }
.m-pane { padding: 20px; }
.m-live {
  width: 100%; max-width: 440px; border-radius: 10px; background: #11151b;
  display: block; margin-bottom: 14px; box-shadow: var(--lift-1);
}
.m-file {
  display: block; width: 100%; padding: 14px; font-size: .93rem;
  border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  background: #fbf9f5; cursor: pointer;
}
.m-file:hover { border-color: var(--accent); background: var(--accent-soft); }
.m-link { margin-bottom: 4px; }
.m-preview { margin-top: 16px; }
.m-preview video, .m-preview img {
  max-width: 100%; max-height: 260px; border-radius: 10px; display: block;
  box-shadow: var(--lift-1);
}
.m-preview audio { width: 100%; }
.m-preview .m-note { font-size: .87rem; color: var(--ink-3); margin: 8px 0 0; }
.m-status {
  margin: 0 20px; padding: 0 0 16px; font-size: .89rem; color: var(--ink-3); min-height: 1.2em;
}
.m-status.ok   { color: var(--ok);   font-weight: 600; }
.m-status.err  { color: var(--bad);  font-weight: 600; }
.m-status.warn { color: var(--warn); font-weight: 600; }
.m-foot { padding: 0 20px 18px; margin: 0; }

/* background swatches — show the paper, do not describe it */
.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
@media (max-width: 620px) { .bg-grid { grid-template-columns: repeat(2, 1fr); } }
.bg-swatch {
  border: 2px solid var(--line); border-radius: var(--r-sm); padding: 0; cursor: pointer;
  background: none; overflow: hidden; font: inherit; text-align: center;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.bg-swatch:hover { border-color: color-mix(in srgb, var(--accent) 45%, #fff); }
.bg-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.bg-swatch .sw { height: 74px; display: grid; place-items: center; }
.bg-swatch .sw i {
  display: block; width: 58px; height: 38px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08); box-shadow: var(--lift-1);
}
.bg-swatch .nm {
  display: block; padding: 9px 4px; font-size: .82rem; font-weight: 600;
  color: var(--ink-3); border-top: 1px solid var(--line); background: var(--white);
}
.bg-swatch.selected .nm { color: var(--accent); }

/* the A.I. cost notice inside the studio */
.ai-note {
  background: #fff8ec; border: 1px solid #f6dcb2; border-radius: var(--r);
  padding: 20px 22px; margin: 22px 0; font-size: .93rem; color: #7a4c11;
}
.ai-note ul { margin: 10px 0 0; padding-left: 20px; }
.ai-note li { margin-bottom: 5px; }

/* page-builder block rows */
.block-row {
  display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px;
  align-items: start; margin-bottom: 10px;
}
@media (max-width: 760px) { .block-row { grid-template-columns: 1fr; } }
