/* Watchwright's own site: a standalone look, apart from the studio's Halo pages. */

:root {
    --ww-bench: #16302f;
    --ww-surface: #1e3d3c;
    --ww-line: #335554;
    --ww-cream: #f2e9d6;
    --ww-muted: #a9c2be;
    --ww-amber: #e09a3e;
    --ww-shadow: rgba(5, 16, 15, 0.45);
    --ww-serif: "DM Serif Display", Georgia, serif;
    --ww-sans: "DM Sans", system-ui, sans-serif;
    --ww-mono: "DM Mono", ui-monospace, monospace;
    --ww-gutter: 32px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ww-bench);
    color: var(--ww-cream);
    font-family: var(--ww-sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ww-cream);
}

a:hover {
    color: var(--ww-amber);
}

img {
    display: block;
    height: auto;
}

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

.ww-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--ww-gutter);
    padding-right: var(--ww-gutter);
}

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

/* Type */

/* Roles follow the app's type scale (Theme/HaloTokens.swift), sized up for
   the web: label, body, title, heading, display and hero. */

.ww-overline {
    font-family: var(--ww-sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ww-muted);
}

.ww-display {
    font-family: var(--ww-serif);
    font-weight: 400;
}

.ww-display em {
    font-style: italic;
    color: var(--ww-muted);
}

.ww-h1 {
    font-size: 84px;
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.ww-h2 {
    font-size: 60px;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.ww-h2--centre {
    font-size: 52px;
    line-height: 1.05;
}

.ww-h3 {
    font-size: 36px;
    line-height: 1.1;
}

.ww-lede {
    font-size: 21px;
    line-height: 1.55;
    color: var(--ww-muted);
    max-width: 520px;
}

.ww-body {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ww-muted);
}

.ww-small {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ww-muted);
}

/* Buttons */

.ww-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--ww-amber);
    color: var(--ww-bench);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.ww-button:hover {
    background: #eab066;
    color: var(--ww-bench);
}

/* The app's secondary control: an outline, for everything but the action. */
.ww-button--outline {
    background: transparent;
    color: var(--ww-cream);
    border: 1px solid var(--ww-line);
}

.ww-button--outline:hover {
    background: rgba(242, 233, 214, 0.06);
    color: var(--ww-cream);
}

.ww-button--large {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 17px;
}

/* Screens */

.ww-shot {
    width: 100%;
    border-radius: 40px;
    border: 1px solid var(--ww-line);
}

.ww-shot--lifted {
    box-shadow: 0 40px 80px var(--ww-shadow);
}

/* Header */

.ww-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.ww-brand {
    display: flex;
    align-items: center;
}

.ww-brand img {
    width: auto;
    height: 34px;
}

.ww-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

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

.ww-nav a:not(.ww-button):hover {
    color: var(--ww-cream);
}

/* Hero */

.ww-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 96px;
}

.ww-hero__text {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ww-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.ww-hero__note {
    font-size: 15px;
    color: var(--ww-muted);
}

.ww-hero__screens {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ww-hero__screens img {
    width: 54%;
    max-width: 320px;
    border-radius: 44px;
}

/* The day look sits behind the night one, lower and to the left. */
.ww-hero__back {
    margin-top: 72px;
    margin-right: -14%;
    opacity: 0.92;
}

.ww-hero__front {
    position: relative;
}

/* How it works */

.ww-section {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-top: 104px;
    padding-bottom: 104px;
}

.ww-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

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

.ww-step {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ww-step img {
    max-width: 300px;
    border-radius: 34px;
}

.ww-step__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ww-step__number {
    font-family: var(--ww-sans);
    font-weight: 500;
    font-size: 15px;
    color: var(--ww-amber);
}

.ww-step h3 {
    font-family: var(--ww-serif);
    font-size: 28px;
    font-weight: 400;
}

/* Build */

.ww-build {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 72px;
    padding-top: 120px;
    padding-bottom: 120px;
}

.ww-build__text {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ww-details {
    margin-top: 8px;
    padding: 0;
    list-style: none;
    font-size: 17px;
    border-bottom: 1px solid var(--ww-line);
}

.ww-details li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--ww-line);
}

.ww-details span {
    flex: none;
    width: 24px;
    font-family: var(--ww-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--ww-amber);
}

.ww-build__screens {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.ww-build__screens img {
    width: 48%;
    max-width: 280px;
    box-shadow: 0 30px 60px rgba(5, 16, 15, 0.4);
}

.ww-build__screens img + img {
    margin-top: 64px;
}

/* iPhone Duo */

.ww-duo {
    align-items: center;
    text-align: center;
    gap: 48px;
}

.ww-duo .ww-intro {
    max-width: 760px;
    align-items: center;
}

.ww-places__show {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    align-items: center;
    gap: 96px;
    margin-top: 16px;
}

/* iPhone Duo stood up like a tent: the front half leans back, the other
   half behind it, hinged along the top. */
.ww-tent {
    margin: 0;
    position: relative;
    perspective: 1800px;
    padding: 24px 0 40px;
}

.ww-tent__device {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-22deg) scale(0.92);
}

.ww-tent__front,
.ww-tent__back {
    border-radius: 7% / 10%;
    background: linear-gradient(160deg, #6f7a7c, #2a3233 45%, #4b5456);
    padding: 1.6%;
}

.ww-tent__front {
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ww-tent__front img {
    width: 100%;
    border-radius: 6% / 9%;
    background: #000;
}

.ww-tent__back {
    position: absolute;
    inset: 0;
    transform-origin: top center;
    transform: rotateX(-48deg);
    background: linear-gradient(180deg, #2c3536, #141a1b);
}

.ww-tent__shadow {
    position: absolute;
    left: 4%;
    right: 8%;
    bottom: 6px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(3, 10, 10, 0.6), transparent);
    filter: blur(6px);
    z-index: -1;
}

/* A Home Screen, drawn: the widget among plain app tiles. */
.ww-home {
    margin: 0;
    padding: 10px;
    border-radius: 48px;
    background: linear-gradient(160deg, #6f7a7c, #2a3233 45%, #4b5456);
    box-shadow: 0 40px 80px var(--ww-shadow);
}

.ww-home__screen {
    position: relative;
    aspect-ratio: 9 / 19.5;
    border-radius: 39px;
    overflow: hidden;
    padding: 22% 7% 0;
    background:
        radial-gradient(circle at 80% 85%, rgba(224, 154, 62, 0.55), transparent 45%),
        radial-gradient(circle at 10% 20%, #2f5a57, transparent 60%),
        linear-gradient(170deg, #1e3d3c, #0d1c1c);
    display: flex;
    flex-direction: column;
}

.ww-home__status {
    position: absolute;
    top: 4.2%;
    left: 13%;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.ww-home__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14%;
    column-gap: 9%;
}

.ww-home__widget {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #fff;
}

.ww-home__widget img {
    width: 100%;
    border-radius: 13%;
}

.ww-home__apps {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18%;
    align-content: start;
}

.ww-home__row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 9%;
    margin-top: 6px;
}

.ww-home__app {
    display: block;
    aspect-ratio: 1;
    border-radius: 24%;
    background: rgba(242, 233, 214, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ww-home__app--ww {
    background: none;
    box-shadow: none;
    overflow: hidden;
}

.ww-home__app--ww img {
    width: 100%;
}

.ww-home__dock {
    margin-top: auto;
    margin-bottom: 5%;
    padding: 4.5%;
    border-radius: 30px;
    background: rgba(242, 233, 214, 0.12);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 9%;
}

.ww-places {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.ww-places li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--ww-line);
}

.ww-places h3 {
    font-family: var(--ww-serif);
    font-weight: 400;
    font-size: 28px;
}

/* Pricing */

.ww-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding-top: 120px;
    padding-bottom: 120px;
}

.ww-price {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 44px;
    border-radius: 20px;
    border: 1px solid var(--ww-line);
}

.ww-price--featured {
    background: var(--ww-surface);
}

/* Closing call */

.ww-closing {
    padding-bottom: 120px;
}

.ww-closing__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding-top: 96px;
    border-top: 1px solid var(--ww-line);
}

.ww-closing img {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    box-shadow: 0 24px 48px var(--ww-shadow);
}

.ww-closing h2 {
    font-size: 64px;
    line-height: 1;
}

/* Footer */

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

.ww-footer .ww-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
    font-size: 14px;
    color: var(--ww-muted);
}

.ww-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ww-footer a {
    color: var(--ww-muted);
}

/* Privacy policy */

.ww-policy {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px var(--ww-gutter) 120px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.ww-policy__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ww-policy__intro .ww-h1 {
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: 0;
}

.ww-policy__date {
    font-family: var(--ww-sans);
    font-size: 14px;
    color: var(--ww-muted);
}

.ww-policy section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 32px;
    border-top: 1px solid var(--ww-line);
}

.ww-policy h2 {
    font-size: 32px;
}

.ww-policy section p {
    font-size: 18px;
    line-height: 1.7;
}

/* Smaller screens */

@media (max-width: 760px) {
    .ww-steps {
        grid-template-columns: 1fr;
        row-gap: 56px;
    }

    .ww-step img {
        max-width: 280px;
    }
}

@media (max-width: 900px) {
    .ww-places {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ww-places__show {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px;
    }

    .ww-tent {
        width: 86%;
        margin-right: 8%;
    }

    .ww-home {
        width: min(280px, 78%);
    }

    .ww-h1 {
        font-size: 64px;
    }

    .ww-h2,
    .ww-closing h2 {
        font-size: 48px;
    }

    .ww-h2--centre {
        font-size: 44px;
    }

    .ww-hero,
    .ww-build {
        gap: 48px;
    }
}

@media (max-width: 600px) {
    :root {
        --ww-gutter: 16px;
    }

    .ww-nav {
        gap: 18px;
    }

    .ww-nav .ww-nav__link--extra {
        display: none;
    }

    .ww-h1,
    .ww-policy__intro .ww-h1 {
        font-size: 48px;
    }

    .ww-h2,
    .ww-h2--centre,
    .ww-closing h2 {
        font-size: 38px;
    }

    .ww-h3 {
        font-size: 30px;
    }

    .ww-lede {
        font-size: 18px;
    }

    .ww-body {
        font-size: 17px;
    }

    .ww-hero {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .ww-brand img {
        height: 28px;
    }

    .ww-hero__screens img {
        border-radius: 30px;
    }

    .ww-hero__back {
        margin-top: 44px;
    }

    .ww-home {
        padding: 8px;
        border-radius: 40px;
    }

    .ww-home__screen {
        border-radius: 32px;
    }

    .ww-section,
    .ww-duo {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .ww-steps {
        column-gap: 14px;
        row-gap: 40px;
    }

    .ww-step img {
        border-radius: 22px;
    }

    .ww-step h3 {
        font-size: 22px;
    }

    .ww-step .ww-small {
        font-size: 15px;
        line-height: 1.5;
    }

    .ww-pricing {
        grid-template-columns: 1fr;
    }

    .ww-build,
    .ww-pricing {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .ww-build__screens {
        gap: 14px;
    }

    .ww-build__screens img {
        border-radius: 28px;
    }

    .ww-build__screens img + img {
        margin-top: 40px;
    }

    .ww-closing {
        padding-bottom: 72px;
    }

    .ww-price {
        padding: 28px;
    }

    .ww-closing__inner {
        padding-top: 64px;
    }

    .ww-policy {
        padding-top: 40px;
        padding-bottom: 72px;
        gap: 40px;
    }

    .ww-policy h2 {
        font-size: 28px;
    }

    .ww-policy section p {
        font-size: 17px;
    }
}
