/* What's new in Tonee 2.0 (whats-new.html, whats-new_it.html). On top of site.css and landing.css, whose
   sections, phones and cards it reuses: only the guide's own pieces are here, from the same tokens. */

/* ---------- The top: the line, and the app's bar as it opens ---------- */

.wn-hero { padding: clamp(24px, 4vw, 64px) 0 0; }
.wn-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) {
    .wn-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
}
.wn-hero__title { max-width: 12ch; margin-bottom: 24px; }
.wn-hero__text .lede { max-width: 560px; }
.wn-lang { margin-top: 20px; }
.wn-lang a { color: var(--ink); font-weight: 600; }

.wn-tabs { margin: 0; padding: 36px 20px 26px; border-radius: var(--r-look); background: var(--wash); }
/* The bar is the app's, in app points like the phones (landing.css .a-tabbar), without the screen's 16 on each
   side, scaled with zoom to the panel: the window less the gutters and the panel's padding. */
.wn-bar { --s: .66; zoom: var(--s); position: relative; width: 358px; height: 120px; margin: 0 auto; }
.wn-bar .app { background: none; }
.wn-bar .a-tabbar { left: 0; right: 0; }
@media (min-width: 360px) { .wn-bar { --s: .76; } }
@media (min-width: 375px) { .wn-bar { --s: .8; } }
@media (min-width: 390px) { .wn-bar { --s: .85; } }
@media (min-width: 414px) { .wn-bar { --s: .92; } }
@media (min-width: 440px) { .wn-bar { --s: 1; } }
@media (min-width: 720px) { .wn-bar { --s: 1.15; } }
@media (min-width: 1024px) { .wn-bar { --s: 1; } }
@media (min-width: 1280px) { .wn-bar { --s: 1.25; } }
@media (min-width: 1440px) { .wn-bar { --s: 1.3; } }
.wn-tabs__cap { max-width: 420px; margin: 18px auto 0; color: var(--muted); font-size: 17px; line-height: 1.5; text-align: center; text-wrap: pretty; }

/* ---------- The five steps ---------- */

.wn-num { margin-bottom: 22px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }

/* Where it is in the app: the tab and the buttons, drawn small as the app draws them */
.copy .wn-where { display: grid; gap: 10px; margin-top: 26px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.wn-where__label { color: var(--muted); font-weight: 600; }
.wn-where__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.wn-sep { color: var(--muted); font-size: 17px; line-height: 1; }

.wn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px .1em 12px;
    border-radius: 17px;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.wn-chip svg { flex: none; width: 16px; height: 16px; }
.wn-chip--tab { background: var(--peach); box-shadow: none; padding-left: 10px; }
.wn-chip--tab svg { width: 18px; height: 18px; }
.wn-chip--play { gap: 7px; padding: 0 2px .1em 0; box-shadow: none; }
.wn-chip__fab { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.wn-chip__fab svg { width: 18px; height: 18px; }
.wn-chip--round { width: 34px; padding: 0; justify-content: center; }
.wn-chip--peach { background: var(--brand); color: var(--on-brand); box-shadow: none; }

/* The narrowest phones (320): the phones a little smaller, so they fit inside the gutters. */
@media (max-width: 359px) { .wn-step .device { --s: .66; } }

/* The phone of step 1 and its «Play again», as on the landing; on phones it loops, so no button. */
.wn-stage { display: grid; justify-items: center; gap: 22px; }
@media (max-width: 1023px) { .wn-stage .replay { display: none; } }

/* Step 2: two cards of Your closet in numbers on the grey of the landing's cells */
.wn-cards {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 24px 20px;
    border-radius: var(--r-look);
    background: var(--wash);
}
@media (min-width: 1024px) { .wn-cards { padding: 28px 24px; } }
/* Laptops: the panel follows the window's height as the landing's phones do, so it fits whole under the header
   with room around (its full height is about 670 px: (h - header 72 - room 32) / 670). */
@media (min-width: 1024px) and (max-height: 780px) { .wn-cards { zoom: .96; } }
@media (min-width: 1024px) and (max-height: 740px) { .wn-cards { zoom: .9; } }
@media (min-width: 1024px) and (max-height: 700px) { .wn-cards { zoom: .84; } }
@media (min-width: 1024px) and (max-height: 660px) { .wn-cards { zoom: .78; } }
@media (min-width: 1024px) and (max-height: 620px) { .wn-cards { zoom: .72; } }

/* Step 3: the hint under the phone you can play with */
.wn-try { margin-top: 18px; text-align: center; text-wrap: balance; }

/* ---------- Where did it go, and the plans ---------- */

.wn-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.wn-list li { display: grid; gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 720px) {
    .wn-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: baseline; }
}
.wn-list__k { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.2px; }
.wn-list__v { color: var(--muted); font-size: 17px; line-height: 1.9; text-wrap: pretty; }
.wn-list .wn-chip { height: 28px; padding: 0 11px .1em 9px; border-radius: 14px; font-size: 14px; vertical-align: middle; }
.wn-list .wn-chip--tab { padding-left: 8px; }
.wn-list .wn-chip--play { padding: 0 2px .1em 0; }
.wn-list .wn-chip--round { width: 28px; padding: 0; }
.wn-list .wn-chip__fab { width: 28px; height: 28px; }
.wn-list .wn-chip__fab svg { width: 16px; height: 16px; }
.wn-list .wn-sep { margin: 0 2px; vertical-align: middle; }
