/* shelwi.com: the homepage and the features page. Shelwi's own colors, Plus Jakarta Sans for text and Fraunces for
   headlines, both served from this site. Light only, on purpose: the pictures are of the app in its light look. */
:root {
  color-scheme: light;
  --navy: #02335c; --blue: #0d7cbe; --blue-dark: #0a67a0; --blue-soft: #eaf4fb; --green: #47a82b; --green-dark: #3b8f23; --green-soft: #e9f6e4;
  --ink: #14273a; --muted: #5b6b7b; --line: #e3e9ef; --soft: #f5f8fa; --sand: #fbf8f3;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; } p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: 88px; } .sec.soft { background: var(--soft); } .sec.sand { background: var(--sand); }
@media (max-width: 700px) { .sec { padding-block: 64px; } }

/* the bar along the top */
.navbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: border-color 0.2s; }
.navbar.stuck { border-color: var(--line); }
/* The features page's bar runs straight into its navy header, so it's navy too, with the white-lettered logo. */
.navbar.dark { background: var(--navy); }
.navbar.dark.stuck { border-color: rgba(255, 255, 255, 0.12); }
.navbar.dark nav { color: #b9cde0; } .navbar.dark nav a:hover, .navbar.dark nav a.on { color: #fff; }
.navbar.dark .in { color: #fff; }
.navbar .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.navbar .logo { height: 32px; width: auto; }
.navbar nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; color: var(--muted); } .navbar nav a:hover, .navbar nav a.on { color: var(--navy); }
.navbar .sp { flex: 1; } .navbar .in { font-weight: 700; font-size: 15px; color: var(--navy); } .navbar .btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 820px) { .navbar nav, .navbar .in { display: none; } .navbar .wrap { gap: 12px; } }

/* buttons and type */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15.5px; border-radius: 999px; padding: 14px 24px; white-space: nowrap; border: 0; transition: background 0.15s; }
.btn-blue { background: var(--blue); color: #fff; } .btn-blue:hover { background: var(--blue-dark); }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--navy); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); }
.center { text-align: center; max-width: 700px; margin: 0 auto; } .center p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; font-weight: 600; font-size: 15px; } .checks li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }
.ticks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; font-weight: 600; } .ticks span::before { content: "✓ "; font-weight: 800; color: var(--green); }

/* a laptop with a phone in front */
.laptop .screen { background: #0f1b28; border-radius: 16px 16px 6px 6px; padding: 10px 10px 12px; box-shadow: 0 34px 70px -30px rgba(2, 25, 50, 0.6); }
.laptop .screen img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.laptop .base { height: 14px; margin: 0 -5%; background: linear-gradient(#d6dde4, #b9c3cc); border-radius: 0 0 14px 14px; }
.phone { background: #0f1b28; border-radius: 15% / 7.2%; padding: 0; container-type: inline-size; /* the bezel scales with the phone: its own width, not the page's */ box-shadow: 0 26px 50px -18px rgba(2, 25, 50, 0.55); width: 100%; }
.phone img { margin: 3.4cqw; width: calc(100% - 6.8cqw); border-radius: 12cqw; aspect-ratio: 9 / 18.5; object-fit: cover; object-position: top; }
.duo { position: relative; padding-right: 9%; padding-bottom: 6%; }
.duo .laptop { width: 92%; } .duo .phone { position: absolute; right: 0; bottom: 0; width: 25%; }

/* the "Where to?" box */
.planner { background: #fff; border-radius: 18px; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; box-shadow: 0 20px 50px -22px rgba(2, 25, 50, 0.45), 0 0 0 1px rgba(2, 51, 92, 0.06); max-width: 560px; }
.planner label { display: grid; gap: 2px; padding: 9px 14px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.planner input { border: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: none; padding: 0; outline: none; min-width: 0; }
.planner .btn { border-radius: 12px; }
@media (max-width: 520px) { .planner { grid-template-columns: 1fr; } }

/* homepage */
.hero { background: linear-gradient(180deg, var(--blue-soft), #fff 92%); }
.hero .wrap { text-align: center; padding-block: 60px 0; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.6vw, 78px); line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.hero h1 em { font-style: italic; color: var(--green-dark); }
.hero .lead { color: var(--muted); font-size: 18.5px; max-width: 60ch; margin: 20px auto 28px; }
.hero .planner { margin: 0 auto; }
.hero .ticks { justify-content: center; color: var(--muted); }
.hero .duo { max-width: 1000px; margin: 50px auto 0; }
.devicebar { display: flex; justify-content: center; gap: 14px 30px; flex-wrap: wrap; padding-block: 26px; border-block: 1px solid var(--line); margin-top: 60px; font-weight: 700; color: var(--navy); font-size: 15px; }
.devicebar span::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 9px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 13px; }
.carhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.arrows { display: flex; gap: 8px; } .arrows button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 18px; box-shadow: 0 0 0 1.5px var(--line); }
.arrows button:hover { box-shadow: 0 0 0 1.5px var(--navy); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 860px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - 1180px) / 2 + 20px)) 22px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: center; background: var(--soft); border-radius: 26px; padding: 30px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 30px; align-items: center; }
.art { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; display: grid; place-items: center; }
.art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 2.8vw, 32px); line-height: 1.12; color: var(--navy); margin-top: 8px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 12px; }
@media (max-width: 860px) {
  .track { grid-auto-columns: 88%; } .card { grid-template-columns: 1fr; padding: 24px; gap: 0; align-content: start; }
  /* On phones: the title and words, then the picture, then the ticks. */
  .card > div:first-child { display: contents; }
  .card .art { order: 1; margin-top: 20px; } .card .checks { order: 2; margin-top: 20px; }
  /* The picture trimmed to what's drawn (worked out by the page's script) so it fills the card's width. */
  .art.fit { aspect-ratio: var(--ar); display: block; position: relative; overflow: visible; border-radius: 0; }
  .art.fit img { position: absolute; width: var(--w); height: auto; max-width: none; left: var(--l); top: var(--t); object-fit: fill; }
}
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: #c7d2dc; padding: 0; transition: width 0.25s, background 0.25s; } .dots button.on { width: 28px; background: var(--blue); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; position: relative; }
.flow::before { content: ""; position: absolute; left: 16%; right: 16%; top: 22px; border-top: 2px dashed #bcd8ea; }
.flow > div { text-align: center; padding: 0 18px; position: relative; }
.flow b { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 7px var(--soft); }
.flow h3 { color: var(--navy); font-size: 19px; } .flow p { color: var(--muted); margin-top: 6px; font-size: 15px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; gap: 26px; } .flow::before { display: none; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.paper { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 26px 50px -26px rgba(2, 25, 50, 0.4); max-width: 420px; margin: 0 auto; transform: rotate(2deg); }
.endband { border-radius: 28px; padding: 50px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--navy); color: #fff; }
.endband h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); } .endband p { color: #c7d6e6; margin-top: 8px; }
@media (max-width: 600px) { .endband { padding: 34px 26px; } }

/* features page */
.fhero { background: var(--navy); color: #fff; }
.fhero .wrap { padding-block: 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .fhero .wrap { grid-template-columns: 1fr; } }
.fhero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.02em; }
.fhero p { color: #c7d6e6; font-size: 18px; margin-top: 16px; max-width: 50ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; } .jump a { font-size: 13.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; } .jump a:hover { background: rgba(255, 255, 255, 0.18); }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 46px; padding-block: 56px 80px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .layout aside { display: none; } }
.layout aside nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.layout aside a { padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); } .layout aside a.on, .layout aside a:hover { background: var(--soft); color: var(--navy); }
.group { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; } .group:last-child { border: 0; margin-bottom: 0; }
.group header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 900px) { .group header { grid-template-columns: 1fr; } }
.group h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 36px); color: var(--navy); margin-top: 6px; } .group header p { color: var(--muted); margin-top: 10px; font-size: 16.5px; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin-top: 30px; }
@media (max-width: 700px) { .flist { grid-template-columns: 1fr; } }
.flist > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.flist > div::before { content: "✓"; color: var(--green); font-weight: 800; }
.flist h3 { color: var(--navy); font-size: 15.5px; font-weight: 700; } .flist p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.flist em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }

/* footer */
footer.site { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 50px 28px; }
footer.site h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } footer.site ul a:hover { color: var(--navy); }
footer.site .logo { height: 32px; width: auto; }
footer.site .tag { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--navy); margin-top: 14px; }
footer.site .base { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .dots button { transition: none; } }

/* Pricing */
.billing-switch { display: flex; width: max-content; margin: 30px auto 0; padding: 5px; gap: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.billing-switch button { font: inherit; font-weight: 700; font-size: 14.5px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.billing-switch button span { font-weight: 600; font-size: 12.5px; color: var(--green-dark); margin-left: 4px; }
.billing-switch button.on { background: var(--navy); color: #fff; } .billing-switch button.on span { color: #bfe3b2; }
.compare-wrap { margin: 34px auto 0; max-width: 980px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 8px 20px 20px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; }
.compare th, .compare td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare col.feat { width: 43%; }
.compare tbody td { font-weight: 700; color: var(--navy); }
.compare thead th, .compare thead td { position: sticky; top: 64px; z-index: 2; background: #fff; border-bottom: 2px solid var(--line); padding: 24px 10px 16px; vertical-align: bottom; }
.compare thead th.hi { background: #f2f9ee; border-radius: 18px 18px 0 0; }
.compare .hi { background: #f2f9ee; }
.compare tfoot td { border-bottom: 0; padding: 18px 10px; vertical-align: top; } .compare tfoot td.hi { border-radius: 0 0 18px 18px; }
/* The buttons follow the table: they stay at the bottom of the screen while any of the table is in view. */
.compare tfoot td { position: sticky; bottom: 0; z-index: 2; background: #fff; box-shadow: 0 -1px 0 var(--line); } .compare tfoot td.hi { background: #f2f9ee; }
.compare.foot-free tfoot td { position: static; box-shadow: none; } /* not pinned while that would cover the prices (see the script on the page) */
.compare tfoot .btn { width: 100%; padding: 12px 10px; }
.compare .pn { display: block; font-size: 18px; font-weight: 800; color: var(--navy); }
.compare .pp { display: block; margin-top: 6px; } .compare .pp b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.compare .per { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.compare .tag { display: inline-block; margin-bottom: 8px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.compare .grp th { text-align: left; padding: 26px 10px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); border-bottom: 1px solid var(--line); background: #fff; }
.compare .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 14px; }
.compare .no { color: #b8c4cf; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .compare-wrap { padding: 0 6px 10px; border-radius: 20px; margin-inline: -6px; }
  .compare { font-size: 13px; }
  .compare col.feat { width: 40%; }
  .compare th, .compare td { padding: 10px 2px; }
  .compare tbody th { padding-left: 6px; line-height: 1.35; }
  .compare tbody td { font-size: 12px; }
  .compare thead th, .compare thead td { top: 60px; padding: 14px 2px 10px; }
  .compare thead th.hi { border-radius: 14px 14px 0 0; }
  .compare .tag { display: none; }
  .compare .pn { font-size: 14px; } .compare .pp { margin-top: 2px; } .compare .pp b { font-size: 15px; letter-spacing: -0.01em; } .compare .per { font-size: 10.5px; white-space: nowrap; }
  .compare .grp th { padding: 18px 6px 6px; font-size: 10.5px; }
  .compare .yes { width: 22px; height: 22px; font-size: 12px; }
  .compare tfoot td { padding: 14px 3px; } .compare tfoot td.hi { border-radius: 0 0 14px 14px; }
  .compare tfoot .btn { font-size: 12px; padding: 9px 2px; white-space: normal; line-height: 1.2; }
}
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid #c9d5e0; } .btn-line:hover { background: var(--soft); }
.price-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 26px; }
.climate-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 15px; margin: 10px auto 0; max-width: 860px; text-align: center; } .climate-note a { white-space: nowrap; }
.climate-note svg { flex: none; color: #2f7f1b; } .climate-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* The logo's turtle swimming one stroke when pressed (landing/turtle.js): the moving turtle over the still one's place,
   the still one's turtle hidden so only the word shows beside it. Sized from the app's version, for a 32px logo. */
.navbar .brand { position: relative; display: inline-flex; flex: none; }
.navbar .brand .flap { position: absolute; left: 0; top: 0; width: 36px; height: 32px; overflow: hidden; pointer-events: none; visibility: hidden; }
.navbar .brand.swim .flap { visibility: visible; }
.navbar .brand.swim .logo { clip-path: inset(0 0 0 34.5px); }
.navbar .brand .flap img { position: absolute; display: block; width: 38.2px; height: 38.2px; max-width: none; left: -2.5px; top: -3.26px; }
/* The plans' heads: every column starts at the top so Free lines up with the others, and "Best for groups" sits in its
   own space above Atlas. Yearly savings ride on the line under the price ("a year · save 58%") and are empty for
   monthly prices, so switching between yearly and monthly never changes the header's height. */
.compare thead th { vertical-align: top; padding-top: 50px; }
.compare thead th .tag { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.compare .save { color: #2f7f1b; font-weight: 800; }
.compare .save:not(:empty)::before { content: " · "; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) {
  .compare thead th { padding-top: 14px; }
  .compare .save { display: block; height: 1.4em; line-height: 1.4em; } /* its own line on a phone, kept even when empty */
  .compare .save:not(:empty)::before { content: none; }
}
