/* The platform page (public/platform.html, /plataforma) and its contact form (public/_contact_form.html,
   public/contact.html): the pitch over the house identity, written mobile-first — generous vertical spacing on a phone
   (sections 3.25rem apart, cards 1.5rem, nothing touching), framed real screenshots, cards with a gold rule and the ✓
   lists; wider screens tighten the rhythm and split the blocks into two columns. Spacing is the design here (the first
   cut was rejected for looking cramped on a phone). Loaded by base.html after pages.css; read by ui-classes-defined. */

/* hero: the green brand hero split into copy and a framed capture with a phone over its corner */
.platform-hero { padding: 2.5rem 1.35rem 2.75rem; border-radius: var(--radius-2xl); }
@media (min-width: 640px) { .platform-hero { padding: 3.5rem 2.75rem 3.75rem; } }
@media (min-width: 1024px) { .platform-hero { padding: 4.25rem 3.5rem 4.5rem; } }
.platform-hero::after { right: -10%; bottom: -34%; width: 44%; max-width: 28rem; }
.platform-hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }   /* above the decorative layers of .hero-brand, which would otherwise eat every tap */
@media (min-width: 1024px) { .platform-hero-grid { grid-template-columns: 1.02fr .98fr; gap: 3.5rem; } }
.platform-hero-copy { max-width: 36rem; min-width: 0; }
.platform-hero-copy .hero-subtitle { max-width: 32rem; }
.platform-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 479px) { .platform-hero-actions .btn { width: 100%; } }
.platform-hero .assurances { margin-top: 2.25rem; border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .88); }
.platform-hero .assurances li::before { background-color: rgba(196, 136, 38, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C48826' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6'/%3E%3C/svg%3E"); }
.platform-hero-media { position: relative; display: grid; gap: 1.75rem; justify-items: center; min-width: 0; }
.platform-hero-media .mock-phone { width: 11rem; }
@media (min-width: 1024px) {
  .platform-hero-media { display: block; }
  .platform-hero-media .mock-window { margin-right: 3.5rem; }
  .platform-hero-media .mock-phone { position: absolute; right: 0; bottom: -1.75rem; width: 8.75rem; }
}

/* the frames: a quiet window for desktop captures, a Tinta bezel for phone captures */
.mock-window { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -34px rgba(0, 35, 27, .55); }
.mock-window::before { content: ""; display: block; height: 1.75rem; background-color: var(--surface-2); border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at .95rem 50%, var(--line-strong) 3.5px, transparent 4px), radial-gradient(circle at 1.8rem 50%, var(--line-strong) 3.5px, transparent 4px), radial-gradient(circle at 2.65rem 50%, var(--line-strong) 3.5px, transparent 4px); }
.mock-window img { display: block; width: 100%; height: auto; }
.platform-hero .mock-window { border-color: rgba(196, 136, 38, .55); }
.mock-phone { margin: 0; padding: .35rem; border-radius: 1.6rem; background: var(--ip-tinta); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 26px 52px -26px rgba(0, 35, 27, .7); }
.mock-phone img { display: block; width: 100%; height: auto; border-radius: 1.3rem; }
.mock-phone-lg { width: 15.5rem; margin-inline: auto; }
@media (min-width: 640px) { .mock-phone-lg { width: 17.5rem; } }

/* the page rhythm: sections far apart, two columns only when there is room */
.platform-section { margin: 3.5rem 0; }
.platform-section-first { margin-top: 3rem; }
@media (min-width: 1024px) { .platform-section { margin: 5rem 0; } }
.platform-section .section-head { margin-bottom: 1.75rem; }
.platform-split { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .platform-split { grid-template-columns: 2fr 3fr; gap: 3.5rem; align-items: start; } }
.platform-statement { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.03em; color: var(--brand-primary); }
.platform-prose { display: grid; gap: 1.1rem; }
.platform-split .auth-steps { gap: 1.15rem; }
.platform-card-text { font-size: .9375rem; line-height: 1.6; color: var(--ink-600); }
.platform-flow { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: flow; }
@media (min-width: 640px) { .platform-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; } }
@media (min-width: 1024px) { .platform-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } }
.platform-flow li { counter-increment: flow; border-top: 2px solid var(--line-strong); padding: 1rem 1.5rem 0 0; min-width: 0; }
.platform-flow li:first-child { border-top-color: var(--brand-gold); }
.platform-flow li::before { content: counter(flow, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; color: var(--brand-gold-text); margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.platform-flow strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.015em; color: var(--ink-900); }
.platform-flow span { display: block; margin-top: .35rem; font-size: .875rem; line-height: 1.55; color: var(--ink-600); }

/* picture and text, alternating */
.platform-block { display: grid; gap: 2.25rem; align-items: center; margin: 3.5rem 0; }
@media (min-width: 1024px) { .platform-block { grid-template-columns: 1.05fr .95fr; gap: 3.75rem; margin: 5.5rem 0; } }
.platform-block-media { min-width: 0; }
.platform-block-media-phone { display: flex; justify-content: center; }
@media (min-width: 1024px) { .platform-block-flip .platform-block-media { order: 2; } }
.platform-block-copy { min-width: 0; }
.platform-block-copy .section-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: .5rem; }
.platform-lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-600); }
.platform-block-copy .assurances { margin-top: 1.5rem; font-size: .9rem; gap: .7rem; }

/* cards with a real edge and the gold rule on top */
.platform-cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .platform-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.platform-modules { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .platform-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .platform-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.platform-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-gold); border-radius: var(--radius-lg); padding: 1.5rem; min-width: 0; display: grid; gap: .6rem; align-content: start; transition: border-color .15s, box-shadow .2s; }
.platform-card:hover { box-shadow: var(--shadow); }
.platform-aside { align-content: start; }
.audience-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.65rem; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-gold); border-radius: var(--radius-lg); }
.audience-card .card-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; }
.audience-card .assurances { margin-top: auto; padding-top: 1.1rem; }
.guarantees { display: grid; gap: 1.75rem; margin: 0; }
@media (min-width: 640px) { .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; } }
.guarantees > div { border-top: 1px solid var(--line-strong); padding-top: .95rem; min-width: 0; }
.guarantees dt { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.015em; color: var(--ink-900); }
.guarantees dd { margin: .35rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--ink-600); }

/* the contact section: on a phone the order is heading → form → the rest, so a call to action lands on the fields;
   from `lg` the copy sits beside the card (grid areas, not source order) */
.platform-contact { display: grid; gap: 1.75rem; margin: 3.5rem 0 1rem; padding-top: 2.5rem; border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--topbar-h) + 1rem); grid-template-areas: "head" "form" "extra"; }
@media (min-width: 1024px) { .platform-contact { grid-template-columns: 1fr 1fr; grid-template-areas: "head form" "extra form";
  column-gap: 4rem; row-gap: 1.75rem; margin: 5rem 0 1.5rem; padding-top: 3.25rem; align-items: start; } }
.platform-contact-page { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.platform-contact-head { grid-area: head; min-width: 0; }
.platform-contact-extra { grid-area: extra; min-width: 0; }
.platform-contact-head .section-title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-top: .5rem; }
.platform-contact-extra .assurances { margin-top: 0; font-size: .9rem; gap: .7rem; }
.platform-contact-direct { margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-600); }
.platform-contact-back { margin-top: 1.25rem; font-size: .875rem; }
.platform-contact-card { grid-area: form; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-gold); border-radius: var(--radius-xl); padding: 1.5rem 1.35rem; min-width: 0; box-shadow: 0 18px 44px -30px rgba(0, 35, 27, .45); }
@media (min-width: 640px) { .platform-contact-card { padding: 2.1rem; } }
.platform-form { display: grid; gap: 1.15rem; }
.platform-form .card-title { font-size: 1.3rem; font-weight: 800; }
.platform-form .form-grid { gap: 1.15rem; }
.platform-form .help { line-height: 1.5; }
.platform-contact-done { display: grid; gap: .75rem; }
.platform-contact-done .card-title { font-size: 1.4rem; font-weight: 800; }
.platform-contact-done .platform-hero-actions { margin-top: .75rem; }
