/* ----- Landing /tedefon (Samsung × Tede — TEDEFOLD) ----- */
@font-face {
    font-family: 'Samsung Head';
    src: url('/tedefon/fonts/SamsungSSHead-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Samsung Head';
    src: url('/tedefon/fonts/SamsungSSHead-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Samsung Body';
    src: url('/tedefon/fonts/SamsungSSBody-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Samsung Body';
    src: url('/tedefon/fonts/SamsungSSBody-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --tf-sky: #dcf0fb;
    --tf-sky-2: #c6e7fa;
    --tf-letters: #c3e5f8;
    --tf-ink: #333437;
    --tf-ink-2: #55585e;
    --tf-blue: #3f80d3;
    --tf-blue-2: #8ad7f7;
    --tf-navy: #2b50a0;
    --tf-navy-2: #1f3d80;
    --tf-white: #ffffff;
    --tf-grad: linear-gradient(90deg, var(--tf-blue) 0%, var(--tf-blue-2) 100%);
    --tf-head: 'Samsung Head', 'Samsung Body', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tf-body: 'Samsung Body', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tf-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
    --tf-lcd-font: 'VT323', ui-monospace, 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body.tf {
    margin: 0;
    color: var(--tf-ink);
    font-family: var(--tf-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--tf-sky);
    /* rozsypane litery jak na karcie prepaid */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23c3e5f8' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='30'%3E%3Ctext x='24' y='40' transform='rotate(90 24 40)'%3ET%3C/text%3E%3Ctext x='140' y='28' transform='rotate(90 140 28)'%3EE%3C/text%3E%3Ctext x='262' y='74' transform='rotate(-90 262 74)'%3ED%3C/text%3E%3Ctext x='330' y='128' transform='rotate(90 330 128)'%3E2%3C/text%3E%3Ctext x='72' y='160' transform='rotate(-90 72 160)'%3EF%3C/text%3E%3Ctext x='188' y='168' transform='rotate(90 188 168)'%3EO%3C/text%3E%3Ctext x='304' y='262' transform='rotate(-90 304 262)'%3EN%3C/text%3E%3Ctext x='30' y='262' transform='rotate(90 30 262)'%3E0%3C/text%3E%3Ctext x='132' y='306' transform='rotate(-90 132 306)'%3E%25%3C/text%3E%3Ctext x='226' y='332' transform='rotate(90 226 332)'%3E6%3C/text%3E%3Ctext x='120' y='228'%3E.%3C/text%3E%3Ctext x='250' y='200'%3E.%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 360px 360px;
}

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

.tf-wrap {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 20px;
}

strong { font-weight: 700; color: inherit; }

/* ----- Buttons ----- */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #1d1d1f;
    color: var(--tf-white);
    font-family: var(--tf-head);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .03em;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
    border: 0;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 0 rgba(31, 61, 128, .25);
}
.tf-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tf-btn:hover { background: var(--tf-navy); transform: translateY(-1px); }
.tf-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(31, 61, 128, .25); }
.tf-btn:focus-visible,
.tf-play:focus-visible,
.tf-progress:focus-visible { outline: 3px solid var(--tf-blue); outline-offset: 3px; }

.tf-btn-block { width: 100%; }

.tf-btn-light { background: var(--tf-white); color: var(--tf-navy-2); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.tf-btn-light:hover { background: var(--tf-sky); color: var(--tf-navy-2); }
.tf-btn-light:focus-visible { outline-color: var(--tf-white); }

/* ----- Top bar ----- */
.tf-top { padding-block: 18px; }
.tf-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tf-top-samsung { width: 180px; }
.tf-top-stamp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--tf-head);
    font-weight: 500;
    font-size: .68rem;
    letter-spacing: .32em;
    line-height: 1.5;
    color: var(--tf-ink);
}

/* ----- Hero ----- */
.tf-hero { margin-bottom: 16px; }
.tf-hero-img {
    width: 100%;
    border-radius: 28px;
    border: 5px solid var(--tf-white);
    box-shadow: 0 14px 40px rgba(31, 61, 128, .22);
}

/* ----- Intro ----- */
.tf-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: center;
    padding-block: 24px 48px;
}
.tf-h1 { margin: 0 0 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tf-h1-big {
    font-family: var(--tf-display);
    font-weight: 400;
    font-size: clamp(3.2rem, 10vw, 6.6rem);
    line-height: .95;
    letter-spacing: .005em;
    color: var(--tf-ink);
    transform: skewX(-9deg);
    transform-origin: left bottom;
    text-shadow: 4px 5px 0 var(--tf-sky-2);
}
.tf-h1-mid {
    font-family: var(--tf-head);
    font-weight: 700;
    font-size: clamp(1.15rem, 3.2vw, 1.7rem);
    letter-spacing: .02em;
    line-height: 1.2;
}
.tf-h1-tag {
    margin-top: 10px;
    font-family: var(--tf-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 4.6vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: .02em;
    color: var(--tf-ink);
    background: var(--tf-grad);
    padding: 6px 18px 8px;
    transform: rotate(-2.5deg) skewX(-9deg);
    box-shadow: 0 6px 0 rgba(31, 61, 128, .18);
}
.tf-lead { margin: 0 0 26px; max-width: 60ch; color: var(--tf-ink-2); }
.tf-lead strong { color: var(--tf-ink); }
.tf-intro-head {
    width: 100%;
    transform: rotate(-5deg);
    filter: drop-shadow(0 12px 18px rgba(31, 61, 128, .25));
}

/* ----- Ringtones ----- */
.tf-ring { padding-block: 24px 64px; scroll-margin-top: 16px; }
.tf-ring-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}
.tf-ring-phone {
    width: 84px;
    flex-shrink: 0;
    transform: rotate(-8deg);
    filter: drop-shadow(0 8px 12px rgba(31, 61, 128, .25));
}
.tf-kicker {
    margin: 0 0 2px;
    font-family: var(--tf-head);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--tf-blue);
}
.tf-h2 {
    margin: 0;
    font-family: var(--tf-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1;
    letter-spacing: .01em;
    transform: skewX(-9deg);
    transform-origin: left bottom;
}
.tf-ring-sub { margin: 8px 0 0; color: var(--tf-ink-2); }

.tf-tones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.tf-tone {
    background: var(--tf-white);
    border-radius: 26px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 6px 0 rgba(31, 61, 128, .14), 0 18px 40px rgba(31, 61, 128, .12);
}

/* Ekran jak w klapkowym Samsungu */
.tf-lcd {
    border-radius: 16px;
    padding: 12px 16px 12px;
    color: var(--tf-white);
    font-family: var(--tf-lcd-font);
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, var(--tf-blue-2) 0%, var(--tf-blue) 55%, var(--tf-navy) 100%);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .12), inset 0 10px 24px rgba(255, 255, 255, .18);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.tf-lcd-top,
.tf-lcd-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    line-height: 1;
}
.tf-lcd-title {
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    line-height: 1;
    padding-block: 12px 10px;
    letter-spacing: .04em;
}
.tf-lcd-bat { display: inline-flex; gap: 2px; padding: 2px; border: 2px solid currentColor; border-radius: 3px; }
.tf-lcd-bat i { display: block; width: 5px; height: 9px; background: currentColor; }

.tf-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.tf-eq i {
    display: block;
    width: 5px;
    height: 4px;
    background: currentColor;
    transition: height .2s ease;
}
.tf-tone.is-playing .tf-eq i { animation: tf-eq .9s steps(4) infinite alternate; }
.tf-tone.is-playing .tf-eq i:nth-child(2) { animation-duration: .7s; }
.tf-tone.is-playing .tf-eq i:nth-child(3) { animation-duration: 1.1s; }
.tf-tone.is-playing .tf-eq i:nth-child(4) { animation-duration: .6s; }
.tf-tone.is-playing .tf-eq i:nth-child(5) { animation-duration: .95s; }
.tf-tone.is-playing .tf-eq i:nth-child(6) { animation-duration: .75s; }
.tf-tone.is-playing .tf-eq i:nth-child(7) { animation-duration: 1.05s; }
@keyframes tf-eq {
    from { height: 3px; }
    to   { height: 18px; }
}

.tf-controls { display: flex; align-items: center; gap: 14px; }
.tf-play {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--tf-grad);
    color: var(--tf-ink);
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(31, 61, 128, .25);
    transition: transform .15s ease;
}
.tf-play:hover { transform: scale(1.05); }
.tf-play svg { width: 26px; height: 26px; fill: currentColor; }
.tf-ico-pause { display: none; }
.tf-tone.is-playing .tf-ico-play { display: none; }
.tf-tone.is-playing .tf-ico-pause { display: block; }

.tf-progress {
    position: relative;
    flex: 1;
    height: 12px;
    border-radius: 999px;
    background: var(--tf-sky);
    cursor: pointer;
    overflow: hidden;
    touch-action: none;
}
.tf-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--tf-grad);
    border-radius: inherit;
}

.tf-howto {
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .6);
    border: 2px dashed rgba(63, 128, 211, .45);
}
.tf-howto h3 {
    margin: 0 0 8px;
    font-family: var(--tf-head);
    font-weight: 700;
    font-size: 1.05rem;
}
.tf-howto ol { margin: 0; padding-left: 1.3em; color: var(--tf-ink-2); }
.tf-howto li + li { margin-top: 4px; }
.tf-howto strong { color: var(--tf-ink); }

/* ----- TEDEFOLD ----- */
.tf-fold {
    background: var(--tf-navy);
    color: var(--tf-white);
    padding-block: 64px;
    position: relative;
    overflow: hidden;
}
.tf-fold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 20%, rgba(138, 215, 247, .28), transparent 55%);
    pointer-events: none;
}
.tf-fold-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
}
/* padding w % szerokości — naklejka Galaxy siedzi pod odznaką i nie zasłania napisu TEDEFOLD */
.tf-fold-art { position: relative; padding-bottom: 25%; }
.tf-fold-badge {
    width: 100%;
    transform: rotate(-4deg);
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3));
}
.tf-fold-model {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    transform: rotate(4deg);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3));
}
.tf-h2-light { color: var(--tf-white); margin-bottom: 18px; }
.tf-fold-text p { margin: 0 0 16px; color: rgba(255, 255, 255, .86); }
.tf-fold-text strong { color: var(--tf-white); }
.tf-fold-text .tf-btn { margin-top: 10px; }

/* ----- Footer ----- */
.tf-foot {
    padding-block: 26px 34px;
    background: var(--tf-navy-2);
    color: rgba(255, 255, 255, .75);
    font-family: var(--tf-head);
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: .32em;
    text-align: center;
}
.tf-foot .tf-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }

/* ----- Responsive ----- */
@media (max-width: 860px) {
    .tf-intro { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
    .tf-fold-inner { grid-template-columns: 1fr; gap: 28px; }
    .tf-fold-art { max-width: 460px; margin-inline: auto; width: 100%; }
}

@media (max-width: 680px) {
    body.tf { font-size: 16px; }
    .tf-wrap { padding-inline: 16px; }
    .tf-top-samsung { width: 136px; }
    .tf-top-stamp { font-size: .6rem; letter-spacing: .24em; }
    .tf-hero-img { border-radius: 20px; border-width: 4px; }
    .tf-intro { grid-template-columns: 1fr; padding-top: 18px; }
    .tf-intro-head { width: 62%; max-width: 240px; margin-inline: auto; }
    .tf-btn { width: 100%; }
    .tf-tones { grid-template-columns: 1fr; }
    .tf-ring-phone { width: 62px; }
    .tf-fold { padding-block: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tf-tone.is-playing .tf-eq i { animation: none; height: 12px; }
    .tf-btn, .tf-play { transition: none; }
}
