@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Soft-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root { --paper: #fffdf9; --plum: #45233d; --cherry: #c9363f; --blush: #f5d9e2; --butter: #f7e583; --lilac: #e8dff2; --peach: #f7ddc4; --muted: #71656d; --line: #e4dbdf; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--plum); font: 400 17px/1.55 "DM Sans", sans-serif; }
button, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--cherry); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
h1, p { margin: 0; }
h1 { font: 600 clamp(34px, 4vw, 48px)/1.14 "Fraunces", Georgia, serif; letter-spacing: -.035em; }
.site-header, .site-main, .site-footer { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 185px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 26px; border: 1px solid var(--plum); border-radius: 100px; background: var(--plum); color: var(--paper); font-weight: 700; text-decoration: none; line-height: 1.4; }
.button:hover { background: #613551; }
.button-small { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.button-outline { background: transparent; color: var(--plum); }
.button-outline:hover { background: var(--blush); }
.text-button { border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* Four destinations, with no instructions on the home screen. */
.home { padding: 76px 0 80px; }
.home-intro { margin-top: 16px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; min-height: 215px; border: 1px solid transparent; border-radius: 20px 20px 5px 20px; text-align: left; }
.service-card:hover { border-color: var(--plum); }
.service-card strong { font-size: 18px; margin-top: 27px; }
.service-icon svg { display: block; width: 62px; height: 62px; }
.card-arrow { position: absolute; right: 22px; top: 22px; font-size: 22px; }
.icon-accent { fill: var(--paper); }
.blush { background: var(--blush); }
.butter { background: var(--butter); }
.lilac { background: var(--lilac); }
.peach { background: var(--peach); }

/* One instruction per screen, below the service tabs. */
.guide-nav { max-width: 680px; margin: 22px auto 0; }
.all-setup { color: var(--muted); text-decoration: none; }
.all-setup:hover { text-decoration: underline; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 52px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 15px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--plum); font-weight: 700; }
.tabs button:hover { background: #f8f1f4; }
.guide-panel { max-width: 680px; margin: 0 auto; padding: 30px 0 0; }
.step-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.step-meta .text-button { color: var(--muted); padding: 0; }
.instruction { max-width: 52ch; margin-top: 18px; font-size: 19px; line-height: 1.65; }
.app-link { display: inline-flex; gap: 14px; align-items: center; min-height: 48px; margin-top: 25px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 15px; }
.app-link:hover { background: var(--blush); }
.app-links { display: flex; gap: 12px; flex-wrap: wrap; }
.existing-account { display: block; color: var(--muted); margin-top: 16px; }
.small-note { font-size: 14px; margin-top: 22px; color: var(--muted); }
.small-help { margin-top: 18px; font-size: 14px; }
.small-help summary { min-height: 44px; padding-block: 10px; }
.small-help p { padding-top: 8px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions > div { display: flex; align-items: center; gap: 22px; }
.skip { color: var(--muted); }
.guide-bottom { max-width: 680px; margin: 24px auto 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.guide-bottom > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.help { max-width: 310px; }
.help summary { padding: 10px 0; min-height: 44px; }
.help p { margin-top: 8px; }
.server-settings { margin-top: 24px; padding: 24px; background: var(--blush); border-radius: 16px; }
.server-host { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.server-host strong { font-size: 23px; overflow-wrap: anywhere; }
.server-host button { border: 1px solid var(--line); background: var(--paper); border-radius: 100px; min-height: 44px; padding: 8px 16px; font-size: 14px; }
.ports { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 18px; font-size: 15px; }
.ports strong { display: inline-block; margin-top: 3px; }
.server-settings p { font-size: 14px; }
.outlook-choice { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 14px; }
select { border: 1px solid var(--line); border-radius: 8px; min-height: 46px; padding: 8px 12px; background: var(--paper); }
.profile-picker { margin-top: 24px; max-width: 400px; }
.profile-picker label { display: block; font-size: 14px; margin-bottom: 8px; }
.profile-picker select { width: 100%; }
.profile-picker .app-link { margin-top: 18px; }
.device-picker { padding-top: 18px; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 10px; }
.device-grid button { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 14px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.device-grid button:hover { background: var(--blush); border-color: var(--plum); }
.device-grid small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.complete-screen { padding-top: 18px; }
.complete-icon { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 26px; }
.complete-icon svg { width: 54px; height: 54px; }
.completion-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.site-footer { padding: 0 0 28px; }
.downloads { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 14px; }
.downloads > summary { display: flex; justify-content: space-between; min-height: 48px; padding: 10px 0; }
.downloads > summary::-webkit-details-marker { display: none; }
.download-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0; }
.download-list a { color: var(--plum); }
.download-list span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: var(--plum); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { min-height: 190px; }
}
@media (max-width: 600px) {
  .site-header, .site-main, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 94px; }
  .brand img { width: 145px; }
  .site-header .button { font-size: 13px; padding: 9px 14px; }
  .home { padding: 38px 0 42px; }
  .home h1 { max-width: 310px; }
  .home-intro { font-size: 15px; margin-top: 12px; }
  .service-grid { gap: 12px; margin-top: 28px; }
  .service-card { padding: 20px 16px; min-height: 170px; }
  .service-icon svg { width: 48px; height: 48px; }
  .service-card strong { font-size: 16px; margin-top: 20px; }
  .card-arrow { right: 14px; top: 12px; font-size: 19px; }
  .guide-nav { margin-top: 14px; }
  .tabs { margin-top: 0; }
  .tabs button { font-size: 14px; }
  .guide-panel { padding-top: 20px; }
  .step-meta { margin-bottom: 15px; }
  .instruction { font-size: 17px; margin-top: 16px; }
  .step-actions { margin-top: 30px; padding-top: 20px; }
  .guide-bottom { margin-top: 20px; }
  .device-grid { gap: 10px; }
  .device-grid button { padding: 12px; font-size: 15px; }
  .server-settings { padding: 20px; }
  .server-host strong { font-size: 20px; }
  .ports { font-size: 14px; gap: 12px; }
  .download-list { grid-template-columns: 1fr; gap: 20px; }
}
