/*
 * www.movesync.uk: the "coming soon" page (MoveSync's brand guide:
 * MoveSync docs/brand/BRAND.md). Sage Mist background, white cards,
 * Door Green for action, Kiln Clay as a small warm accent, Manrope.
 */

@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
    --ms-green: #2F5D50;
    --ms-green-hover: #244A40;
    --ms-clay: #C9714A;
    --ms-sage: #E4ECE7; /* Sage Mist: the page background, tinted panels */
    --ms-white: #FFFFFF;
    --ms-ink: #1E2B28;
    --ms-slate: #58665F;
    --ms-border: #E3E5DE;
    --ms-border-strong: #D3D8CF;
    --ms-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --device: #1E2B28;
    --brand-accent: var(--ms-green); /* (the brand switcher changes it) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--ms-sage);
    color: var(--ms-ink);
    font-family: var(--ms-font);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ms-green); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ms-white); padding: 8px 12px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 16px; }

.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ms-slate); margin-bottom: 12px; }
.lead { font-size: 1.125rem; color: var(--ms-slate); margin-top: 16px; }
.note { font-size: 14px; color: var(--ms-slate); margin-top: 16px; }
.small-print { font-size: 13px; color: var(--ms-slate); margin-top: 20px; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 22px; border-radius: 12px;
    font: 700 15px/1 var(--ms-font); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.button.primary { background: var(--ms-green); color: var(--ms-white); }
.button.primary:hover { background: var(--ms-green-hover); }
.button.secondary { background: var(--ms-white); color: var(--ms-ink); border-color: var(--ms-border-strong); }
.button.secondary:hover { border-color: var(--ms-slate); }
.button.light { background: var(--ms-white); color: var(--ms-green); font-size: 17px; min-height: 52px; padding: 0 28px; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button:focus-visible, .brand-button:focus-visible, .thumbs button:focus-visible, .suite-card:focus-visible { outline: 3px solid var(--ms-clay); outline-offset: 2px; }

.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    background: var(--ms-sage); color: var(--ms-green); font-size: 13px; font-weight: 700;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ms-clay); }
.pill.light { background: rgba(255, 255, 255, .14); color: var(--ms-white); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(228, 236, 231, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ms-border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.wordmark .move { color: var(--ms-ink); }
.wordmark .sync { color: var(--ms-green); }
.logo.small .wordmark { font-size: 20px; }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { color: var(--ms-slate); font-weight: 600; font-size: 15px; text-decoration: none; }
.header-nav a:hover { color: var(--ms-ink); }

/* Device frames: a laptop and a phone around the screenshots */
.laptop { width: 100%; }
.laptop-screen {
    background: var(--device); border-radius: 16px 16px 0 0; padding: 2.2% 2.2% 2.6%;
    box-shadow: 0 24px 48px -28px rgba(28, 38, 51, .45);
}
.laptop-screen img { border-radius: 4px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--ms-sage); }
.laptop-base {
    height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px;
    background: #CBD3CD; position: relative;
}
.laptop-base::after { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #B4BEB7; border-radius: 0 0 8px 8px; }
.phone {
    margin: 0; width: 100%; max-width: 260px;
    background: var(--device); border-radius: 40px; padding: 10px;
    box-shadow: 0 24px 48px -24px rgba(28, 38, 51, .5);
}
.phone .phone-screen { border-radius: 31px; overflow: hidden; background: var(--ms-sage); }
.phone .phone-screen img { width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; }
figure.phone figcaption, .before-after figcaption { text-align: center; font-weight: 700; font-size: 15px; margin-top: 14px; color: var(--ms-ink); }
figure.phone { background: none; box-shadow: none; padding: 0; }
figure.phone .phone-screen { border: 10px solid var(--device); border-radius: 40px; box-shadow: 0 24px 48px -24px rgba(28, 38, 51, .5); }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-phone { position: absolute; right: -4%; bottom: 0; width: 28%; min-width: 120px; }

/* The three suites */
.suites { padding: 24px 0 8px; }
.suite-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.suite-card {
    display: grid; gap: 6px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--ms-ink);
    background: var(--ms-white); border: 1px solid var(--ms-border); transition: border-color .15s;
}
.suite-card:hover { border-color: var(--ms-green); }
.suite-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ms-sage); display: grid; place-items: center; margin-bottom: 6px; }
.suite-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ms-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.suite-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.suite-line { color: var(--ms-slate); font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-inline: auto; margin-bottom: 48px; }
.section.alt { background: var(--ms-white); border-block: 1px solid var(--ms-border); } /* (white, not the kit's warm Limewash, which reads as beige beside Sage Mist) */

/* Branding: before and after, and the switcher */
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.before-after figure { margin: 0; }
.browser { background: var(--ms-white); border: 1px solid var(--ms-border); border-radius: 16px; padding: 30px 10px 10px; position: relative; }
.browser::before {
    content: ''; position: absolute; left: 14px; top: 12px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ms-border-strong); box-shadow: 14px 0 var(--ms-border-strong), 28px 0 var(--ms-border-strong);
}
.browser img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.before-after .arrow { font-size: 32px; color: var(--ms-clay); font-weight: 800; }
.switcher { margin-top: 72px; padding: 40px; border-radius: 24px; background: var(--ms-white); border: 1px solid var(--ms-border); border-top: 6px solid var(--brand-accent); transition: border-color .3s; }
.switcher-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 32px; }
.switcher-label { font-weight: 700; margin-right: 4px; }
.brand-button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
    font: 600 15px/1 var(--ms-font); color: var(--ms-ink); background: var(--ms-white); border: 1px solid var(--ms-border-strong); cursor: pointer;
}
.brand-button[aria-pressed='true'] { border-color: var(--brand-accent); box-shadow: inset 0 0 0 1px var(--brand-accent); background: var(--ms-sage); }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: #2F5D50; }
.brand-button[data-brand='harbour'] .swatch { background: #1D3F72; }
.brand-button[data-brand='oakline'] .swatch { background: #7A2E3B; }
.switcher-visual { display: grid; grid-template-columns: 1fr 210px; gap: 40px; align-items: end; max-width: 980px; margin-inline: auto; }
.switcher-visual img { transition: opacity .25s; }
.switcher-visual img.changing { opacity: .2; }

/* Feature sections */
.feature-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.feature-grid.reverse .feature-text { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--ms-sage);
}
.ticks li::after {
    content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
    border-left: 2.5px solid var(--ms-green); border-bottom: 2.5px solid var(--ms-green); transform: rotate(-45deg);
}
.ticks.columns { grid-template-columns: repeat(2, 1fr); column-gap: 40px; max-width: 900px; margin: 56px auto 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.thumbs button {
    padding: 6px 6px 8px; border-radius: 12px; border: 1px solid var(--ms-border); background: var(--ms-white);
    cursor: pointer; font: 600 13px/1.2 var(--ms-font); color: var(--ms-slate); display: grid; gap: 6px;
}
.thumbs button img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.thumbs button[aria-pressed='true'] { border-color: var(--ms-green); color: var(--ms-ink); box-shadow: inset 0 0 0 1px var(--ms-green); }
.gallery .laptop-screen img { transition: opacity .2s; }
.gallery .laptop-screen img.changing { opacity: .2; }

/* Connect */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 40px; justify-content: center; }
.phones .phone { max-width: none; }

/* Devices */
.devices-visual { position: relative; padding-right: 12%; padding-bottom: 24px; }
.devices-visual .phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 110px; }

/* Contact */
.contact { padding-top: 32px; }
.contact-card {
    background: var(--ms-green); color: var(--ms-white); border-radius: 24px; padding: 64px 32px; text-align: center;
    display: grid; justify-items: center; gap: 18px;
}
.contact-card h2 { color: var(--ms-white); }
.contact-card p { max-width: 560px; color: rgba(255, 255, 255, .85); font-size: 1.125rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--ms-border); padding: 32px 0 48px; margin-top: 64px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--ms-slate); font-size: 14px; }

/* Tablets and phones */
@media (max-width: 960px) {
    .header-nav { display: none; }
    .header-inner .button { margin-left: auto; }
    .hero { padding-top: 40px; }
    .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid.reverse .feature-text { order: 0; }
    .hero-phone { right: 0; }
    .section { padding: 64px 0; }
    .suite-cards { grid-template-columns: 1fr; }
    .before-after { grid-template-columns: 1fr; }
    .before-after .arrow { transform: rotate(90deg); justify-self: center; }
    .switcher { padding: 24px 16px; }
    .switcher-visual { grid-template-columns: 1fr 34%; gap: 20px; }
    .ticks.columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pill { display: none; }
    .site-header .pill { display: none; }
    .contact-card .pill { display: inline-flex; }
    .wordmark { font-size: 22px; }
    .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .phones .phone-screen { border-width: 5px; border-radius: 22px; }
    figure.phone figcaption { font-size: 12px; }
    .phone { border-radius: 26px; padding: 6px; }
    .phone .phone-screen { border-radius: 20px; }
    .thumbs { grid-template-columns: repeat(2, 1fr); }
    .contact-card { padding: 48px 20px; }
    .button.light { font-size: 16px; }
}
/* The site's error pages (errors/<code>.html) */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.error-main { width: 100%; max-width: 480px; display: grid; justify-items: center; gap: 28px; text-align: center; }
.error-card { width: 100%; background: var(--ms-white); border: 1px solid var(--ms-border); border-radius: 24px; padding: 36px 28px; display: grid; justify-items: center; gap: 12px; }
.error-card .pill::before { display: none; }
.error-card h1 { font-size: 1.8rem; }
.error-card p { color: var(--ms-slate); }
.error-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.error-page .pill { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
