/*
 * Tanıtım sayfası ("Işık" tasarımı).
 * Beyaz zemin, mürekkep siyahı metin, tek canlı vurgu: sinyal turuncusu (panelle aynı ton).
 * Beyaz zeminde turuncu metin için koyu ton (--accent-ink) kullanılır; turuncu düğmede metin beyazdır.
 * Bölümler beyaz ve açık turuncu zemin arasında sırayla değişir; tam siyah bölüm yoktur.
 * Kareli zemin parça parçadır: her bölümde bir köşeden yayılıp sönen hafif bir kare dokusu vardır.
 */

:root {
    --ink: #0c0d12;
    --paper: #fff;
    --muted: #5d6070;
    --line: #e6e7ec;
    --rule: #eeeff3;
    --soft: #f4f4f6;
    --mist: #f7f7f9;
    --peach: #ffe9df;
    --wash: #fff6f1;
    --accent: #ff4103;
    --accent-deep: #e03800;
    --accent-ink: #b32d00;
    --dark-muted: #b4b7c4;
    --open: #0b7a4b;

    --font: "Onest", "Inter", system-ui, sans-serif;

    --max: 75rem;
    --gutter: clamp(1rem, 4vw, 1.5rem);
    --radius: 1.25rem;
    --header-height: 4.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd {
    margin: 0;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.display {
    font-weight: 800;
    font-size: clamp(2.125rem, 4.6vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.section-lead {
    max-width: 38rem;
    margin-top: 0.875rem;
    color: var(--muted);
    font-size: 1.125rem;
}

.link {
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.link:hover {
    text-decoration-thickness: 2px;
}

/* Buttons --------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.125rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--accent);
    color: var(--paper);
    font: 600 1rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--accent-deep);
}

.button:active {
    transform: translateY(1px);
}

.button-glow {
    box-shadow: 0 10px 30px rgb(255 65 3 / 0.28);
}

.button-small {
    min-height: 2.625rem;
    padding: 0 1.125rem;
    font-size: 0.9375rem;
}

.button-dark {
    background: var(--ink);
}

.button-dark:hover {
    background: #2a2c36;
}

.button-ghost {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.button-ghost:hover {
    border-color: #cfd1d9;
    background: var(--mist);
}

.button-soft {
    background: var(--soft);
    color: var(--ink);
}

.button-soft:hover {
    background: var(--line);
}

.round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.round-button.is-dark {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

/* Header ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 255 / 0.86);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-mark {
    flex: none;
    color: var(--ink);
}

.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.main-nav {
    display: flex;
    gap: 0.125rem;
}

.main-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.main-nav a:hover {
    background: var(--soft);
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-plain {
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.link-plain:hover {
    color: var(--accent-ink);
}

.mobile-menu {
    display: none;
}

/* Kare dokusu ------------------------------------------------------------
 * Her bölümde iki köşeden yayılıp kenarlara doğru sönen kare lekeleri. Konum ve boyutlar bölüme
 * göre değişir (--patch-at/--patch-size ve ikinci leke için --patch2-*); doku kesintili, dağınık görünür.
 */

.hero,
.roles,
.sources,
.ai,
.report,
.features,
.pricing,
.faq-section,
.contact,
.site-footer {
    position: relative;
    isolation: isolate;
}

.hero::before,
.roles::before,
.sources::before,
.ai::before,
.report::before,
.features::before,
.pricing::before,
.faq-section::before,
.contact::before,
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--patch-line, var(--rule)) 1px, transparent 1px),
        linear-gradient(90deg, var(--patch-line, var(--rule)) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image:
        radial-gradient(var(--patch-size, 38rem 26rem) at var(--patch-at, 50% 0%), #000 0%, rgb(0 0 0 / 0.4) 45%, transparent 75%),
        radial-gradient(var(--patch2-size, 26rem 20rem) at var(--patch2-at, -50% -50%), rgb(0 0 0 / 0.8) 0%, rgb(0 0 0 / 0.3) 45%, transparent 75%);
    -webkit-mask-image:
        radial-gradient(var(--patch-size, 38rem 26rem) at var(--patch-at, 50% 0%), #000 0%, rgb(0 0 0 / 0.4) 45%, transparent 75%),
        radial-gradient(var(--patch2-size, 26rem 20rem) at var(--patch2-at, -50% -50%), rgb(0 0 0 / 0.8) 0%, rgb(0 0 0 / 0.3) 45%, transparent 75%);
    pointer-events: none;
}

.hero {
    --patch-size: 60rem 34rem;
    --patch-at: 50% 0%;
}

.roles {
    --patch-at: 0% 70%;
    --patch-size: 30rem 24rem;
    --patch2-at: 100% 30%;
}

.sources {
    --patch-at: 85% 100%;
    --patch-size: 28rem 14rem;
}

.ai {
    --patch-at: 100% 0%;
    --patch2-at: 0% 85%;
    --patch-line: #f6e2d8;
}

.report {
    --patch-at: 0% 100%;
    --patch2-at: 100% 10%;
}

.features {
    --patch-at: 90% 100%;
    --patch2-at: 8% 0%;
    --patch-line: #f6e2d8;
}

.pricing {
    --patch-at: 5% 10%;
    --patch-size: 30rem 22rem;
    --patch2-at: 95% 90%;
}

.faq-section {
    --patch-at: 100% 40%;
    --patch2-at: 0% 100%;
    --patch-line: #f6e2d8;
}

.contact {
    --patch-at: 0% 0%;
    --patch-size: 32rem 24rem;
    --patch2-at: 100% 100%;
}

.site-footer {
    --patch-at: 60% 100%;
    --patch-size: 44rem 18rem;
    --patch2-at: 0% 0%;
    --patch-line: #f6e2d8;
}

/* Hero ------------------------------------------------------------------ */

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 62rem;
    padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem;
    text-align: center;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2.625rem, 7vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.lead {
    max-width: 39rem;
    color: var(--muted);
    font-size: 1.1875rem;
    line-height: 1.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hero-note {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.625rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.hero-note svg {
    color: var(--ink);
}

.hero-note strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* Role carousel ---------------------------------------------------------- */

.roles {
    padding-block: 0.5rem 3.5rem;
    overflow: hidden;
}

.role-tabs-wrap {
    display: flex;
    justify-content: center;
    padding-bottom: 1.75rem;
}

.role-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem;
    border-radius: 0.875rem;
    background: var(--soft);
}

.role-tab {
    padding: 0.625rem 1.125rem;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--muted);
    font: 600 0.9375rem var(--font);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.role-tab[aria-selected="true"] {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 3px rgb(12 13 18 / 0.12);
}

/* Paneller aynı ızgara hücresinde üst üste durur; sahnenin yüksekliği en uzun panel kadardır. */
.role-stage {
    display: grid;
    justify-items: center;
    max-width: 87.5rem;
    margin-inline: auto;
    padding-bottom: 2rem;
}

.role-slide {
    position: relative;
    grid-area: 1 / 1;
    width: min(47.5rem, 82%);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease, opacity 0.7s ease;
}

.role-slide[data-position="center"] {
    z-index: 3;
}

.role-slide[data-position="right"] {
    z-index: 2;
    transform: translateX(54%) scale(0.82);
    filter: blur(5px) saturate(0.8);
    opacity: 0.75;
}

.role-slide[data-position="left"] {
    z-index: 2;
    transform: translateX(-54%) scale(0.82);
    filter: blur(5px) saturate(0.8);
    opacity: 0.75;
}

.role-slide[data-position="back"] {
    z-index: 1;
    transform: scale(0.66);
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}

.role-bring {
    position: absolute;
    inset: 0;
    display: none;
    border: 0;
    border-radius: 1.375rem;
    background: transparent;
    cursor: pointer;
}

.role-slide[data-position="left"] .role-bring,
.role-slide[data-position="right"] .role-bring {
    display: block;
}

.device {
    padding: 0.625rem;
    border: 1px solid var(--line);
    border-radius: 1.375rem;
    background: var(--soft);
    box-shadow: 0 40px 90px rgb(12 13 18 / 0.14);
}

.device-screen {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    background: var(--paper);
}

.device-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.6875rem 0.875rem;
    border-bottom: 1px solid var(--rule);
}

.device-bar > span:not(.device-chip) {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--line);
}

.device-chip {
    margin-left: 0.625rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.75rem;
}

.device-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.375rem;
}

.device-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.625rem;
}

.device-head p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-head strong {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.device-head span {
    color: var(--muted);
    font-size: 0.875rem;
}

.device-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: var(--peach);
    color: var(--accent-ink) !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
}

.device-list {
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    list-style: none;
}

.device-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.8125rem 0.875rem;
    border-bottom: 1px solid #f1f2f5;
}

.device-list li:last-child {
    border-bottom: 0;
}

.device-call {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}

.device-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
}

.device-meta {
    color: var(--muted);
    font-size: 0.75rem;
}

.device-days {
    flex: none;
    min-width: 3.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    background: var(--soft);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.device-days.is-urgent {
    background: var(--peach);
    color: var(--accent-ink);
}

.device-empty {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--mist);
    color: var(--muted);
    font-size: 0.9375rem;
}

.role-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: calc(47.5rem + 2 * var(--gutter));
    padding-top: 0.5rem;
}

.role-copy {
    display: flex;
    flex: 1 1 24rem;
    flex-direction: column;
    gap: 0.375rem;
}

.role-copy[hidden] {
    display: none;
}

.role-copy h3 {
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

.role-copy p {
    color: var(--muted);
}

.role-arrows {
    display: flex;
    gap: 0.5rem;
}

/* Sources ---------------------------------------------------------------- */

.sources {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    padding-block: 1rem 4.5rem;
}

.sources-title {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    animation: marquee 90s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--soft);
    color: #3b3e4b;
    font-weight: 600;
    white-space: nowrap;
}

.source-details {
    margin-top: 0.5rem;
    text-align: center;
}

.source-details summary {
    display: inline-flex;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    color: var(--accent-ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.source-details summary::-webkit-details-marker {
    display: none;
}

.source-details summary:hover {
    background: var(--wash);
}

.source-details[open] {
    text-align: left;
}

.source-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 1.125rem;
}

.source-group span {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 0 2rem;
    margin-top: 0.75rem;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.source {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
}

.source-name {
    font-weight: 600;
    line-height: 1.3;
}

.source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.75rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.source-open {
    color: var(--open);
    font-weight: 600;
}

.source:hover .source-name {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* AI --------------------------------------------------------------------- */

.ai {
    padding-block: clamp(4rem, 9vw, 6.5rem);
    background: var(--wash);
}

.ai-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 48rem;
}

.ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--accent-ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.live-dot {
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    from { box-shadow: 0 0 0 0 rgb(255 65 3 / 0.45); }
    to { box-shadow: 0 0 0 12px rgb(255 65 3 / 0); }
}

.ai .display {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
}

.ai-lead {
    color: var(--muted);
    font-size: 1.1875rem;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
    gap: 0.875rem;
    margin-top: 3.5rem;
    padding: 0;
    list-style: none;
}

.pipeline li {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.5rem;
    border: 1px solid #f3dfd5;
    border-radius: var(--radius);
    background: var(--paper);
}

.pipeline-step {
    color: var(--accent-ink);
    font-size: 0.875rem;
    font-weight: 700;
}

.pipeline h3 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.pipeline p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ai-example {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0.875rem;
    margin-top: 0.875rem;
}

.ai-source,
.ai-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.625rem;
    border-radius: 1.375rem;
}

.ai-source {
    border: 1px solid #f3dfd5;
    background: #fffaf7;
}

.ai-result {
    border: 1px solid #f3dfd5;
    background: var(--paper);
    box-shadow: 0 24px 60px rgb(90 26 0 / 0.08);
}

.ai-label {
    color: var(--muted);
    font-size: 0.875rem;
}

.ai-call {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ai-muted {
    color: var(--muted);
    font-size: 0.9375rem;
}

.ai-summary {
    line-height: 1.6;
}

.ai-facts {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
}

.ai-facts dt {
    color: var(--muted);
}

.ai-facts dd {
    font-weight: 600;
}

.ai-next {
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: var(--peach);
    color: #5a1a00;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ai-footnote {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Morning report ---------------------------------------------------------- */

.report {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.report-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.5rem;
}

.report-copy {
    display: flex;
    flex: 1 1 26rem;
    flex-direction: column;
    gap: 1.125rem;
    min-width: 0;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--peach);
}

.check-list li::after {
    content: "";
    position: absolute;
    top: 0.42em;
    left: 0.46rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid var(--accent-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.report-note {
    color: var(--muted);
    font-size: 0.875rem;
}

.mail {
    flex: 1 1 28rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #f0e3dc;
    border-radius: 1.375rem;
    background: var(--paper);
    box-shadow: 0 30px 80px rgb(90 26 0 / 0.1);
}

.mail-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.125rem 1.375rem;
    border-bottom: 1px solid #f1f2f5;
}

.mail-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.8125rem;
}

.mail-subject {
    font-size: 1.0625rem;
    font-weight: 700;
}

.mail-body {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem 1.375rem;
}

.mail-section {
    color: var(--accent-ink);
    font-size: 0.8125rem;
    font-weight: 700;
}

.mail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mail-days {
    flex: none;
    width: 3.75rem;
    padding: 0.375rem 0;
    border-radius: 0.625rem;
    background: var(--soft);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.mail-days.is-urgent {
    background: var(--peach);
    color: var(--accent-ink);
}

.mail-call {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.mail-call small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.mail-empty {
    color: var(--muted);
}

.mail-body .button {
    align-self: flex-start;
    margin-top: 0.25rem;
}

/* Features ---------------------------------------------------------------- */

.features {
    padding-block: clamp(4rem, 9vw, 6.5rem);
    background: var(--wash);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
}

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    padding: 1.75rem;
    border: 1px solid #f3dfd5;
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgb(255 65 3 / 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature:hover {
    border-color: #ffc3ad;
    transform: translateY(-2px);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--peach);
    color: var(--accent-ink);
}

.feature h3 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.feature p {
    color: var(--muted);
}

/* Pricing ----------------------------------------------------------------- */

.pricing {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.pricing-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.billing-toggle {
    display: flex;
    gap: 0.25rem;
    margin-top: 1.75rem;
    padding: 0.3125rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper);
}

.billing-toggle[hidden] {
    display: none;
}

.billing-toggle button {
    padding: 0.625rem 1.125rem;
    border: 0;
    border-radius: 0.5625rem;
    background: transparent;
    color: var(--muted);
    font: 600 0.9375rem var(--font);
    cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.875rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 1.375rem;
    background: var(--paper);
}

.plan.is-highlighted {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.plan-name {
    font-size: 1.375rem;
}

.plan-flag {
    padding: 0.3125rem 0.6875rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--paper);
    font-size: 0.8125rem;
    font-weight: 600;
}

.plan-tagline {
    min-height: 3em;
    color: var(--muted);
    line-height: 1.5;
}

.plan.is-highlighted .plan-tagline,
.plan.is-highlighted .plan-unit,
.plan.is-highlighted .plan-yearly {
    color: var(--dark-muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.plan-amount {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.plan-amount-text {
    font-size: 2rem;
}

.plan-unit,
.plan-yearly {
    color: var(--muted);
}

.plan-yearly {
    margin-top: -0.5rem;
    font-size: 0.875rem;
}

.plan-features {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.125rem 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.plan.is-highlighted .plan-features {
    border-top-color: #2a2d38;
}

.plan-features li {
    position: relative;
    padding-left: 1.625rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.plan-features li::before {
    content: "";
    position: absolute;
    top: 0.25em;
    left: 0.25rem;
    width: 0.4rem;
    height: 0.8rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.plan.is-highlighted .plan-features li::before {
    border-color: #ff8a5c;
}

.plan .button {
    width: 100%;
}

.pricing-note {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
    text-align: center;
}

/* FAQ --------------------------------------------------------------------- */

.faq-section {
    padding-block: clamp(4rem, 9vw, 6.5rem);
    background: var(--wash);
}

.faq-wrap {
    max-width: calc(54rem + 2 * var(--gutter));
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.75rem;
}

.faq details {
    border: 1px solid #f3dfd5;
    border-radius: 1rem;
    background: var(--paper);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    color: var(--accent);
    font-size: 1.375rem;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 1.25rem 1.25rem;
    color: var(--muted);
}

/* Contact ----------------------------------------------------------------- */

.contact {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
}

.contact-copy {
    display: flex;
    flex: 1 1 22rem;
    flex-direction: column;
    gap: 1rem;
}

.contact-lead {
    color: var(--muted);
    font-size: 1.125rem;
}

.contact-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
}

.contact-points li {
    position: relative;
    padding-left: 1.25rem;
}

.contact-points li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: var(--accent);
}

.contact-email a {
    color: var(--accent-ink);
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex: 1 1 32rem;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--paper);
    box-shadow: 0 24px 60px rgb(12 13 18 / 0.06);
}

.contact-form .button {
    align-self: flex-start;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.field > span {
    font-size: 0.875rem;
    font-weight: 600;
}

.field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
}

.field input,
.field select,
.field textarea,
.newsletter-form input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #dcdde3;
    border-radius: 0.75rem;
    background: var(--paper);
    color: var(--ink);
    font: 500 1rem/1.4 var(--font);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(255 65 3 / 0.18);
}

[aria-invalid="true"] {
    border-color: #c81e1e !important;
}

.field-error {
    color: #c81e1e;
    font-size: 0.875rem;
}

.form-success {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #ecf7f1;
    color: #0b5a38;
    font-weight: 500;
}

.trap {
    position: absolute;
    left: -9999px;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    padding-block: 4rem 1.75rem;
    background: var(--wash);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
}

.newsletter {
    display: flex;
    flex: 1 1 24rem;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 30rem;
}

.newsletter-title {
    font-size: 1.375rem;
    letter-spacing: -0.03em;
}

.newsletter > p {
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1 1 14rem;
    width: auto;
}

.newsletter-note {
    color: var(--muted);
    font-size: 0.8125rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-nav div {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 0.9375rem;
}

.footer-nav p {
    font-weight: 700;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent-ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.375rem;
    border-top: 1px solid #f3dfd5;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-bottom .brand {
    color: var(--ink);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu {
        position: relative;
        display: block;
    }

    .mobile-menu summary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.625rem;
        padding: 0 0.875rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        display: block;
        width: 1rem;
        height: 2px;
        background: var(--ink);
    }

    .mobile-menu-icon {
        position: relative;
    }

    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .mobile-menu-icon::before {
        top: -5px;
    }

    .mobile-menu-icon::after {
        top: 5px;
    }

    .mobile-menu[open] .mobile-menu-icon {
        background: transparent;
    }

    .mobile-menu[open] .mobile-menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .mobile-menu[open] .mobile-menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .mobile-menu-panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        display: grid;
        width: min(18rem, calc(100vw - 2 * var(--gutter)));
        padding: 0.5rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: var(--paper);
        box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
    }

    .mobile-menu-panel a {
        padding: 0.75rem;
        border-radius: 0.5rem;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-menu-panel a:not(.button):hover {
        background: var(--soft);
    }

    .mobile-menu-panel .button {
        margin-top: 0.25rem;
    }

    .ai-example {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .role-tabs-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .role-tabs {
        flex-wrap: nowrap;
    }

    .role-tab {
        white-space: nowrap;
    }

    .role-slide {
        width: 88%;
    }

    .role-slide[data-position="right"] {
        transform: translateX(92%) scale(0.86);
    }

    .role-slide[data-position="left"] {
        transform: translateX(-92%) scale(0.86);
    }

    .device-body {
        padding: 1rem;
    }

    .device-list li {
        gap: 0.625rem;
    }

    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.125rem;
    }

    .ai-facts dd {
        margin-bottom: 0.5rem;
    }

    .actions .button,
    .contact-form .button {
        flex: 1 1 100%;
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .marquee-track,
    .live-dot {
        animation: none;
    }

    .role-slide,
    .feature,
    .feature::before,
    .button {
        transition: none;
    }
}
