/* struix.fr remake: flat colour fields, sine-wave edges between them, almost no borders */

@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/DMSerifDisplay-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/DMSans-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/DMSans-Italic.ttf) format("truetype");
}

:root {
    --paper: #f7f4ef;
    --ink: #1a1714;
    --night: #1a1714;
    --on-night: #f7f4ef;
    --accent: #c85a2a;
    --accent-strong: #e0692f;
    --soft: #f0a080;
    --tile: #fefcfa;
    --muted: #6b6459;
    --muted-night: #b8afa3;
    --danger: #d23b3b;

    --logo-font: "DM Serif Display", Georgia, serif;
    --brand: #c85a2a;
    --display: "DM Serif Display", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;

    --sq: 40px;
    --wrap: 1160px;
    --gutter: clamp(20px, 5vw, 56px);
    --r-lg: 14px;
    --r-md: 10px;
}

html.dark {
    --paper: #16130f;
    --ink: #f0ece6;
    --night: #0a0907;
    --tile: #1e1a16;
    --muted: #9a9088;
    --accent: #d2602b;
}

@media (max-width: 1100px) {
    :root {
        --sq: 32px;
    }
}

@media (max-width: 700px) {
    :root {
        --sq: 24px;
    }
}

@media (max-width: 420px) {
    :root {
        --sq: 18px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

::selection {
    background: var(--soft);
    color: #1a1714;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    margin: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.3rem, 6.6vw, 5.6rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
    max-width: 62ch;
}

a {
    color: inherit;
}

.lead {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    max-width: 54ch;
}

.small {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.sec--night :focus-visible,
.sec--accent :focus-visible,
.foot :focus-visible {
    outline-color: var(--soft);
}

.sec--soft :focus-visible {
    outline-color: #1a1714;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

.wrap--narrow {
    width: min(100% - 2 * var(--gutter), 760px);
}

.skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 100;
    background: var(--soft);
    color: #1a1714;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

/* ── colour fields ── */
.sec {
    padding-block: clamp(64px, 9vw, 128px);
}

.sec--paper {
    background: var(--paper);
    color: var(--ink);
}

.sec--night {
    background: var(--night);
    color: var(--on-night);
}

.sec--soft {
    background: var(--soft);
    color: #1a1714;
}

.sec--accent {
    background: var(--accent);
    color: #fefcfa;
}

/* ── sine-wave edge between two colour fields ──
   the wave's top is the upper field (--a), the curve is filled with the lower field (--b) */
.wave {
    position: relative;
    z-index: 1;
    height: clamp(28px, 4.5vw, 56px);
    margin-top: -1px;
    margin-bottom: -2px;
    background: var(--a);
    overflow: hidden;
}

.wave svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--b);
}

/* flat cards, no offset shadow */
.tile,
.skills,
.form {
    background: var(--card-bg);
}

/* plain dot for the value icons */

/* ── nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    color: var(--ink);
}

.nav__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 400 1.5rem/1 var(--logo-font);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo img {
    height: 1.7em;
    width: auto;
}

.logo b {
    color: var(--brand);
    font-weight: 400;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    display: block;
    padding: 0.6em 1.05em;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: background 0.15s;
}

.nav__links a:hover {
    background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.nav__links a[aria-current="page"] {
    background: var(--soft);
    color: #1a1714;
}

.nav__links a.nav__cta {
    background: var(--accent);
    color: #fefcfa;
}

.nav__links a.nav__cta:hover {
    background: #a94a20;
}

.nav__links a.nav__cta[aria-current="page"] {
    background: var(--ink);
    color: var(--paper);
}

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--paper);
}

/* one svg, one stroke width: three bars close into an X by rotating, never by changing thickness */
.nav__icon {
    width: 22px;
    height: 22px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.nav__icon line {
    transform-box: view-box;
    transform-origin: 10px 10px;
    transition: transform 0.22s, opacity 0.15s, stroke-dasharray 0.22s;
}

.nav__icon .b3 {
    stroke-dasharray: 8 14;
}

.nav__toggle[aria-expanded="true"] .nav__icon .b1 {
    transform: rotate(45deg) translateY(4.5px);
}

.nav__toggle[aria-expanded="true"] .nav__icon .b2 {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__icon .b3 {
    transform: rotate(-45deg) translateY(-4.5px);
    stroke-dasharray: 14 14;
}

.nav__links .nav__legal {
    display: none;
}

@media (max-width: 760px) {
    .nav__toggle {
        display: inline-flex;
    }

    /* full panel under the header, above the page; the header and its button stay on top */
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px var(--gutter) 28px;
        background: var(--paper);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .nav__links.is-open {
        visibility: visible;
        opacity: 1;
    }

    .nav__links li {
        margin: 0;
    }

    /* flat rows, arrow on the right; contact keeps the same row in the accent colour */
    .nav__links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        padding: 0.4em 0.1em;
        font-size: 1.25rem;
        font-weight: 600;
        background: none;
        border-radius: 0;
        border-bottom: 0;
    }

    .nav__links a::after {
        content: "";
        width: 18px;
        height: 18px;
        flex: none;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* kill every desktop background state (hover, current page, contact button) inside the panel */
    .nav__links a,
    .nav__links a:hover,
    .nav__links a[aria-current="page"],
    .nav__links a.nav__cta,
    .nav__links a.nav__cta:hover,
    .nav__links a.nav__cta[aria-current="page"] {
        background: none;
    }

    .nav__links a[aria-current="page"] {
        color: var(--ink);
    }

    .nav__links a.nav__cta,
    .nav__links a.nav__cta[aria-current="page"] {
        color: var(--accent);
    }

    .nav__links .nav__legal {
        display: block;
    }

    .nav__links li:not(.nav__legal)+.nav__legal {
        margin-top: auto;
        padding-top: 24px;
    }

    .nav__links .nav__legal a {
        min-height: 52px;
        font-size: 1rem;
        font-weight: 500;
        opacity: 0.75;
    }
}

/* ── buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1em 1.7em;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: 700 1.02rem/1 var(--body);
    text-decoration: none;
    letter-spacing: -0.005em;
    transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:active {
    transform: translateY(0);
}

.btn--accent {
    background: var(--accent);
    color: #fefcfa;
}

.btn--accent:hover {
    background: #a94a20;
}

.btn--ink {
    background: #1a1714;
    color: #fefcfa;
}

.btn--ink:hover {
    background: #3a332c;
}

.btn--peach {
    background: var(--soft);
    color: #1a1714;
}

.btn--peach:hover {
    background: #f5b79d;
}

.btn--soft {
    background: color-mix(in srgb, currentColor 11%, transparent);
    color: inherit;
}

.btn--soft:hover {
    background: color-mix(in srgb, currentColor 18%, transparent);
}

.btn--full {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* ── home hero ── */
.hero {
    padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.hero h1 {
    max-width: 20ch;
    font-size: clamp(2.3rem, 6vw, 5rem);
}

.hero .lead {
    margin-top: 28px;
}

.tiles {
    position: relative;
    min-height: clamp(380px, 38vw, 470px);
}

.tile {
    position: absolute;
    border-radius: var(--r-lg);
    padding: clamp(22px, 2.6vw, 34px);
}

.tile--soft {
    --card-bg: var(--soft);
    color: #1a1714;
    top: 8px;
    left: 8px;
    width: 82%;
    --shadow: #1a1714;
}

.tile--accent {
    --card-bg: var(--accent);
    color: #fefcfa;
    bottom: 22px;
    right: 22px;
    width: 76%;
    --shadow: var(--ink);
}

html.dark .tile--accent {
    --shadow: #c85a2a;
}

.tile__num {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font: 400 clamp(3.6rem, 7.4vw, 6rem)/0.9 var(--display);
    letter-spacing: -0.05em;
}

.tile__num small {
    font-size: 0.42em;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.tile__label {
    margin: 10px 0 0;
    font-weight: 600;
}

.included {
    margin-top: clamp(40px, 6vw, 72px);
}

.included p {
    font-weight: 700;
    margin-bottom: 14px;
}

.chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chips li {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 64px;
    padding: 0.8em 1.2em;
    border-radius: 10px;
    font-weight: 650;
    line-height: 1.25;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.chips li:nth-child(even) {
    background: color-mix(in srgb, var(--soft) 38%, transparent);
}

/* ── section heads ── */
.head {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.head h2 {
    max-width: 16ch;
}

.head p {
    margin-top: 20px;
}

/* ── offers ── */
.offers {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.offer {
    border-radius: var(--r-lg);
    padding: clamp(26px, 3.4vw, 44px);
    display: flex;
    flex-direction: column;
}

.offer p {
    margin-top: 16px;
}

.offer__price {
    margin-top: auto;
    padding-top: 28px;
    font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display);
    letter-spacing: -0.04em;
}

.offer__price small {
    font: 600 0.95rem/1.3 var(--body);
    letter-spacing: 0;
    display: block;
    margin-top: 6px;
    opacity: 0.8;
}

.offer--vitrine {
    grid-column: span 7;
    background: color-mix(in srgb, var(--paper) 10%, transparent);
    color: var(--on-night);
}

.offer--host {
    grid-column: span 5;
    background: var(--accent);
    color: #fefcfa;
}

.offer--mods {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: color-mix(in srgb, var(--on-night) 10%, transparent);
}

.offer--mods p {
    margin: 10px 0 0;
}

.offer--mods .offer__price {
    margin: 0;
    padding: 0;
}

/* ── steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.step:nth-child(2) {
    margin-top: 28px;
}

.step:nth-child(3) {
    margin-top: 56px;
}

.step:nth-child(4) {
    margin-top: 84px;
}

.step__n {
    font: 400 clamp(4rem, 7vw, 6rem)/0.9 var(--display);
    letter-spacing: -0.05em;
    color: var(--accent);
    margin-bottom: 18px;
}

.step p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* ── closing call to action ── */
.cta__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 6vw, 80px);
}

.cta h2 {
    max-width: 14ch;
}

.cta p {
    margin-top: 22px;
}

/* ── page heroes ── */
.page-hero {
    padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    max-width: 24ch;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-hero .lead {
    margin-top: 26px;
}

.page-hero .lead a {
    color: var(--accent);
    font-weight: 700;
}

html.dark .page-hero .lead a {
    color: var(--soft);
}

/* ── pricing ── */
.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 36px);
}

.plan {
    border-radius: var(--r-lg);
    padding: clamp(28px, 3.6vw, 48px);
    display: flex;
    flex-direction: column;
}

.plan--site {
    background: var(--tile);
    color: var(--ink);
}

.plan--host {
    background: var(--soft);
    color: #1a1714;
}

.plan__kind {
    align-self: flex-start;
    padding: 0.4em 1em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 22px;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.plan p {
    margin-top: 14px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 18px;
    font: 400 clamp(4.4rem, 8vw, 6.6rem)/0.9 var(--display);
    letter-spacing: -0.05em;
}

.price span {
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.price__note {
    margin: 12px 0 0;
    font-weight: 600;
    opacity: 0.85;
}

.feats {
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.feats li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.feats li::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%23c85a2a'/%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23fefcfa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.plan--host .feats li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%231a1714'/%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23f7f4ef' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan .btn {
    margin-top: auto;
}

.extras {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.extra {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 22px clamp(20px, 3vw, 32px);
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.extra:nth-child(even) {
    background: color-mix(in srgb, var(--soft) 28%, transparent);
}

.extra h4 {
    margin-bottom: 4px;
}

.extra p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.extra__price {
    font: 400 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display);
    letter-spacing: -0.03em;
    color: var(--accent);
    white-space: nowrap;
}

html.dark .extra__price {
    color: var(--soft);
}

.vat {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--muted);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: rgba(255, 255, 255, 0.13);
    border-radius: var(--r-md);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 22px clamp(20px, 3vw, 32px);
    font: 400 1.2rem/1.3 var(--display);
    letter-spacing: -0.01em;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

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

.faq summary::after {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v11M2.5 8h11' fill='none' stroke='%231a1714' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0;
    padding: 0 clamp(20px, 3vw, 32px) 24px;
    max-width: none;
}

.faq a {
    font-weight: 700;
}

/* ── about ── */
.story {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.story p {
    font-size: 1.15rem;
    line-height: 1.65;
}

.skills {
    --card-bg: var(--accent);
    color: #fefcfa;
    border-radius: var(--r-lg);
    padding: clamp(26px, 3.4vw, 44px);
    --shadow: var(--ink);
}

html.dark .skills {
    --shadow: var(--accent);
}

.skills h3 {
    margin-bottom: 22px;
}

.skills ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.skills li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
}

.skills li::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%23f0a080'/%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%231a1714' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
}

.value p {
    margin: 14px 0 0;
    color: var(--muted-night);
}

/* ── contact ── */
.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.contact h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.contact__left p {
    margin-top: 18px;
}

.method {
    margin-top: 30px;
}

.method dt {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
}

.method dd {
    margin: 4px 0 0;
    font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--display);
    letter-spacing: -0.01em;
}

.method dd a {
    color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

html.dark .method dd a {
    color: var(--soft);
}

.timing {
    margin-top: 36px;
    padding: 24px 28px;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--soft) 40%, transparent);
}

.timing h4 {
    margin-bottom: 8px;
}

.timing p {
    margin: 0;
}

.form {
    --card-bg: var(--tile);
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 52px);
    --shadow: var(--accent);
}

.form>p {
    margin-top: 10px;
    color: var(--muted);
}

.form fieldset {
    border: 0;
    padding: 0;
    margin: 34px 0 0;
    min-width: 0;
}

.form legend {
    padding: 0;
    margin-bottom: 18px;
    font: 400 1.2rem/1.2 var(--display);
    letter-spacing: -0.01em;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 16px;
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 15px 17px;
    font: 400 1rem/1.4 var(--body);
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    transition: box-shadow 0.15s, background 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
    color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    box-shadow: 0 0 0 3px var(--accent);
}

.field textarea {
    resize: vertical;
    min-height: 150px;
}

.field select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c85a2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
}

.field .invalid {
    box-shadow: 0 0 0 3px var(--danger);
}

.form__submit {
    margin-top: 8px;
}

.msg {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.msg[hidden] {
    display: none;
}

.msg--error {
    background: color-mix(in srgb, var(--danger) 16%, transparent);
}

.msg--ok {
    background: color-mix(in srgb, var(--soft) 55%, transparent);
    margin-top: 0;
    font-size: 1.1rem;
}

.form__note {
    margin: 18px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.form__note a,
.msg a {
    color: var(--accent);
    font-weight: 700;
}

html.dark .form__note a,
html.dark .msg a {
    color: var(--soft);
}

/* ── legal ── */
.legal h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    margin-bottom: 36px;
}

.legal h3 {
    font-size: 1.45rem;
    margin: 2.2em 0 0.5em;
}

.legal p {
    line-height: 1.7;
    max-width: none;
}

.legal a {
    color: var(--accent);
    font-weight: 600;
}

html.dark .legal a {
    color: var(--soft);
}

/* ── footer ── */
.foot {
    background: var(--night);
    color: var(--on-night);
    padding-block: clamp(48px, 6vw, 80px);
}

.foot__in {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.foot__tag {
    margin: 14px 0 0;
    color: var(--muted-night);
    max-width: 34ch;
}

.foot__side {
    text-align: right;
    color: var(--muted-night);
    font-size: 0.92rem;
}

.foot__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.foot__legal a {
    color: var(--on-night);
    text-underline-offset: 4px;
}

.foot__legal a:hover {
    color: var(--soft);
}

.foot__meta {
    margin: 0;
    max-width: none;
}

@media (max-width: 560px) {
    .foot__in {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .foot__side {
        text-align: left;
    }

    .foot__legal {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        margin: 0 0 22px;
    }

    .foot__legal a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        font-weight: 600;
        text-decoration: none;
    }

    .foot__legal a::after {
        content: "";
        width: 16px;
        height: 16px;
        flex: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23f7f4ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .foot__meta {
        font-size: 0.85rem;
    }
}

/* ── responsive ── */
@media (max-width: 960px) {

    .hero__grid,
    .story,
    .contact,
    .pricing {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 16ch;
    }

    .tiles {
        min-height: 400px;
        max-width: 520px;
    }

    .offer--vitrine,
    .offer--host {
        grid-column: span 12;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step:nth-child(n) {
        margin-top: 0;
    }

    .step:nth-child(even) {
        margin-top: 32px;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .cta__in {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {

    .steps,
    .row {
        grid-template-columns: 1fr;
    }

    .step:nth-child(even) {
        margin-top: 0;
    }

    .foot__meta {
        text-align: left;
    }

    .foot__legal {
        justify-content: flex-start;
    }

    .extra {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .offer--mods {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .sec {
        padding-block: 56px;
    }

    .btn-row .btn {
        width: 100%;
    }

    .foot__legal a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

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

    .btn,
    .nav__links {
        transition: none;
    }
}

/* ── phone: hero price tiles stacked, no overlap, no tilt ── */
@media (max-width: 960px) {
    .tiles {
        min-height: 0;
        max-width: none;
        display: grid;
        gap: 14px;
        margin-top: 8px;
    }

    .tile {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 88%;
        padding: 22px 24px;
    }

    .tile--soft {
        justify-self: start;
    }

    .tile--accent {
        justify-self: end;
    }

    .tile__num {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .tile__num small {
        font-size: 0.4em;
    }

    .tile__label {
        margin-top: 6px;
    }
}

@media (max-width: 420px) {
    .tile {
        width: 100%;
    }
}

/* ── scrollbars ── */
html,
.nav__links {
    scrollbar-color: var(--accent) var(--night);
    scrollbar-width: thin;
}

/* Keep centered content from shifting when a scrollbar appears. */
html {
    scrollbar-gutter: stable both-edges;
}