/* ==========================================================================
   glyph42 — shared styles
   Brand: glyph✱42 · "Answers for your daily apps"
   ========================================================================== */

:root {
  --ink: #16172b;
  --ink-soft: #2c2d44;
  --muted: #6b6b80;
  --muted-2: #9a9aae;
  --accent: #6e56cf;          /* the purple asterisk */
  --accent-strong: #4f46e5;
  --accent-soft: #efedfb;
  --line: #e7e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-ink: #15162a;          /* dark sections / app-icon navy */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 23, 43, .06), 0 4px 16px rgba(22, 23, 43, .06);
  --shadow-md: 0 8px 30px rgba(22, 23, 43, .12);
  --maxw: 1080px;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* height:auto is the companion to <img width/height> attributes — without it a
   browser can honour the height attribute as a fixed height while width:100%
   scales the width, squashing the image (e.g. the landscape iPad screenshots).
   Explicit width/height on the app icon and App Store badge override this. */
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ----- Brand wordmark -------------------------------------------------- */

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .star { color: var(--accent); font-weight: 700; padding-inline: .02em; }
.wordmark--lg { font-size: clamp(40px, 8vw, 76px); }
.wordmark--md { font-size: 26px; }
.wordmark--sm { font-size: 20px; }

.tagline {
  font-family: var(--mono);
  color: var(--muted-2);
  letter-spacing: .01em;
}

/* ----- Top navigation -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header nav { display: flex; gap: 8px; align-items: center; }
.navlink {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
}
.navlink:hover { background: var(--bg-soft); text-decoration: none; }

/* ----- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-lg { font-size: 18px; padding: 16px 30px; }
.btn:disabled, .btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.btn:disabled:hover, .btn[disabled]:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ----- Landing hero ---------------------------------------------------- */

.landing {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
}
.landing__inner { text-align: center; padding: 80px 24px; }
.landing .wordmark { margin-bottom: 18px; }
.landing .tagline { font-size: clamp(15px, 2.4vw, 20px); margin-bottom: 44px; }
.landing__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing__hint {
  margin-top: 40px;
  color: var(--muted-2);
  font-size: 13px;
  font-family: var(--mono);
}

/* ----- Generic page sections ------------------------------------------ */

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #e9e9f4; }
.section--ink h1, .section--ink h2 { color: #fff; }
.section--ink .tagline { color: #b9b6e6; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--accent-strong);
  margin: 0 0 14px;
}
h1.page-title { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; text-wrap: balance; }
h2.section-title { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; }
.section--ink .lead { color: #c3c3da; }

/* ----- SeeDis product page -------------------------------------------- */

.product-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 48px;
  row-gap: 24px;
  align-items: center;
}
/* Headline spans the full hero width so it never has to wrap in either language. */
.product-hero__title { grid-column: 1 / -1; margin: 0; }
.product-hero__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
/* Direct child only — the app icon, not the App Store badge image below it. */
.product-hero__icon > img { width: 220px; height: 220px; filter: drop-shadow(0 16px 40px rgba(22,23,43,.28)); }
.product-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
  margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.shot {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot img { width: 100%; border-bottom: 1px solid var(--line); background: #fff; }
.shot figcaption { padding: 16px 20px; color: var(--muted); font-size: 14px; margin: 0; }

.privacy-banner {
  display: flex; gap: 18px; align-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 26px 28px;
}
.privacy-banner svg { width: 120px; height: 120px; flex: none; color: #b9b6e6; }

.shortcut-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shortcut-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.shortcut-table tr:last-child td { border-bottom: none; }
.shortcut-table kbd {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 7px;
  padding: 3px 9px; color: var(--ink); white-space: nowrap;
}
.shortcut-table td:first-child { width: 180px; }

/* ----- Contact form ---------------------------------------------------- */

.form-card {
  max-width: 80%;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.field label .req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 160px; }
.field .hint { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 24px;
  border: 1px solid transparent;
}
.alert-success { background: #eafaf1; border-color: #b7e9c9; color: #1f7a45; }
.alert-error   { background: #fdecec; border-color: #f6c3c3; color: #a82929; }

/* honeypot — hidden from real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Footer ---------------------------------------------------------- */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(22, 23, 43, .05);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Pages with scrolling content reserve room so the fixed footer never
   covers the last section. The single-screen landing doesn't need this. */
.has-fixed-footer { padding-bottom: 110px; }

/* ----- Language switcher ----------------------------------------------- */

/* Two little flags in the header. The current language's flag is a static,
   highlighted marker (aria-current); the other language's flag is a link that
   carries ?lang= so the choice is remembered (see the in-<head> detector). */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; }
.site-header nav .lang-switch { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
/* The single-screen landing has no header bar, so its switcher floats. */
.lang-switch--floating { position: fixed; top: 18px; right: 20px; z-index: 40; }

.lang-flag {
  display: block;
  width: 26px; height: 18px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 43, .18);
  opacity: .5;
  transition: opacity .12s ease, transform .12s ease;
}
a.lang-flag:hover { opacity: 1; transform: translateY(-1px); text-decoration: none; }
.lang-flag[aria-current="true"] {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 43, .18), 0 0 0 2px var(--accent);
  cursor: default;
}
.lang-flag--en { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='s'><path d='M0,0 v30 h60 v-30 z'/></clipPath><clipPath id='t'><path d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/></clipPath><g clip-path='url%28%23s%29'><path d='M0,0 v30 h60 v-30 z' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' clip-path='url%28%23t%29' stroke='%23C8102E' stroke-width='4'/><path d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></g></svg>"); }
.lang-flag--de { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='5' height='3' fill='%23000'/><rect y='1' width='5' height='1' fill='%23D00'/><rect y='2' width='5' height='1' fill='%23FFCE00'/></svg>"); }

/* ----- App Store badge ------------------------------------------------- */

/* Apple's official "Download on the App Store" lockup (localized SVG). Kept at
   its native proportions and colour per Apple's badge guidelines — only sized
   and given a subtle button-style hover lift. */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform .12s ease;
}
.appstore-badge img { height: 52px; width: auto; display: block; }
.appstore-badge:hover { transform: translateY(-1px); text-decoration: none; }
.appstore-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ----- Responsive ------------------------------------------------------ */

@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; text-align: center; }
  .product-hero__icon { order: -1; }
  .product-hero__actions { justify-content: center; }
  .platform-pills { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header nav .navlink { padding: 8px 10px; }
  .site-header nav .lang-switch { margin-left: 4px; padding-left: 8px; }
  .form-card { max-width: 100%; padding: 24px; }
  .shortcut-table td:first-child { width: 120px; }
  .appstore-badge img { height: 46px; }
  /* Footer items wrap onto several lines on narrow screens — reserve more. */
  .has-fixed-footer { padding-bottom: 200px; }
  /* Full-width platform picker on phones. Scoped to .field so it outweighs the
     later unconditional `.segmented { display: inline-flex }` base rule. */
  .field .segmented { display: flex; }
  .field .segmented label { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Mac & iPad — universal-app additions
   ========================================================================== */

/* ----- Hero platform pills (macOS + iPadOS side by side) --------------- */
.platform-pills { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* ----- iPad device frame ----------------------------------------------- */
/* A neutral space-grey bezel so a full-screen iPad capture reads clearly as
   an iPad. Pure CSS — no extra image assets. */
.device--ipad {
  max-width: 860px;
  margin-inline: auto;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(150deg, #2a2a32 0%, #17171d 100%);
  box-shadow:
    0 26px 60px rgba(22, 23, 43, .30),
    inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.device--ipad img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.device-caption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 18px auto 0;
  max-width: 60ch;
}

/* iPad showcase spacing under the framed hero. */
.ipad-shots { margin-top: 42px; }

/* ----- "Same core, shaped for each device" ----------------------------- */

/* Shared-capability chips: what is identical on both platforms. */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-strong); flex: none; }

/* Two-column compare: what is tailored to each device. */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.compare__col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.compare__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.compare__head .badge {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
  flex: none;
}
.compare__head .badge svg { width: 22px; height: 22px; }
.compare__head h3 { margin: 0; font-size: 18px; }
.compare__head .sub { margin: 2px 0 0; font-size: 13px; color: var(--muted-2); font-family: var(--mono); }
.compare__list { list-style: none; margin: 0; padding: 0; }
.compare__list li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--bg-soft);
}
.compare__list li:last-child { border-bottom: none; }
.compare__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* ----- Segmented radio (contact form platform picker) ------------------ */
.field-cap {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.segmented label svg { width: 15px; height: 15px; flex: none; }
.segmented input:checked + label {
  background: var(--bg);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
