/* Lighthouse — céu, mar, coral e lâmpada do farol. */

:root {
    --paper: #f7fafb;
    --paper-soft: #eef4f7;
    --sky: #8ed0e5;
    --sky-soft: #dff2f9;
    --sea: #2e9bbd;
    --sea-deep: #0a3a52;
    --sea-ink: #072a3d;
    --coral: #f0554a;
    --coral-deep: #c93b33;
    --coral-ink: #8f2620;
    --lamp: #ffc44d;
    --lamp-soft: #ffe7ae;
    --ink: #22303a;
    --muted: #5e6e78;
    --mist: #c9dce6;
    --line: #dce7ed;
    --card: #ffffff;
    --serif: 'Lora', Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
    --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 5px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.65;
    overflow-x: hidden;
}

::selection { background: var(--coral); color: #fff; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); margin: 0.8rem 0 1.1rem; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

a { color: var(--coral-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 760px; }

/* Cabeçalho */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 42, 61, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 85, 74, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand-logo { width: 2.3rem; height: 2.3rem; display: block; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { text-decoration: none; color: #dcebf2; font-size: 0.98rem; }
.site-nav a:hover { color: var(--lamp); }

/* Botões */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary { background: var(--coral); color: #fff; }
.button-primary:hover { background: var(--coral-deep); box-shadow: 0 12px 24px -12px rgba(240, 85, 74, 0.65); }
.button-accent {
    background: linear-gradient(135deg, #ffd06a, #f0a92e);
    color: var(--sea-ink);
    box-shadow: 0 10px 28px -10px rgba(255, 196, 77, 0.65);
}
.button-accent:hover { box-shadow: 0 16px 34px -10px rgba(255, 196, 77, 0.8); }
.button-outline-light { border-color: rgba(255, 231, 174, 0.6); color: #fdf3d8; background: transparent; }
.button-outline-light:hover { border-color: var(--lamp); color: var(--lamp); }
.button-light { background: #fff; color: var(--sea-ink); }
.button-light:hover { background: var(--lamp-soft); }

/* Herói */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% -5%, rgba(255, 196, 77, 0.22), transparent 60%),
        radial-gradient(760px 520px at -10% 110%, rgba(46, 155, 189, 0.35), transparent 60%),
        linear-gradient(160deg, var(--sea-deep), var(--sea-ink) 75%);
    color: #eef6fa;
    padding: 5rem 0 7rem;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.kicker {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(240, 85, 74, 0.7);
    border-radius: 5px;
    color: var(--lamp-soft);
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(240, 85, 74, 0.14);
}

.hero-copy h1 { color: #fff; }
.hero-copy .lead { color: var(--mist); font-size: 1.2rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.4rem;
    margin: 2.4rem 0 0;
    padding: 1.4rem 0 0;
    border-top: 1px solid rgba(255, 231, 174, 0.25);
}

.hero-stats > div { margin: 0; }
.hero-stats dt { font-size: 0.88rem; color: #93aebd; }
.hero-stats dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--lamp); }

/* Emblema do farol */

.hero-demo { position: relative; display: grid; gap: 1.2rem; justify-items: center; }

.beam-sweep {
    position: absolute;
    top: -104px;
    left: 50%;
    width: 340px;
    height: 340px;
    margin-left: -170px;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(
        from 0deg,
        rgba(255, 196, 77, 0.3),
        transparent 18%,
        transparent 50%,
        rgba(255, 196, 77, 0.15) 54%,
        transparent 68%
    );
    filter: blur(6px);
    animation: beam-spin 18s linear infinite;
}

@keyframes beam-spin { to { transform: rotate(360deg); } }

.shield-orbit { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 196, 77, 0.6);
    border-radius: 50%;
    animation: ring-pulse 3.2s ease-out infinite;
}

@keyframes ring-pulse {
    from { transform: scale(0.62); opacity: 0.9; }
    to { transform: scale(1.18); opacity: 0; }
}

.hero-mark {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55);
}

/* Cartão de demonstração */

.demo-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    border: 1px solid var(--line);
    border-top: 6px solid var(--coral);
    border-radius: var(--radius);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.demo-card-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 1.25rem;
    background: var(--sea-ink);
    color: #fff;
}

.demo-card-head p { margin: 0 0 0 0.6rem; font-size: 0.95rem; font-weight: 600; }
.demo-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--lamp-soft); opacity: 0.85; }

.demo-form { display: grid; gap: 0.9rem; padding: 1.25rem; }
.demo-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #43545f; }
.demo-form input {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
    background: var(--paper);
    color: var(--ink);
    text-transform: uppercase;
}

.demo-result { padding: 0 1.25rem 1.25rem; }
.demo-result[hidden] { display: none; }

.demo-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0.8rem 1rem;
    background: var(--sky-soft);
    border-left: 4px solid var(--sea);
    border-radius: 0 5px 5px 0;
    animation: status-in 0.45s ease both;
}

@keyframes status-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.demo-status span { font-size: 0.85rem; color: var(--muted); }
.demo-result ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.demo-result li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.93rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed var(--line);
    animation: status-in 0.45s ease both;
}
.demo-result li:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-result li:nth-child(2) { animation-delay: 0.08s; }
.demo-result li:nth-child(3) { animation-delay: 0.16s; }
.demo-result time { color: var(--muted); white-space: nowrap; }
.demo-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 0; }

.sea-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--paper);
}

/* Secções */

.section { padding: 4.5rem 0; }
.section-lead { max-width: 42rem; color: #43545f; font-size: 1.15rem; margin-top: 0; }
.section-lead-light { color: var(--mist); }

.section-sky {
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(142, 208, 229, 0.35), transparent 65%),
        linear-gradient(var(--sky-soft), var(--paper));
}

/* Direitos em registo de artigos */

.lead-drop::first-letter {
    font-size: 3.4em;
    font-weight: 700;
    line-height: 0.85;
    float: left;
    padding-right: 0.12em;
    color: var(--coral-deep);
}

.rights-list { margin-top: 2.4rem; border-top: 2px solid var(--ink); }
.rights-list article {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0.5rem 2.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.rights-list h3 { margin: 0; font-size: 1.45rem; }
.rights-list p { margin: 0; color: #43545f; }

/* Linha do tempo */

.section-dark {
    background:
        radial-gradient(700px 380px at 100% 100%, rgba(46, 155, 189, 0.35), transparent 60%),
        linear-gradient(165deg, var(--sea-deep), var(--sea-ink) 80%);
    color: #eef6fa;
}

.section-dark h2 { color: #fff; }

.timeline {
    position: relative;
    list-style: none;
    margin: 2.8rem 0 0;
    padding: 0 0 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8.5px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: rgba(201, 220, 230, 0.25);
}

.timeline::after {
    content: '';
    position: absolute;
    left: 8.5px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(var(--coral), var(--coral-deep));
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.6s ease 0.15s;
}

.timeline.drawn::after { transform: scaleY(1); }

.timeline li { position: relative; padding: 0 0 2rem; max-width: 44rem; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px rgba(240, 85, 74, 0.22);
}

.timeline-when {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lamp);
}

.timeline h3 { color: #fff; margin-top: 0.3rem; }
.timeline li > p:last-child { color: var(--mist); margin-bottom: 0; }

/* Três passos simples */

.steps-simple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.2rem; }
.steps-simple article { border-top: 4px solid var(--coral); padding-top: 1.2rem; }
.steps-simple h3 { margin-top: 0; }
.steps-simple p { color: #43545f; margin-bottom: 0; }

/* Organizações */

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1.1rem;
    height: 0.6rem;
    border-left: 3px solid var(--coral-deep);
    border-bottom: 3px solid var(--coral-deep);
    transform: rotate(-45deg) translateY(-2px);
}

.checklist-cols { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }

/* Faixa de destaque — obrigação legal */

.section-emphasis {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #f06059, #b03328);
    color: #fff;
}

.emphasis-inner { position: relative; }

.giant-fifty {
    position: absolute;
    right: -0.5rem;
    top: -4.5rem;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(6rem, 26vw, 19rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.14);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    user-select: none;
}

.section-emphasis h2 { position: relative; color: #fff; max-width: 12em; }
.section-emphasis .section-lead { position: relative; color: #ffe3e1; }
.section-emphasis .checklist { position: relative; }
.section-emphasis .checklist li { color: #fff; font-weight: 600; }
.section-emphasis .checklist li::before { border-left-color: #fff; border-bottom-color: #fff; }

/* Accordion */

.accordion { margin-top: 2rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.accordion summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: '';
    flex: none;
    align-self: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--coral);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem 1rem;
    transition: background-color 0.15s ease;
}
.accordion details[open] summary::after {
    background-color: var(--coral-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.accordion details p { color: #43545f; max-width: 44rem; margin-bottom: 0.2rem; }

/* Modal de demonstração */

.modal { border: 0; padding: 0; border-radius: 5px; width: min(580px, calc(100vw - 2.5rem)); }
.modal::backdrop { background: rgba(7, 42, 61, 0.62); backdrop-filter: blur(3px); }

.modal-card { position: relative; padding: 2rem; }
.modal-card h2 { margin-top: 0; }
.modal-sub { color: #43545f; margin-top: 0; }

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}
.modal-close:hover { border-color: var(--coral); color: var(--coral-deep); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.4rem; }
.form-grid label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #43545f; }
.form-grid label:first-child, .form-grid label:nth-child(4) { grid-column: 1 / -1; }
.form-grid input, .form-grid select {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
.form-grid .optional { font-weight: 400; color: var(--muted); }
.label-line { display: flex; gap: 0.35rem; align-items: baseline; white-space: nowrap; }
.form-note { font-size: 0.85rem; color: var(--muted); }
#demo-form .button { margin-top: 0.4rem; width: 100%; }

#demo-modal-success-view { text-align: center; padding: 1rem 0 0.5rem; }
#demo-modal-success-view[hidden] { display: none; }
.success-badge {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    margin-bottom: 1rem;
}
#demo-modal-success-view p { color: #43545f; max-width: 26rem; margin: 0 auto 1.6rem; }

/* CTA e rodapé */

.cta {
    background:
        radial-gradient(640px 300px at 50% 120%, rgba(255, 196, 77, 0.3), transparent 65%),
        linear-gradient(165deg, var(--sea-deep), var(--sea-ink));
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.cta h2 { color: #fff; }
.cta p { color: var(--mist); max-width: 36rem; margin: 0 auto 1.8rem; }

.site-footer { padding: 1.75rem 0; background: var(--sea-ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.3rem 2rem; justify-content: space-between; align-items: baseline; }
.footer-inner p { margin: 0; font-size: 0.92rem; color: #7d99ab; }
.footer-inner strong { color: #eef6fa; }

/* Secções com onda de transição: espaço para a onda + cor herdada */

.has-wave { position: relative; padding-bottom: calc(4.5rem + 40px); }

/* Revelação */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .timeline.drawn::after { transform: scaleY(1); }
}

@media (max-width: 920px) {
    .wrap { padding: 0 1.25rem; }
    .section { padding: 3rem 0; }
    .has-wave { padding-bottom: calc(3rem + 30px); }
    .sea-wave { height: 44px; }
    .hero { padding: 3rem 0 4.5rem; }
    .cta { padding: 3rem 0 calc(3rem + 30px); }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps-simple { grid-template-columns: 1fr; gap: 1.5rem; }
    .rights-list article, .checklist-cols { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .header-inner .button { margin-left: auto; }
    .hero-stats { gap: 1.2rem 2rem; }
    .lead-drop::first-letter { font-size: 2.8em; }
    .giant-fifty { top: -2.5rem; right: 0; }
    .modal-card { padding: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .beam-sweep { width: 260px; height: 260px; margin-left: -130px; top: -64px; }
}
