/* Flysoft POS public pages. Colors follow the Flysoft POS app light theme. */
:root {
  color-scheme: light;
  --primary: #0f766e;
  --primary-strong: #005048;
  --primary-container: #d6f1f2;
  --tint: #f2f8f7;
  --text: #161d1c;
  --text-muted: #46524f;
  --line: #e2eaea;
  --bezel: #1b2424;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --content: 1120px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--text); letter-spacing: -0.015em; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: var(--s4); top: -60px; padding: var(--s2) var(--s4); border-radius: var(--radius-sm); background: var(--primary); color: #fff; z-index: 10; }
.skip-link:focus { top: var(--s3); color: #fff; }

.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--s5); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.header-link { padding: var(--s2) 0; color: var(--text-muted); font-size: 0.98rem; font-weight: 500; text-decoration: none; }
.header-link:hover, .header-link[aria-current="page"] { color: var(--primary); }
.header-link[aria-current="page"] { text-decoration: underline; }

/* Hero */
.hero { padding: var(--s9) 0 0; text-align: center; background: linear-gradient(#fff 55%, var(--tint) 55%); }
.hero h1 { margin: 0 auto var(--s4); max-width: 22ch; font-size: clamp(2.4rem, 5.6vw, 3.9rem); font-weight: 800; line-height: 1.08; }
.hero h1 .eyebrow { display: block; margin-bottom: var(--s4); color: var(--primary); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.hero .lead { margin: 0 auto var(--s6); max-width: 36rem; color: var(--text-muted); font-size: clamp(1.1rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-strong); color: #fff; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--text); }
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }
/* The official badge PNG ships with transparent padding; the negative margin lines its visible edge up with the 48px buttons. */
.store-badge { display: inline-flex; border-radius: var(--radius-sm); }
.store-badge img { display: block; height: 72px; width: auto; margin: -12px; }
.note { margin: var(--s4) 0 0; color: var(--text-muted); font-size: 0.92rem; }
.hero .device { max-width: 1040px; margin: var(--s8) auto 0; }

/* CSS device frame for app screenshots */
.device { margin: 0; padding: 10px; border-radius: var(--radius-lg); background: var(--bezel); box-shadow: 0 32px 64px -32px rgba(10, 60, 56, 0.45), 0 2px 8px rgba(10, 40, 38, 0.08); }
.device img { width: 100%; border-radius: 13px; }

/* Features */
.features { padding: var(--s9) 0; background: var(--tint); }
.section-title { text-wrap: balance; margin: 0 0 var(--s7); font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 750; line-height: 1.2; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.feature-grid li { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s4); border-radius: var(--radius-sm); background: var(--primary-container); color: var(--primary-strong); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { margin: 0 0 var(--s2); font-size: 1.08rem; font-weight: 700; }
.feature-grid p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Screens */
.screens { padding: var(--s9) 0 var(--s8); }
.screen { display: grid; grid-template-columns: 4fr 7fr; align-items: center; gap: var(--s8); margin: 0 0 var(--s8); }
.screen:nth-child(even) { grid-template-columns: 7fr 4fr; }
.screen:nth-child(even) .screen-text { order: 2; }
.screen:last-child { margin-bottom: 0; }
.screen h3 { margin: 0 0 var(--s2); font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 750; line-height: 1.2; }
.screen p { margin: 0; color: var(--text-muted); font-size: 1.1rem; }

/* Legal pages */
.legal { padding: var(--s8) 0 var(--s9); }
.legal .wrap { max-width: 780px; }
.legal h1 { margin: 0 0 var(--s2); font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.legal h2 { margin: var(--s7) 0 var(--s3); font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.legal h3 { margin: var(--s5) 0 var(--s2); font-size: 1.05rem; font-weight: 700; }
.legal p, .legal li, .legal dd { color: var(--text-muted); }
.legal p { margin: 0 0 var(--s4); }
.legal ul { margin: 0 0 var(--s4); padding-left: 1.25em; }
.legal li { margin: var(--s2) 0; }
.legal li::marker { color: var(--primary); }
.legal strong { color: var(--text); }
.legal .updated { margin-bottom: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.legal address { margin: var(--s5) 0 var(--s6); color: var(--text); font-style: normal; line-height: 1.7; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s3) var(--s6); margin: 0; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); }
.legal dt { color: var(--text); font-weight: 600; }
.legal dd { margin: 0; }

/* Footer */
.site-footer { padding: var(--s6) 0; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }
.site-footer .trademark { flex-basis: 100%; font-size: 0.8rem; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screen, .screen:nth-child(even) { grid-template-columns: 1fr; gap: var(--s5); }
  .screen:nth-child(even) .screen-text { order: 0; }
  .screen-text { max-width: 34rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 var(--s4); }
  .site-header .wrap { min-height: 60px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .hero h1 br { display: none; }
  .hero { padding-top: var(--s7); background: linear-gradient(#fff 62%, var(--tint) 62%); }
  .hero .device { margin-top: var(--s7); }
  .device { padding: 5px; border-radius: 14px; }
  .device img { border-radius: 9px; }
  .features { padding: var(--s8) 0; }
  .section-title { margin-bottom: var(--s6); }
  .feature-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .feature-grid li { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s4); padding: var(--s4) var(--s5); }
  .feature-grid .icon { grid-row: span 2; margin-bottom: 0; }
  .screens { padding: var(--s8) 0 var(--s6); }
  .screen { margin-bottom: var(--s7); }
  .legal { padding: var(--s7) 0 var(--s8); }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: var(--s3); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
