:root {
    --paper: #f6f5f1;
    --paper-soft: #fbfaf7;
    --ink: #101110;
    --ink-soft: #353530;
    --muted: #62615a;
    --line: #dddcd5;
    --line-strong: #d1d0c8;
    --blue: #1f57f0;
    --blue-dark: #1543c9;
    --lavender: #eae9fb;
    --lavender-line: #dedcf7;
    --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --container: 1440px;
    --gutter: clamp(20px, 3.3vw, 48px);
    --radius: 20px;
    --anchor-offset: 88px;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

#dla-firm,
#jak-to-dziala,
#dla-agencji,
#mozliwosci {
    scroll-margin-top: var(--anchor-offset);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

svg {
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    inset-inline-start: 16px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(246, 245, 241, 0.92);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header .container,
.feature-band .container,
.showcase .container,
.process .container,
.agency .container {
    padding-inline: clamp(20px, 5.25vw, 76px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--blue);
    border-radius: 4px;
}

.brand-mark {
    flex: 0 0 auto;
}

.brand-name {
    color: var(--ink);
    font-size: clamp(21px, 1.65vw, 24px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1;
    white-space: nowrap;
}

.brand-name span {
    color: #55544e;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.primary-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
    margin-inline-start: clamp(40px, 12vw, 174px);
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #252521;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}

.primary-nav a:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
    margin-inline-start: auto;
}

/* Language switcher */

.language-switcher {
    position: relative;
    flex: 0 0 auto;
}

.language-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 3px;
    color: #252521;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}

.language-switcher-toggle::-webkit-details-marker {
    display: none;
}

.language-switcher-toggle::marker {
    content: "";
}

.language-switcher-toggle:hover {
    color: var(--blue);
}

.language-switcher-icon,
.language-switcher-chevron {
    flex: 0 0 auto;
    color: var(--blue);
}

.language-switcher-chevron {
    transition: transform 160ms ease;
}

.language-switcher[open] .language-switcher-chevron {
    transform: rotate(180deg);
}

.language-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 70;
    min-width: 212px;
    max-height: min(70vh, 430px);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 18px 40px rgba(20, 20, 30, 0.16),
        0 3px 8px rgba(20, 20, 30, 0.06);
}

.language-switcher-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    color: #252521;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.language-switcher-link:hover {
    background: var(--paper);
    color: var(--blue);
}

.language-switcher-link.is-current {
    background: var(--lavender);
    color: var(--blue);
    font-weight: 650;
}

.login-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}

.login-link:hover {
    color: var(--blue);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button-primary {
    background: var(--blue);
    color: #fff;
}

.button-primary:hover {
    background: var(--blue-dark);
}

.header-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.757fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 2vw, 30px);
    padding-top: 26px;
    padding-bottom: 29px;
}

.hero-copy {
    max-width: none;
    padding-top: 31px;
    padding-inline-start: 28px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #3f3f3a;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.155em;
    line-height: 1.3;
}

.hero h1 {
    max-width: 8.8em;
    margin: 0;
    font-size: clamp(3rem, 5vw, 4.55rem);
    font-weight: 700;
    letter-spacing: -0.064em;
    line-height: 0.96;
}

.hero h1 span {
    display: block;
}

.hero-lead {
    max-width: 470px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.2rem, 1.62vw, 1.52rem);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.31;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 36px;
    margin-top: 10px;
}

.hero-button {
    min-height: 62px;
    padding: 0 26px 0 28px;
    font-size: 18px;
    letter-spacing: -0.015em;
}

.hero-button svg {
    transition: transform 160ms ease;
}

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

.play-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.018em;
}

.play-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--blue);
    transition: background-color 160ms ease, color 160ms ease;
}

.play-link:hover .play-icon {
    background: var(--blue);
    color: #fff;
}

.hero-note {
    margin: 10px 0 0;
    color: #5f5e57;
    font-size: 15px;
    letter-spacing: -0.006em;
}

.hero-visual {
    position: relative;
    min-width: 0;
    margin-inline-end: -24px;
    padding-block: 16px 26px;
    padding-inline: 10.9% 6.8%;
    overflow: hidden;
    border: 1px solid var(--lavender-line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.7), transparent 36%),
        linear-gradient(145deg, #efeffd 0%, var(--lavender) 58%, #e6e5f8 100%);
}

.hero-visual::after {
    position: absolute;
    inset-inline-end: -54px;
    bottom: -74px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    content: "";
    pointer-events: none;
}

.browser {
    overflow: hidden;
    border: 1px solid rgba(22, 22, 28, 0.14);
    border-radius: 10px;
    background: #fff;
}

.hero-browser {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1.62;
    container-type: inline-size;
    box-shadow:
        0 26px 50px rgba(36, 35, 62, 0.14),
        0 5px 12px rgba(36, 35, 62, 0.07);
}

.browser-chrome {
    position: relative;
    display: flex;
    flex: 0 0 4.6cqw;
    align-items: center;
    justify-content: center;
    height: 4.6cqw;
    padding: 0 2.4cqw;
    border-bottom: 1px solid #e0ded8;
    background: #f4f2ed;
}

.browser-dots {
    position: absolute;
    inset-inline-start: 2.4cqw;
    display: flex;
    gap: 0.75cqw;
}

.browser-dots i {
    display: block;
    width: 0.92cqw;
    height: 0.92cqw;
    border-radius: 50%;
    background: #d0cec8;
}

.browser-dots i:first-child {
    background: #e6b6a8;
}

.browser-dots i:nth-child(2) {
    background: #e6d3a6;
}

.browser-dots i:last-child {
    background: #b8d4bc;
}

.browser-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37cqw;
    max-width: 230px;
    height: 2.7cqw;
    min-height: 10px;
    border-radius: 999px;
    background: #e9e7e2;
    color: #85837c;
    font-size: 1.1cqw;
    line-height: 1;
    letter-spacing: 0.005em;
}

.demo-site {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.demo-topbar {
    display: flex;
    flex: 0 0 8.1cqw;
    align-items: center;
    gap: 3.15cqw;
    min-height: 0;
    padding: 0 3.5cqw;
    border-bottom: 1px solid #ece9e2;
    background: #fdfcf9;
}

.demo-logo {
    margin-inline-end: auto;
    color: #1b1b18;
    font-family: var(--serif);
    font-size: 2.1cqw;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
}

.demo-nav {
    color: #4e4c45;
    font-size: 1.12cqw;
    line-height: 1;
    white-space: nowrap;
}

.demo-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 1.4cqw;
    padding: 1.1cqw 1.7cqw;
    border: 1px solid #c9c6be;
    border-radius: 1px;
    color: #22221e;
    font-size: 1.06cqw;
    line-height: 1;
    white-space: nowrap;
}

.demo-body {
    display: grid;
    flex: 1;
    grid-template-columns: 45% 55%;
    min-height: 0;
}

.demo-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 5.25cqw 4.2cqw 4.7cqw;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.42), transparent 40%),
        #f2e8db;
}

.demo-headline {
    margin: 0;
    color: #26231f;
    font-family: var(--serif);
    font-size: 5.75cqw;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.demo-text {
    max-width: 25cqw;
    margin: 2.8cqw 0 0;
    color: #5a554c;
    font-size: 1.35cqw;
    line-height: 1.45;
}

.demo-link {
    display: flex;
    align-items: center;
    gap: 1cqw;
    max-width: 26cqw;
    margin: 4.2cqw 0 0;
    padding-top: 1.55cqw;
    border-top: 1px solid #c9bea9;
    color: #4b463e;
    font-size: 1.12cqw;
    line-height: 1;
    white-space: nowrap;
}

.demo-link span {
    width: 4.8cqw;
    height: 1px;
    background: #b6a991;
}

.demo-link b {
    font-weight: 400;
}

.demo-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #c0b29c;
}

.demo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-card {
    position: absolute;
    bottom: 18px;
    inset-inline-start: 1.8%;
    z-index: 3;
    width: min(246px, 35%);
    min-width: 188px;
    padding: 12px 16px 11px;
    border: 1px solid rgba(30, 30, 42, 0.05);
    border-radius: 11px;
    background: #fff;
    box-shadow:
        0 22px 48px rgba(28, 27, 52, 0.21),
        0 4px 9px rgba(28, 27, 52, 0.08);
}

.edit-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.edit-title {
    color: #181817;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: -0.012em;
}

.edit-close {
    color: #77746d;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.edit-label {
    display: block;
    margin-top: 12px;
    color: #716e67;
    font-size: 9px;
    letter-spacing: 0.005em;
}

.edit-input {
    display: block;
    width: 100%;
    height: 31px;
    margin-top: 5px;
    padding: 0 9px;
    border: 1px solid #d9d7d2;
    border-radius: 5px;
    background: #fff;
    color: #31302c;
    font-size: 10.5px;
    line-height: 1;
}

.edit-input:hover {
    border-color: #b9b6ad;
}

.edit-input:focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.edit-input::selection {
    background: rgba(31, 87, 240, 0.18);
}

.edit-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 31px;
    margin-top: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.edit-save:hover {
    background: var(--blue-dark);
}

.edit-save:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.edit-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--blue);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
}

.edit-status:empty {
    display: none;
}

.edit-status::before {
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

@keyframes headline-in {
    from {
        opacity: 0.4;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.demo-headline.is-updated {
    animation: headline-in 220ms ease;
}

.mock-caption {
    position: absolute;
    inset-inline-end: 15px;
    bottom: 10px;
    z-index: 2;
    margin: 0;
    color: #6a697d;
    font-size: 11.5px;
    letter-spacing: -0.005em;
}

/* Feature band */

.feature-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding: 8px clamp(16px, 2.4vw, 35px);
}

.feature-item + .feature-item {
    border-inline-start: 1px solid var(--line);
}

.feature-item:first-child {
    padding-inline-start: 0;
}

.feature-icon {
    flex: 0 0 auto;
    color: #171714;
}

.feature-item h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Showcase */

.showcase {
    padding-top: 28px;
    padding-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 11px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.1rem, 2.7vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.058em;
    line-height: 0.94;
}

.section-heading h2 span {
    display: block;
}

.section-heading p {
    margin: 10px 0 0;
    color: #4d4c45;
    font-size: clamp(1.06rem, 1.3vw, 1.29rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.showcase-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: -0.012em;
    white-space: nowrap;
}

.showcase-hint svg {
    flex: 0 0 auto;
    color: var(--blue);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.showcase-item {
    position: relative;
    min-width: 0;
}

.showcase-item .mini-site {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.showcase-item:hover .mini-site {
    border-color: #b9b6ac;
    box-shadow: 0 7px 20px rgba(18, 18, 16, 0.08);
    transform: translateY(-2px);
}

.showcase-meta svg {
    transition: transform 160ms ease;
}

.showcase-item:hover .showcase-meta svg {
    transform: translate(2px, -2px);
}

.showcase-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: zoom-in;
}

.showcase-trigger:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.mini-site {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1.9;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    container-type: inline-size;
    box-shadow: 0 1px 1px rgba(18, 18, 16, 0.02);
}

.mini-topbar {
    display: flex;
    flex: 0 0 10.6cqw;
    align-items: center;
    gap: 3.2cqw;
    min-height: 0;
    padding: 0 3.15cqw;
    border-bottom: 1px solid rgba(55, 50, 42, 0.1);
}

.mini-logo {
    margin-inline-end: auto;
    font-size: 2.3cqw;
    line-height: 1;
    white-space: nowrap;
}

.mini-nav {
    display: flex;
    align-items: center;
    gap: 2.8cqw;
    font-size: 1.2cqw;
    line-height: 1;
    white-space: nowrap;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.05cqw 1.55cqw;
    border: 1px solid currentColor;
    font-size: 1.06cqw;
    line-height: 1;
    white-space: nowrap;
}

.mini-body {
    display: grid;
    flex: 1;
    grid-template-columns: 44% 56%;
    min-height: 0;
}

.mini-copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 4.6cqw 4.2cqw 3.4cqw;
}

.mini-headline {
    margin: 0;
    font-family: var(--serif);
    font-size: 6.55cqw;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.mini-text {
    max-width: 31cqw;
    margin: 2.5cqw 0 0;
    font-size: 1.48cqw;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

.mini-link {
    display: flex;
    align-items: center;
    gap: 1.1cqw;
    max-width: 30cqw;
    margin: auto 0 0;
    padding-top: 1.5cqw;
    border-top: 1px solid currentColor;
    font-size: 1.3cqw;
    line-height: 1;
    opacity: 0.8;
    white-space: nowrap;
}

.mini-link span {
    width: 4.6cqw;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.mini-link b {
    font-weight: 400;
}

.mini-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.mini-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FORMA */

.mini-site--forma .mini-topbar {
    background: #fdfbf6;
    color: #22201c;
}

.mini-site--forma .mini-logo {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.12em;
}

.mini-site--forma .mini-nav {
    color: #565249;
}

.mini-site--forma .mini-copy {
    background:
        radial-gradient(circle at 3% 5%, rgba(255, 255, 255, 0.42), transparent 42%),
        #f3e9da;
    color: #2c2923;
}

/* BALANS */

.mini-site--balans .mini-topbar {
    background: #f8f4ec;
    color: #2f3d31;
}

.mini-site--balans .mini-logo {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.16em;
}

.mini-site--balans .mini-nav {
    color: #58564e;
}

.mini-site--balans .mini-button {
    border-color: #4f6652;
    background: #4f6652;
    color: #fff;
}

.mini-site--balans .mini-copy {
    background:
        radial-gradient(circle at 10% 4%, rgba(255, 255, 255, 0.4), transparent 46%),
        #f2ede2;
    color: #344136;
}

/* DOM NAD RZEKĄ */

.mini-site--dom .mini-topbar {
    background: #2c1024;
    color: #f3e8df;
}

.mini-site--dom .mini-logo {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: 0.07em;
}

.mini-site--dom .mini-nav {
    color: #d6c3b9;
}

.mini-site--dom .mini-button {
    border-color: #a98e9d;
    color: #f3e8df;
}

.mini-site--dom .mini-copy {
    background:
        radial-gradient(circle at 10% 0%, rgba(117, 47, 86, 0.3), transparent 52%),
        #3c102d;
    color: #f3e6dd;
}

.mini-site--dom .mini-text {
    color: #ddc9be;
}

.showcase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding-top: 4px;
}

.showcase-meta h3 {
    margin: 0;
    font-size: 17.5px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.showcase-meta svg {
    flex: 0 0 auto;
    color: #171714;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding-block: 12px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #57564f;
    font-size: 16.5px;
    letter-spacing: -0.012em;
    line-height: 1.5;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-inline-start: 4px;
    color: var(--blue);
    font-weight: 500;
    vertical-align: middle;
}

.site-footer a span {
    transition: transform 160ms ease;
}

.site-footer a:hover span {
    transform: translateX(3px);
}

/* Japanese-only legal navigation. Other locales do not render it, because
   the documents exist in Japanese only. */
.site-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 22px;
    margin-top: 6px;
}

.site-footer .footer-legal a {
    min-height: 40px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer .footer-legal a:hover {
    color: var(--blue);
}

.site-footer .footer-company {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
}

/* Process */

.process {
    padding: clamp(58px, 6.4vw, 96px) 0 clamp(62px, 7vw, 104px);
    border-top: 1px solid var(--line);
}

.process-head {
    max-width: 880px;
}

.process h2 {
    max-width: 11em;
    margin: 12px 0 0;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.process h2 span {
    display: block;
}

.process-lead {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.4vw, 1.28rem);
    letter-spacing: -0.02em;
    line-height: 1.42;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 42px);
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.process-step {
    padding-top: 20px;
    border-top: 1px solid var(--line-strong);
}

.process-number {
    display: block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.12em;
    line-height: 1;
}

.process-step h3 {
    margin: 16px 0 0;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.process-step p {
    max-width: 34ch;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.5;
}

.process-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 26px;
    margin-top: 44px;
}

.process-note {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.section-button {
    min-height: 54px;
    padding: 0 24px;
    font-size: 16.5px;
    letter-spacing: -0.012em;
}

.section-button svg {
    transition: transform 160ms ease;
}

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

/* Agency */

.agency {
    padding: clamp(56px, 6.4vw, 96px) 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(180deg, rgba(234, 233, 251, 0.62) 0%, rgba(251, 250, 247, 0.35) 62%, var(--paper-soft) 100%);
}

.agency-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5.5vw, 84px);
    align-items: start;
}

.agency h2 {
    margin: 12px 0 0;
    font-size: clamp(2.4rem, 3.6vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.agency h2 span {
    display: block;
}

.agency-lead {
    max-width: 430px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.35vw, 1.25rem);
    letter-spacing: -0.02em;
    line-height: 1.42;
}

.agency .section-button {
    margin-top: 30px;
}

.agency-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 2.6vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.agency-item {
    padding: 22px 0 24px;
    border-top: 1px solid var(--line-strong);
}

.agency-item h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.agency-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Preview dialog */

.preview-dialog {
    width: min(940px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 40px 90px rgba(20, 20, 30, 0.28);
}

.preview-dialog::backdrop {
    background: rgba(16, 17, 16, 0.46);
}

.preview-dialog[open] {
    animation: dialog-in 180ms ease;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.preview-dialog-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas:
        "head head"
        "image text"
        "image tags"
        "image actions";
    align-items: start;
    align-content: start;
    column-gap: clamp(24px, 3vw, 36px);
    padding: clamp(20px, 3vw, 34px);
}

.preview-dialog-head {
    display: flex;
    grid-area: head;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.preview-dialog-head .eyebrow {
    margin-bottom: 8px;
}

.preview-dialog-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.preview-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.preview-close:hover {
    border-color: var(--ink);
    background: var(--paper);
}

.preview-image {
    grid-area: image;
    width: 100%;
    height: auto;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
}

.preview-text {
    grid-area: text;
    max-width: 62ch;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    letter-spacing: -0.008em;
    line-height: 1.55;
}

.preview-tags {
    display: flex;
    grid-area: tags;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.preview-tags li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.2;
}

.preview-actions {
    grid-area: actions;
    margin-top: 24px;
}

body.dialog-open {
    overflow: hidden;
}

/* Responsive */

@media (max-width: 1200px) {
    .primary-nav {
        gap: 26px;
    }

    .header-actions {
        gap: 26px;
    }

    .hero-visual {
        padding-inline-start: 9%;
    }
}

/* The full language name can be long (Português (Brasil)). Below this width
   the switcher collapses to its icon so the single-row header keeps fitting. */

@media (max-width: 1160px) {
    .primary-nav {
        margin-inline-start: clamp(24px, 5vw, 56px);
    }

    .header-actions {
        gap: 18px;
    }

    .language-switcher-current {
        display: none;
    }

    .language-switcher-toggle {
        justify-content: center;
        min-width: 44px;
    }
}

@media (max-width: 1279px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding-top: 18px;
        padding-bottom: 34px;
        padding-inline: clamp(20px, 5.25vw, 76px);
    }

    .hero-copy {
        max-width: 790px;
        padding-top: 26px;
        padding-inline-start: 0;
    }

    .hero h1 {
        max-width: 9.6em;
        font-size: clamp(2.7rem, 7vw, 5rem);
    }

    .hero-lead {
        max-width: 610px;
        line-height: 1.37;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-note {
        margin-top: 16px;
    }

    .hero-visual {
        margin-inline-end: 0;
        padding-block: 24px 40px;
        padding-inline: 11% 7%;
    }

    .edit-card {
        width: min(250px, 34%);
    }
}

@media (max-width: 920px) {
    :root {
        --anchor-offset: 120px;
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 6px;
        padding-bottom: 4px;
    }

    .agency-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .agency-lead {
        max-width: 560px;
    }

    .brand {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-inline-start: auto;
    }

    .primary-nav {
        order: 3;
        flex-basis: 100%;
        gap: 0;
        margin-inline-start: -12px;
    }

    .primary-nav a {
        padding: 0 12px;
    }

    .showcase-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .mini-site {
        aspect-ratio: 1.9;
    }

    .showcase-meta {
        min-height: 47px;
        padding-top: 6px;
    }
}

@media (max-width: 680px) {
    .header-actions {
        display: contents;
    }

    .header-button {
        order: 3;
        min-height: 42px;
        margin-inline-start: auto;
        padding: 0 14px;
        font-size: 14px;
    }

    .language-switcher {
        order: 2;
    }

    .language-switcher-toggle {
        justify-content: center;
        min-width: 44px;
        padding: 0 6px;
    }

    .language-switcher-current {
        display: none;
    }

    .language-switcher-menu {
        inset-inline-start: 0;
        inset-inline-end: auto;
        min-width: 200px;
    }

    .primary-nav {
        order: 4;
        flex-basis: auto;
        margin-inline-start: -10px;
    }

    .login-link {
        order: 5;
        margin-inline-start: auto;
    }

    .hero {
        padding-top: 10px;
        gap: 30px;
    }

    .hero-copy {
        padding-top: 18px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 11.2vw, 4rem);
        letter-spacing: -0.055em;
    }

    .eyebrow {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .hero-lead {
        margin-top: 23px;
        font-size: 18px;
    }

    .hero-actions {
        align-items: flex-start;
        gap: 13px;
        margin-top: 27px;
    }

    .hero-note {
        margin-top: 18px;
    }

    .hero-button {
        min-height: 56px;
        padding: 0 21px;
        font-size: 16.5px;
    }

    .play-link {
        font-size: 16.5px;
    }

    .hero-note {
        font-size: 14px;
    }

    .hero-visual {
        padding: 16px 15px 72px;
        border-radius: 16px;
    }

    .hero-browser {
        aspect-ratio: 1.44;
        border-radius: 8px;
    }

    .edit-card {
        bottom: 17px;
        inset-inline-start: 12px;
        width: min(230px, 62%);
        min-width: 176px;
        padding: 12px 13px;
    }

    .edit-label {
        margin-top: 8px;
    }

    .edit-input {
        height: 32px;
        padding: 0 8px;
        font-size: 16px;
    }

    .edit-save {
        height: 30px;
        margin-top: 8px;
        font-size: 12px;
    }

    .edit-status {
        font-size: 11.5px;
    }

    .mock-caption {
        inset-inline-end: 12px;
        bottom: 8px;
        font-size: 10.5px;
    }

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

    .feature-item {
        min-height: 67px;
        padding: 10px 4px;
    }

    .feature-item + .feature-item {
        border-top: 1px solid var(--line);
        border-inline-start: 0;
    }

    .feature-item h3 {
        font-size: 18px;
    }

    .showcase {
        padding-top: 32px;
        padding-bottom: 26px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 21px;
    }

    .section-heading h2 {
        font-size: clamp(2.1rem, 9.4vw, 2.8rem);
    }

    .section-heading p {
        margin-top: 10px;
        font-size: 18px;
    }

    .showcase-hint {
        margin-bottom: 0;
        white-space: normal;
    }

    .mini-site {
        aspect-ratio: 1.7;
    }

    .process {
        padding: 46px 0 56px;
    }

    .process h2,
    .agency h2 {
        font-size: clamp(2.2rem, 9vw, 2.9rem);
    }

    .process-lead {
        margin-top: 14px;
        font-size: 17px;
    }

    .process-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 32px;
    }

    .process-step {
        padding: 18px 0 20px;
    }

    .process-step p {
        max-width: none;
    }

    .process-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 28px;
    }

    .process-note {
        font-size: 14px;
    }

    .section-button {
        width: 100%;
        max-width: 320px;
        min-height: 52px;
        font-size: 16px;
    }

    .agency {
        padding: 46px 0 54px;
    }

    .agency-inner {
        gap: 28px;
    }

    .agency-lead {
        margin-top: 16px;
        font-size: 17px;
    }

    .agency .section-button {
        margin-top: 24px;
    }

    .agency-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .agency-item {
        padding: 16px 0 18px;
    }

    .preview-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .preview-dialog-inner {
        display: block;
        padding: 20px 18px 22px;
    }

    .preview-dialog-head h2 {
        font-size: 1.55rem;
    }

    .preview-image {
        margin-top: 16px;
    }

    .preview-text {
        margin-top: 16px;
        font-size: 15.5px;
    }

    .preview-actions .section-button {
        max-width: none;
    }

    .site-footer .container {
        min-height: 68px;
        padding-block: 10px;
    }

    .site-footer p {
        font-size: 15.5px;
    }

    .site-footer a {
        margin-inline-start: 2px;
    }
}

@media (max-width: 440px) {
    .brand-mark {
        width: 37px;
        height: 25px;
    }

    .brand-name {
        font-size: 20px;
    }

    .primary-nav a {
        padding: 0 9px;
        font-size: 14px;
    }

    .login-link {
        font-size: 14px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 11.3vw, 3rem);
    }

    .hero-actions {
        display: grid;
        justify-items: start;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
    }

    .mini-site {
        aspect-ratio: 1.55;
    }

    .mini-nav span:nth-child(2),
    .mini-nav span:nth-child(3) {
        display: none;
    }

    .site-footer p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .site-footer a {
        margin-inline-start: 0;
    }
}

@container (max-width: 430px) {
    .demo-nav {
        display: none;
    }

    .demo-headline {
        font-size: 6.5cqw;
    }

    .demo-text {
        max-width: 29cqw;
        font-size: 1.6cqw;
    }

    .demo-link {
        max-width: 30cqw;
        font-size: 1.32cqw;
    }
}

@container (max-width: 355px) {
    .demo-contact {
        padding: 1.2cqw;
        font-size: 1.2cqw;
    }

    .demo-copy {
        padding: 4cqw 3.4cqw;
    }

    .demo-headline {
        font-size: 6.8cqw;
    }

    .demo-text {
        display: none;
    }

    .demo-link {
        margin-top: 3.5cqw;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Language-specific system font stacks. No external fonts, no network
   requests: every family below is either bundled with an OS or a common
   system default. */

html:lang(ja) {
    --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
    --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

html:lang(zh) {
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
    --serif: "Songti SC", SimSun, "Noto Serif SC", serif;
}

html:lang(ko) {
    --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
    --serif: Batang, "Nanum Myeongjo", "Noto Serif KR", serif;
}

html:lang(ar) {
    --sans: "Segoe UI", Tahoma, "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif;
    --serif: "Noto Naskh Arabic", "Traditional Arabic", Amiri, serif;
}

/* CJK headings need more breathing room than the tight Latin display styles. */

html:lang(ja) .hero h1,
html:lang(zh) .hero h1,
html:lang(ko) .hero h1,
html:lang(ja) .section-heading h2,
html:lang(zh) .section-heading h2,
html:lang(ko) .section-heading h2,
html:lang(ja) .process h2,
html:lang(zh) .process h2,
html:lang(ko) .process h2,
html:lang(ja) .agency h2,
html:lang(zh) .agency h2,
html:lang(ko) .agency h2,
html:lang(ja) .preview-dialog-head h2,
html:lang(zh) .preview-dialog-head h2,
html:lang(ko) .preview-dialog-head h2 {
    letter-spacing: -0.015em;
    line-height: 1.18;
}

html:lang(ja) .demo-headline,
html:lang(zh) .demo-headline,
html:lang(ko) .demo-headline,
html:lang(ja) .mini-headline,
html:lang(zh) .mini-headline,
html:lang(ko) .mini-headline {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* RTL: mirroring is handled by logical properties above. These rules cover
   typography, arrows and anything that has no logical equivalent. */

[dir="rtl"] .eyebrow,
[dir="rtl"] .hero h1,
[dir="rtl"] .hero-lead,
[dir="rtl"] .hero-note,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .section-heading p,
[dir="rtl"] .showcase-hint,
[dir="rtl"] .process h2,
[dir="rtl"] .process-lead,
[dir="rtl"] .agency h2,
[dir="rtl"] .agency-lead,
[dir="rtl"] .brand-name,
[dir="rtl"] .primary-nav a,
[dir="rtl"] .login-link,
[dir="rtl"] .language-switcher-toggle,
[dir="rtl"] .feature-item h3,
[dir="rtl"] .process-step h3,
[dir="rtl"] .process-step p,
[dir="rtl"] .process-note,
[dir="rtl"] .agency-item h3,
[dir="rtl"] .agency-item p,
[dir="rtl"] .showcase-meta h3,
[dir="rtl"] .preview-dialog-head h2,
[dir="rtl"] .demo-headline,
[dir="rtl"] .demo-text,
[dir="rtl"] .demo-link,
[dir="rtl"] .mini-headline,
[dir="rtl"] .mini-text,
[dir="rtl"] .mini-link,
[dir="rtl"] .edit-title,
[dir="rtl"] .edit-save,
[dir="rtl"] .site-footer p,
[dir="rtl"] .preview-text,
[dir="rtl"] .preview-tags li,
[dir="rtl"] .mock-caption,
[dir="rtl"] .button,
[dir="rtl"] .hero-button,
[dir="rtl"] .section-button {
    letter-spacing: 0;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .process h2,
[dir="rtl"] .agency h2,
[dir="rtl"] .preview-dialog-head h2 {
    line-height: 1.2;
}

[dir="rtl"] .demo-headline {
    line-height: 1.25;
}

[dir="rtl"] .mini-headline {
    line-height: 1.3;
}

[dir="rtl"] .button svg,
[dir="rtl"] .showcase-meta svg {
    transform: scaleX(-1);
}

[dir="rtl"] .hero-button:hover svg,
[dir="rtl"] .section-button:hover svg {
    transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .showcase-item:hover .showcase-meta svg {
    transform: scaleX(-1) translate(2px, -2px);
}

[dir="rtl"] .site-footer a span {
    display: inline-block;
    transform: scaleX(-1);
}

[dir="rtl"] .site-footer a:hover span {
    transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .demo-link b,
[dir="rtl"] .mini-link b {
    display: inline-block;
    transform: scaleX(-1);
}
