/* TextTidy website — the same look as the Mac app: a soft tinted backdrop, frosted glass
   cards (the web's stand-in for Liquid Glass), pill badges and gradient brand marks. */
:root {
  --bg: #f3f5fb; --text: #0f1729; --muted: #5a6478; --faint: #8a93a6;
  --glass: rgba(255, 255, 255, 0.62); --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.75); --inset: rgba(15, 23, 41, 0.045); --line: rgba(15, 23, 41, 0.08);
  --accent: #0062ff; --accent-strong: #0052d9; --accent-soft: rgba(0, 98, 255, 0.12);
  --ok: #0c8a4a; --ok-soft: rgba(12, 138, 74, 0.13); --warn: #b25e00; --warn-soft: rgba(230, 140, 20, 0.16);
  --bad: #c62828; --bad-soft: rgba(198, 40, 40, 0.12);
  --blob-1: rgba(0, 98, 255, 0.30); --blob-2: rgba(0, 190, 168, 0.28); --blob-3: rgba(0, 190, 168, 0.26);
  --shadow: 0 1px 1px rgba(15, 23, 41, 0.04), 0 12px 40px rgba(15, 23, 41, 0.08);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f18; --text: #eef1f7; --muted: #a2abbd; --faint: #7a8397;
    --glass: rgba(30, 36, 52, 0.55); --glass-strong: rgba(34, 40, 58, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.09); --inset: rgba(255, 255, 255, 0.05); --line: rgba(255, 255, 255, 0.08);
    --accent: #1a74ff; --accent-strong: #0062ff; --accent-soft: rgba(26, 116, 255, 0.18);
    --ok: #4cc987; --ok-soft: rgba(76, 201, 135, 0.15); --warn: #f0a44a; --warn-soft: rgba(240, 164, 74, 0.16);
    --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, 0.14);
    --blob-1: rgba(0, 98, 255, 0.36); --blob-2: rgba(0, 190, 168, 0.26); --blob-3: rgba(0, 190, 168, 0.24);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* the backdrop: three soft blurred glows behind everything */
body::before, body::after, .backdrop { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
body::before { width: 560px; height: 560px; left: -140px; top: -180px; background: var(--blob-1); }
body::after { width: 520px; height: 520px; right: -160px; top: 30vh; background: var(--blob-2); }
.backdrop { width: 480px; height: 480px; left: 20vw; bottom: -220px; background: var(--blob-3); }

/* glass */
.glass, .card, .site-header, dialog.confirm {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* header / footer */
.site-header { position: sticky; top: 12px; z-index: 5; margin: 12px auto 0; max-width: 1080px; border-radius: 18px; box-shadow: none; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-weight: 800;
  background: var(--accent); box-shadow: 0 4px 14px rgba(0, 98, 255, 0.35); }
.site-header nav { margin-left: auto; display: flex; gap: 6px; font-size: 15px; font-weight: 550; }
.site-header nav a { color: var(--muted); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.site-header nav a:hover { text-decoration: none; background: var(--inset); color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-footer { margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer .grow { flex: 1; }

/* buttons, cards, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--glass-strong); color: var(--text); padding: 10px 18px; border-radius: 12px; font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .08s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 98, 255, 0.28); }
.btn.primary:hover { background: var(--accent-strong); filter: none; }
.btn.big { padding: 13px 24px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 6px 13px; font-size: 14px; border-radius: 10px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.card { border-radius: var(--radius); padding: 24px; }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.caps { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
label.field { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
input.text { display: block; width: 100%; margin-top: 7px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-strong); color: var(--text); font: inherit; font-size: 17px; }
input.text:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
input.code { font: 600 26px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .35em; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 6px 0; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 550; margin-bottom: 18px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.accent { background: var(--accent); color: #fff; }   /* solid, as in the app: tints vanish on glass */
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: var(--inset); color: var(--muted); }
.inset { background: var(--inset); border-radius: 14px; padding: 14px 16px; }
[hidden] { display: none !important; }

/* home */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; }
.hero h1 .grad { color: var(--accent); white-space: nowrap; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
kbd { font: 600 .85em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--glass-strong); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.features .card h3 { margin: 10px 0 6px; font-size: 17px; }
.features .card p { margin: 0; color: var(--muted); font-size: 15px; }
.features .icon { width: 40px; height: 40px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-size: 19px;
  background: var(--accent); }
.section-title { text-align: center; font-size: 34px; margin: 80px 0 10px; letter-spacing: -.015em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.pricing { max-width: 440px; margin: 0 auto; text-align: center; }
.pricing .price { font-size: 52px; font-weight: 800; margin: 6px 0 0; letter-spacing: -.02em; }
.pricing ul { text-align: left; margin: 20px 0 24px; }
ul.ticks { padding: 0; list-style: none; }
ul.ticks li { padding: 7px 0 7px 30px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 2px; top: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--ok); background: var(--ok-soft); }

/* account & subscription */
.page { max-width: 980px; margin: 40px auto 0; }
.page.narrow { max-width: 720px; }
.page h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.015em; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 0; }
.columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700;
  background: var(--accent); flex: none; }
.profile .who { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tile { background: var(--inset); border-radius: 14px; padding: 14px 16px; }
.tile .value { font-size: 26px; font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.meter { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0 0 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.hot i { background: var(--warn); } .meter.full i { background: var(--bad); }
.chart { margin-top: 12px; }
.chart svg { display: block; width: 100%; height: 140px; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .75; }
.chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 3; }
.devices { list-style: none; padding: 0; margin: 4px 0 0; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.devices li:first-child { border-top: 0; }
.devices .icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--inset); flex: none; }
.devices .name { font-weight: 600; }
.signin { max-width: 440px; margin: 56px auto 0; }
.signin .card-title { font-size: 20px; }
dialog.confirm { border-radius: var(--radius); color: var(--text); padding: 24px; width: min(420px, calc(100vw - 32px)); background: var(--glass-strong); }
dialog.confirm::backdrop { background: rgba(10, 14, 22, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.prose { max-width: 760px; margin: 40px auto 0; }
.prose .card { padding: 32px; }
.prose h1 { font-size: 34px; margin-top: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero h1, .home .hero h1 { font-size: 38px; }
  .features { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .site-header { margin: 8px 8px 0; top: 8px; }
  .site-header nav { gap: 2px; font-size: 14px; }
  .site-header nav a { padding: 6px 8px; }
}
/* On a phone the glows fill most of the screen; keep the teal to a hint. */
@media (max-width: 860px) {
  :root { --blob-2: rgba(0, 190, 168, 0.10); --blob-3: rgba(0, 190, 168, 0.08); }
  body::after { width: 360px; height: 360px; right: -200px; }
  .backdrop { width: 320px; height: 320px; bottom: -200px; }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  :root { --blob-2: rgba(0, 190, 168, 0.09); --blob-3: rgba(0, 190, 168, 0.07); }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .site-header nav a.wide-only { display: none; }
  .brand span.name { display: none; }
}

/* the app icon, where the design shows the brand mark */
.appicon { width: 30px; height: 30px; flex: none; }

/* home: screenshots, steps, gallery, feature rows, FAQ */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--glass-edge); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.home .hero { grid-template-columns: 1fr; text-align: center; gap: 44px; padding-top: 72px; }
.home .hero h1 { font-size: 60px; max-width: 820px; margin-left: auto; margin-right: auto; }
.home .hero p.lead { max-width: 700px; margin-left: auto; margin-right: auto; }
.home .hero .ctas { justify-content: center; }
.hero-shot { max-width: 1000px; margin: 0 auto; width: 100%; }
.hero-shot img { border-radius: 24px; box-shadow: 0 40px 100px rgba(0, 40, 120, 0.25); }
.works-in { text-align: center; margin: 8px 0 0; }
.works-in ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.works-in li { padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-edge); font-size: 14px; font-weight: 600; color: var(--muted);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step h3 { margin: 14px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }

.gallery { padding: 18px; border-radius: 28px; }
.gallery-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--inset); gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent); color: #fff; }
.gallery .desktop-view, .gallery[data-platform="windows"][data-shot="instant"] .img-view { display: none; }
.gallery[data-platform="windows"][data-shot="instant"] .desktop-view { display: block; }
.gallery .shot img { border-radius: 16px; }
/* Dark screenshots are transparent: the window and its own shadow on the page itself,
   so no frame, border or card shadow around them. */
@media (prefers-color-scheme: dark) {
  .shot picture img, .hero-shot img { border: 0; border-radius: 0; box-shadow: none; }
}
.gallery[data-theme="dark"] #gallery-img { border: 0; border-radius: 0; box-shadow: none; }
.gallery[data-theme="light"] #gallery-img { border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: var(--shadow); }

.feature-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin: 96px 0 0; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.015em; line-height: 1.15; }
.feature-row ul.ticks { margin: 16px 0 0; }

.privacy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; margin-top: 80px; padding: 36px; }
.privacy h2 { font-size: 28px; margin: 0 0 8px; }
.privacy ul.ticks { margin: 0; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.cta { text-align: center; margin-top: 88px; padding: 48px 24px; border-radius: 28px; }
.cta h2 { font-size: 30px; margin: 12px 0 8px; letter-spacing: -.015em; }
.cta p { margin: 0 0 24px; }
.cta-icon { width: 64px; height: 64px; }

/* Windows: a Windows 11 desktop with Outlook-style compose and the tray app's popup,
   drawn from the WPF app's own layout (InstantWindow.xaml) and palette (App.xaml). */
.win-desktop { --w-window: #ffffff; --w-panel: #f8fafc; --w-field: #ffffff; --w-border: #e2e8f0; --w-text: #1e293b; --w-faint: #94a3b8;
  --w-hint: #cbd5e1; --w-accent: #2563eb; --w-ins: #dcfce7; --w-ins-fg: #146c2e; --w-del: #fee2e2; --w-del-fg: #b91c1c;
  --w-app: #ffffff; --w-chrome: #f3f3f3; --w-sel: #cce4f7; --w-taskbar: rgba(243, 243, 243, .86);
  --w-wall: radial-gradient(120% 90% at 30% 110%, #7fb2ff 0%, #3d7bff 30%, #b9d3ff 62%, #e7f0ff 100%);
  position: relative; aspect-ratio: 16 / 9.4; border-radius: 16px; overflow: hidden; background: var(--w-wall);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; color: var(--w-text); box-shadow: var(--shadow); container-type: inline-size; }
.gallery[data-theme="dark"] .win-desktop { --w-window: #202020; --w-panel: #2b2b2b; --w-field: #363636; --w-border: #4a4a4a; --w-text: #f0f0f0;
  --w-faint: #909090; --w-hint: #6a6a6a; --w-accent: #4c8dff; --w-ins: #1c3b27; --w-ins-fg: #8fe3ac; --w-del: #452427; --w-del-fg: #ffa8a8;
  --w-app: #292929; --w-chrome: #202020; --w-sel: #264f78; --w-taskbar: rgba(32, 32, 32, .88);
  --w-wall: #17191e; }
.win-desktop * { box-sizing: border-box; }
.win-app { position: absolute; left: 6%; top: 7%; width: 64%; height: 76%; background: var(--w-app); border-radius: 8px; border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; font-size: 1.35cqw; }
.win-titlebar { display: flex; align-items: center; gap: .8em; height: 2.6em; padding-left: 1em; background: var(--w-chrome); font-size: .92em; }
.win-app-icon { width: 1.2em; height: 1.2em; border-radius: 3px; background: #0f6cbd; }
.win-controls { margin-left: auto; display: flex; height: 100%; }
.win-controls i { font-style: normal; width: 3.4em; display: grid; place-items: center; opacity: .75; }
.win-ribbon { display: flex; gap: 1.4em; padding: .55em 1em; background: var(--w-chrome); border-bottom: 1px solid var(--w-border); font-size: .9em; }
.win-ribbon .on { color: #0f6cbd; box-shadow: inset 0 -2px #0f6cbd; }
.gallery[data-theme="dark"] .win-ribbon .on { color: #62abf5; box-shadow: inset 0 -2px #62abf5; }
.win-fields div { display: flex; align-items: center; gap: 1em; padding: .6em 1em; border-bottom: 1px solid var(--w-border); }
.win-fields b { font-weight: 400; opacity: .7; min-width: 4em; }
.win-send { display: grid; place-items: center; background: #0f6cbd; color: #fff; border-radius: 4px; padding: .7em 1em; margin-right: .4em; }
.win-body { padding: .6em 1em; line-height: 1.5; }
.win-body mark { background: var(--w-sel); color: inherit; }
/* the real Windows popup (transparent PNG with its own shadow) over the drawn desktop */
.gallery .win-desktop .wpf-shot { position: absolute; right: 2.5%; top: 38%; width: 52%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.win-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6.2%; background: var(--w-taskbar); display: flex; align-items: center; justify-content: center;
  gap: 1.1%; border-top: 1px solid rgba(0,0,0,.06); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.win-taskbar > span { width: 2.4%; aspect-ratio: 1; border-radius: 4px; background: var(--w-border); }
.win-taskbar .tb-start { background: linear-gradient(135deg, #3aa0ff, #0063d1); }
.win-taskbar .tb-active { background: #0f6cbd; box-shadow: 0 .35cqw 0 -.18cqw var(--w-accent); }
.win-taskbar .tb-tray { position: absolute; right: 1.6%; width: auto; aspect-ratio: auto; background: none; display: flex; align-items: center; gap: .8cqw; font-size: 1.05cqw; }
.win-taskbar .tb-tray img { width: 1.6cqw; height: 1.6cqw; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .feature-row.flip > :first-child { order: 0; }
  .privacy { grid-template-columns: 1fr; padding: 26px; }
  .gallery-bar { justify-content: center; }
  .seg button { padding: 6px 10px; font-size: 13px; }
}
