/* Lentokaari iOS — Virallinen tietosuojaseloste & tietoturvaselvitys */
/* Roope Palomaa — 2026 */

:root {
  --pine: #0B2B24;
  --pine-deep: #061814;
  --pine-raised: #123D32;
  --pine-surface: rgba(18, 61, 50, 0.55);
  --pine-surface-hover: rgba(24, 78, 64, 0.75);
  --sand: #F4F0E6;
  --sand-dim: rgba(244, 240, 230, 0.72);
  --mint: #55E6A5;
  --mint-glow: rgba(85, 230, 165, 0.15);
  --mint-border: rgba(85, 230, 165, 0.35);
  --mint-subtle: rgba(85, 230, 165, 0.08);
  --text-primary: #F4F0E6;
  --text-secondary: #C4D1CB;
  --text-muted: #8E9F97;
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(85, 230, 165, 0.5);
  --danger: #E0655C;
  --danger-bg: rgba(224, 101, 92, 0.12);
  --danger-border: rgba(224, 101, 92, 0.3);
  --warning: #F5B041;
  --warning-bg: rgba(245, 176, 65, 0.12);
  --warning-border: rgba(245, 176, 65, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-glass);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--pine);
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(85, 230, 165, 0.12), transparent 70%),
    radial-gradient(circle at 10% 25%, rgba(18, 61, 50, 0.6), transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(18, 61, 50, 0.4), transparent 50%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 0 0 80px;
  overflow-x: hidden;
}

/* Nav / Top Bar */
.top-bar {
  border-bottom: 1px solid var(--border-glass);
  background: rgba(11, 43, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.25s ease;
}

.top-bar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.top-brand:hover {
  color: var(--mint);
}

.top-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.top-link:hover {
  color: var(--mint);
  background: var(--mint-subtle);
}

.top-link.highlight {
  color: var(--pine-deep);
  background: var(--mint);
  font-weight: 600;
}

.top-link.highlight:hover {
  background: #6df0b2;
}

/* Layout */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-mint {
  background: var(--mint-subtle);
  color: var(--mint);
  border: 1px solid var(--mint-border);
}

.badge-sand {
  background: rgba(244, 240, 230, 0.08);
  color: var(--sand);
  border: 1px solid var(--border-glass);
}

.hero-icon-wrapper {
  margin: 0 auto 24px;
  width: 96px;
  height: 96px;
  position: relative;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(85, 230, 165, 0.25);
  display: block;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--mint);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 24px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Glass Card */
.card {
  background: var(--pine-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(85, 230, 165, 0.22);
}

/* Highlight / Promise Card */
.promise-card {
  background: linear-gradient(135deg, rgba(18, 61, 50, 0.85) 0%, rgba(11, 43, 36, 0.95) 100%);
  border: 1px solid var(--mint-border);
  box-shadow: 0 12px 36px -8px rgba(85, 230, 165, 0.15), 0 0 0 1px var(--mint-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.promise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}

.promise-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.promise-icon {
  width: 44px;
  height: 44px;
  background: var(--mint-subtle);
  border: 1px solid var(--mint-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

.promise-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.01em;
}

.promise-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.promise-body strong {
  color: var(--mint);
  font-weight: 600;
}

/* Feature Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.fact-item {
  background: rgba(18, 61, 50, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
}

.fact-item:hover {
  background: rgba(18, 61, 50, 0.65);
  border-color: var(--mint-border);
  transform: translateY(-2px);
}

.fact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(85, 230, 165, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 12px;
}

.fact-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 6px;
}

.fact-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Headings */
h2.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--mint-subtle);
  border: 1px solid var(--mint-border);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
}

h3.sub-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sand);
  margin: 20px 0 10px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
}

a:hover {
  border-bottom-color: var(--mint);
}

/* Permission Cards */
.perm-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0;
}

.perm-card {
  background: rgba(11, 43, 36, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.perm-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(85, 230, 165, 0.1);
  border: 1px solid rgba(85, 230, 165, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

.perm-card-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.perm-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(85, 230, 165, 0.12);
  color: var(--mint);
  border: 1px solid rgba(85, 230, 165, 0.25);
  font-family: var(--font-mono);
}

.perm-card-content p {
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.perm-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.perm-spec-item strong {
  color: var(--text-secondary);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(6, 24, 20, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

thead th {
  background: rgba(18, 61, 50, 0.7);
  color: var(--sand);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(85, 230, 165, 0.03);
}

td strong {
  color: var(--sand);
}

/* Callouts / Alert Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.callout-content {
  font-size: 0.925rem;
  line-height: 1.55;
}

.callout-content p {
  margin-bottom: 6px;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

.callout-mint {
  background: var(--mint-subtle);
  border: 1px solid var(--mint-border);
  color: var(--sand);
}

.callout-mint .callout-icon {
  color: var(--mint);
}

.callout-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--sand);
}

.callout-danger .callout-icon {
  color: var(--danger);
}

.callout-danger strong {
  color: #ff9187;
}

.callout-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--sand);
}

.callout-warning .callout-icon {
  color: var(--warning);
}

/* Lists */
ul, ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

li {
  color: var(--text-secondary);
  margin: 6px 0;
  font-size: 0.95rem;
}

li strong {
  color: var(--sand);
}

/* Code Snippet */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.4);
  color: var(--mint);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(85, 230, 165, 0.2);
}

pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 14px 0;
}

/* App Review English Box */
.review-box {
  background: linear-gradient(135deg, rgba(14, 48, 40, 0.9) 0%, rgba(6, 24, 20, 0.95) 100%);
  border: 2px solid var(--mint);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin: 48px 0 32px;
  box-shadow: 0 16px 40px -10px rgba(85, 230, 165, 0.25);
  position: relative;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--pine-deep);
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.review-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sand);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.review-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.review-content p {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(85, 230, 165, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.review-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.review-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--mint);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero {
    padding: 32px 0 24px;
  }
  .card, .promise-card, .review-box {
    padding: 20px;
  }
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .perm-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .top-link:not(.highlight) {
    display: none;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 12pt;
  }
  .top-bar, .top-nav {
    display: none !important;
  }
  .card, .promise-card, .review-box {
    border: 1px solid #ccc !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111111 !important;
  }
  .hero-title, .promise-title, .review-title, h2, h3, h4, strong {
    color: #000000 !important;
  }
  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}
