/* knownterms.com — Avenue Link */

:root {
    --site-primary:   var(--color-primary);
    --site-secondary: var(--color-secondary);
    --site-accent:    var(--color-accent);
    --site-ink:       #15261f;
    --site-slate:     #435750;
    --site-muted:     #71857d;
    --site-border:    #E4DDCC;

    --site-radius-lg: 18px;
    --site-radius-md: 14px;
    --site-shadow-soft: 0 14px 46px rgba(21, 38, 31, 0.14);
    --site-shadow-lift: 0 12px 28px rgba(21, 38, 31, 0.18);
    --site-focus: 0 0 0 4px rgba(var(--color-primary-rgb), 0.22), 0 0 0 7px rgba(var(--color-primary-rgb), 0.10);
}

/* ===========================
   Header — paper, with a pine top rule
   =========================== */
.site-title::before {
    content: none;
    display: none;
}

.site-header {
    background: var(--color-surface, #F7F4EC);
    border-top: 4px solid var(--site-primary);
    border-bottom: 1px solid var(--site-border);
    box-shadow: none;
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
}

.site-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    color: var(--site-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-title-mark {
    flex-shrink: 0;
}

/* ===========================
   Form hero — "legal pad"
   Ruled paper with a double red margin rule; copy left, form right
   on wide screens (form stays first on phones).
   =========================== */
.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.form-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: var(--color-surface, #F7F4EC);
    background-image: repeating-linear-gradient(
        180deg,
        rgba(var(--color-primary-rgb), 0) 0 31px,
        rgba(var(--color-primary-rgb), 0.10) 31px 32px
    );
}

/* Double margin rule — wide screens only, so it never runs under the form on phones */
.form-background::before {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(max(0px, (100% - 1200px) / 2) + 1.25rem);
    width: 4px;
    border-left: 1px solid rgba(var(--color-secondary-rgb), 0.55);
    border-right: 1px solid rgba(var(--color-secondary-rgb), 0.55);
}

.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 1rem 1rem 2.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.form-container {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0;
    min-height: 0;
    width: 100%;          /* grid item + auto margins would otherwise shrink to the iframe's 300px default */
    max-width: 600px;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

/* ===========================
   Offer card (scalevo slider iframe): plain wrapper with the green
   "Your request" file-folder tab on top. The slider brings its own themed
   card, so no white padding/border/shadow. The iframe itself is rounded
   (not the wrapper, which would clip the tab), with the top-left corner
   left square where the tab attaches.
   =========================== */
.offer-card {
    position: relative;
    max-width: 600px;
    margin: 28px 0 0;
    padding: 0;
    background: transparent;
}

.offer-card::before {
    content: "Your request";
    position: absolute;
    top: -28px;
    left: 0;
    height: 28px;
    line-height: 28px;
    padding: 0 0.95rem;
    border-radius: 8px 8px 0 0;
    background: var(--site-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#form-frame {
    display: block;
    width: 100%;
    border-radius: 0 var(--site-radius-lg) var(--site-radius-lg) var(--site-radius-lg);
}

/* Hero copy */
.hero-spacer {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--site-secondary);
    padding: 0.35rem 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    margin: 0 0 1.1rem;
}

.hero-headline {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--site-ink);
    margin: 0 0 1rem;
}

/* Highlighter swipe over the key phrase */
.hero-headline span {
    color: var(--site-primary);
    background: linear-gradient(transparent 60%, rgba(var(--color-secondary-rgb), 0.22) 60% 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--site-slate);
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

.hero-clauses {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 30rem;
    border-top: 1px dashed rgba(var(--color-primary-rgb), 0.35);
}

.hero-clauses li {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(var(--color-primary-rgb), 0.35);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--site-ink);
}

.hero-clauses .kt-sec {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    color: var(--site-secondary);
    min-width: 2.25rem;
}

@media (min-width: 1000px) {
    .form-section {
        padding: 2.5rem 0 4rem;
    }

    .form-background::before {
        display: block;
    }

    .hero-split {
        grid-template-areas: "heroSpacer heroForm";
        grid-template-columns: minmax(0, 1fr) 540px;
        gap: 4rem;
        align-items: center;
        padding: 2.5rem 1.5rem 3rem 3.75rem;
    }

    .hero-split .form-container {
        grid-area: heroForm;
        max-width: none;
    }

    .hero-spacer {
        grid-area: heroSpacer;
        max-width: none;
    }
}

/* ===========================
   Steps section — "summary of terms" document
   A single sheet with a folded corner, margin rule, § clauses and a
   signature line. Rendered by the inline script in index.html.
   =========================== */
.steps-section {
    background: var(--color-surface, #F7F4EC);
}

#hero-steps {
    padding: 3.5rem 1.25rem 3rem;
}

/* drop-shadow (not box-shadow) so the shadow follows the clipped corner */
#hero-steps .steps-layout {
    max-width: 880px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 30px rgba(21, 38, 31, 0.10)) drop-shadow(0 1px 1px rgba(21, 38, 31, 0.06));
}

#hero-steps .kt-doc {
    position: relative;
    background: #ffffff;
    padding: 2.25rem 1.5rem 2rem 2.5rem;
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}

/* Folded corner */
#hero-steps .kt-doc::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(225deg, rgba(0, 0, 0, 0) 50%, #E7E0CF 50%);
}

/* Margin rule */
#hero-steps .kt-doc::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.25rem;
    width: 1px;
    background: rgba(var(--color-secondary-rgb), 0.45);
}

#hero-steps .kt-doc-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--site-secondary);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--site-ink);
    margin: 0 3rem 1.25rem 0;
}

#hero-steps .kt-doc-label span:last-child {
    color: var(--site-muted);
    letter-spacing: 0.12em;
}

#hero-steps .kt-doc-title {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--site-ink);
    margin: 0 0 0.4rem;
}

#hero-steps .kt-doc-subtitle {
    font-size: 1rem;
    color: var(--site-muted);
    margin: 0;
}

#hero-steps .kt-clauses {
    margin: 1.75rem 0 0;
    padding: 0;
}

#hero-steps .kt-clause {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--site-border);
}

#hero-steps .kt-clause dt {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-family: 'Zilla Slab', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--site-ink);
}

#hero-steps .kt-clause-no {
    font-size: 0.95rem;
    color: var(--site-secondary);
    white-space: nowrap;
}

#hero-steps .kt-clause dd {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--site-slate);
}

#hero-steps .kt-doc-sign {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 280px;
    margin: 1.5rem 0 0 auto;
}

#hero-steps .kt-sign-line {
    position: relative;
    height: 2.25rem;
    border-bottom: 1.5px solid var(--site-ink);
}

#hero-steps .kt-sign-line::after {
    content: "\2713";
    position: absolute;
    left: 0.5rem;
    bottom: 0.15rem;
    font-family: 'Zilla Slab', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--site-primary);
    transform: rotate(-6deg);
}

#hero-steps .kt-sign-caption {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-muted);
}

@media (min-width: 768px) {
    #hero-steps .kt-doc {
        padding: 2.75rem 3rem 2.5rem 3.75rem;
    }

    #hero-steps .kt-doc::before {
        left: 2rem;
    }

    #hero-steps .kt-clause {
        grid-template-columns: 260px 1fr;
        gap: 2rem;
        padding: 1.25rem 0;
    }

    #hero-steps .kt-clause dd {
        padding-top: 0.15rem;
    }
}

/* ===========================
   CTA band — tear-off ticket
   Pine main panel + paper stub, perforated edge with notches, and a
   "No obligation" stamp.
   =========================== */
.cta-band {
    /* Shared _cloudinary/styles.css sets .additional-content { display: none }
       by default (most sites leave this placeholder empty) — override it since
       this site actually uses it. */
    display: block;
    background: var(--color-surface, #F7F4EC);
    padding: 1rem 1rem 4rem;
}

.kt-ticket {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(21, 38, 31, 0.16);
}

.kt-ticket-main {
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 31px, rgba(255, 255, 255, 0.05) 31px 32px),
        var(--site-primary);
    color: #ffffff;
    padding: 2.5rem 1.75rem 2.25rem;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, white 55%, var(--site-secondary));
    margin: 0 0 0.75rem;
}

.cta-band-copy {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1rem;
    max-width: 22ch;
}

.cta-band-copy em {
    font-style: normal;
    color: color-mix(in srgb, white 55%, var(--site-secondary));
}

.cta-band-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 48ch;
}

.kt-ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 3.5rem 1.5rem 2rem;
    background: #FFFDF8;
    border-top: 2px dashed rgba(var(--color-primary-rgb), 0.35);
}

/* Perforation notches (cut in the surface colour) */
.kt-ticket-stub::before,
.kt-ticket-stub::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-surface, #F7F4EC);
    top: -15px;
}

.kt-ticket-stub::before { left: -14px; }
.kt-ticket-stub::after  { right: -14px; }

.kt-stamp {
    position: absolute;
    top: 1.25rem;
    right: 1rem;
    padding: 0.25rem 0.6rem;
    border: 2px solid var(--site-secondary);
    border-radius: 6px;
    outline: 1px solid rgba(var(--color-secondary-rgb), 0.5);
    outline-offset: 2px;
    font-family: 'Zilla Slab', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--site-secondary);
    transform: rotate(-8deg);
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background: var(--site-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cta-button svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    transition: transform 160ms ease;
}

.cta-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(var(--color-primary-rgb), 0.34);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

.cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.35), 0 10px 22px rgba(var(--color-primary-rgb), 0.28);
}

.kt-stub-note {
    font-size: 0.8125rem;
    color: var(--site-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .cta-band {
        padding: 1rem 2rem 4.5rem;
    }

    .kt-ticket {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .kt-ticket-main {
        padding: 3rem;
    }

    .kt-ticket-stub {
        border-top: none;
        border-left: 2px dashed rgba(var(--color-primary-rgb), 0.35);
        padding: 3rem 2rem;
    }

    .kt-ticket-stub::before,
    .kt-ticket-stub::after {
        left: -15px;
        right: auto;
    }

    .kt-ticket-stub::before { top: -14px; }
    .kt-ticket-stub::after  { top: auto; bottom: -14px; }
}

/* ===========================
   Footer — footer-floating-card
   =========================== */
.footer-floating-card {
  background: var(--color-footer-bg);
  color: #E4EDE8;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.footer-floating-card *, .footer-floating-card *::before, .footer-floating-card *::after { box-sizing: border-box; }

.footer-floating-card .accent-card {
  margin: 0 16px;
  border-radius: 16px;
  padding: 22px 18px 20px;
  transform: translateY(-22px);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.footer-floating-card .accent-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
}
.footer-floating-card .accent-headline {
  font-family: 'Zilla Slab', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.footer-floating-card .accent-sub {
  font-size: 13px;
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.5;
}

.footer-floating-card .ca-row { display: grid; gap: 10px; }
.footer-floating-card .ca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.footer-floating-card .ca::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease;
}
.footer-floating-card .ca:hover, .footer-floating-card .ca:focus-visible { transform: translateY(-1px); outline: none; }
.footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 12px; }
.footer-floating-card .ca:active { transform: translateY(0); }
.footer-floating-card .ca .ca-sub { font-size: 12px; font-weight: 500; opacity: 0.9; letter-spacing: 0; }

.footer-floating-card .ca.primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.footer-floating-card .ca.primary:hover, .footer-floating-card .ca.primary:focus-visible { background: #f3f8f5; }

.footer-floating-card .ca.secondary {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.footer-floating-card .ca.secondary:hover, .footer-floating-card .ca.secondary:focus-visible { background: rgba(255,255,255,.18); }

.footer-floating-card .links {
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }

@media (min-width: 600px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.footer-floating-card .col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  color: #86A89A;
}
.footer-floating-card .col-link {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  text-decoration: none;
  color: #BFD3CA;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-floating-card .col-link:hover, .footer-floating-card .col-link:focus-visible { color: #ffffff; outline: none; }

.footer-floating-card .meta {
  padding: 0 22px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #6C8A7E;
  text-align: center;
}
.footer-floating-card .meta-divider { height: 1px; margin: 0 0 16px; background: #1C3A30; }
.footer-floating-card .meta-name { display: block; font-size: 13px; font-weight: 500; color: #CFE0D8; margin-bottom: 2px; }
.footer-floating-card .meta-copy { margin-top: 8px; display: block; }

@media (min-width: 768px) {
  .footer-floating-card { padding: 56px 0 28px; }
  .footer-floating-card .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 56px;
    align-items: start;
  }
  .footer-floating-card .accent-card {
    margin: 0;
    transform: none;
    border-radius: 18px;
    padding: 28px 28px 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
  }
  .footer-floating-card .accent-kicker { font-size: 11px; margin-bottom: 12px; }
  .footer-floating-card .accent-headline { font-size: 28px; margin-bottom: 8px; }
  .footer-floating-card .accent-sub { font-size: 14px; margin-bottom: 20px; }
  .footer-floating-card .ca { padding: 16px 42px 16px 18px; }
  .footer-floating-card .ca::after { right: 18px; width: 8px; height: 8px; }
  .footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 14px; }

  .footer-floating-card .links {
    padding: 0;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }
  .footer-floating-card .col-title { font-size: 11px; margin-bottom: 14px; }
  .footer-floating-card .col-link { font-size: 14px; padding: 6px 0; }

  .footer-floating-card .meta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 22px 40px 0;
    font-size: 13px;
    border-top: 1px solid #1C3A30;
  }
  .footer-floating-card .meta-divider { display: none; }
  .footer-floating-card .meta-name { font-size: 14px; font-weight: 600; color: #E4EDE8; margin: 0; }
  .footer-floating-card .meta-address { font-size: 12px; opacity: 0.85; }
  .footer-floating-card .meta-copy { margin: 8px 0 0; font-size: 12px; display: block; }
}

@media (min-width: 1100px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

#footer-company,
#footer-site-name {
    font-style: normal;
}
