/*
Theme Name: 2nd Line App Theme
Theme URI: https://example.com
Author: 2nd Line
Author URI: https://example.com
Description: A clean support, legal and product website theme for the 2nd Line mobile app.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: second-line-app
*/

:root {
  --sl-blue: #1e6fff;
  --sl-blue-dark: #0b4fcc;
  --sl-ink: #0f1b2d;
  --sl-muted: #5a6b82;
  --sl-soft: #f5f8fc;
  --sl-soft-blue: #eaf1ff;
  --sl-border: #dfe7f2;
  --sl-white: #ffffff;
  --sl-success: #12b76a;
  --sl-warning: #f79009;
  --sl-danger: #f04438;
  --sl-shadow: 0 18px 50px rgba(15, 27, 45, 0.10);
  --sl-radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sl-ink);
  background: var(--sl-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--sl-blue);
  text-decoration: none;
}

a:hover {
  color: var(--sl-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.sl-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--sl-border);
  backdrop-filter: saturate(160%) blur(14px);
}

.sl-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.sl-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.sl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sl-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.sl-logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--sl-white);
  background: var(--sl-blue);
  border-radius: 12px;
  font-weight: 900;
}

.sl-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sl-menu a {
  color: var(--sl-muted);
  font-size: 14px;
  font-weight: 700;
}

.sl-menu a:hover {
  color: var(--sl-ink);
}

.sl-nav-cta,
.sl-button,
.sl-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--sl-white);
  background: var(--sl-blue);
  box-shadow: 0 10px 24px rgba(30, 111, 255, 0.20);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.sl-button:hover,
.sl-form button:hover,
.sl-nav-cta:hover {
  color: var(--sl-white);
  background: var(--sl-blue-dark);
}

.sl-button.secondary {
  color: var(--sl-ink);
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  box-shadow: none;
}

.sl-main {
  flex: 1;
}

.sl-hero {
  padding: 72px 0 46px;
}

.sl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 46px;
  align-items: center;
}

.sl-eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
  color: var(--sl-blue-dark);
  background: var(--sl-soft-blue);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.sl-hero h1,
.sl-page-title h1 {
  margin: 0;
  color: var(--sl-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.sl-hero p,
.sl-page-title p {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--sl-muted);
  font-size: 18px;
  line-height: 1.65;
}

.sl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sl-phone-card {
  border: 1px solid var(--sl-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--sl-shadow);
  padding: 22px;
}

.sl-phone-screen {
  border-radius: 24px;
  background: var(--sl-ink);
  overflow: hidden;
  color: var(--sl-white);
}

.sl-screen-top {
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sl-screen-pill {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #b8cdfd;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.sl-number {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.sl-screen-list {
  padding: 12px;
}

.sl-screen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  color: var(--sl-ink);
  background: var(--sl-white);
}

.sl-screen-row + .sl-screen-row {
  margin-top: 10px;
}

.sl-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--sl-blue);
  background: var(--sl-soft-blue);
  border-radius: 14px;
  font-weight: 900;
}

.sl-section {
  padding: 54px 0;
}

.sl-section.alt {
  background: var(--sl-soft);
}

.sl-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.sl-section-head h2,
.sl-page-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.sl-section-head p,
.sl-page-content p,
.sl-page-content li {
  color: var(--sl-muted);
}

.sl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sl-card {
  height: 100%;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  background: var(--sl-white);
  padding: 22px;
}

.sl-card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.sl-card p {
  margin: 0;
  color: var(--sl-muted);
}

.sl-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sl-policy-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--sl-border);
  border-radius: 20px;
  padding: 22px;
  color: var(--sl-ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 36px rgba(15, 27, 45, 0.06);
}

.sl-policy-card:hover {
  color: var(--sl-ink);
  border-color: rgba(30, 111, 255, 0.35);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.sl-policy-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.sl-policy-card span:last-child {
  color: var(--sl-muted);
}

.sl-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.sl-page-title {
  padding: 58px 0 26px;
}

.sl-page-content {
  padding: 28px 0 64px;
}

.sl-panel {
  border: 1px solid var(--sl-border);
  border-radius: 20px;
  background: var(--sl-white);
  padding: 24px;
}

.sl-panel + .sl-panel {
  margin-top: 16px;
}

.sl-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--sl-ink);
  font-size: 13px;
  font-weight: 800;
}

.sl-form input,
.sl-form select,
.sl-form textarea {
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--sl-border);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--sl-ink);
  background: var(--sl-soft);
  font: inherit;
}

.sl-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sl-honeypot {
  position: absolute;
  left: -9999px;
}

.sl-alert {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 750;
}

.sl-alert.success {
  color: #067647;
  background: #e7f8f0;
}

.sl-alert.error {
  color: #b42318;
  background: #fdebea;
}

.sl-steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.sl-steps li {
  position: relative;
  padding: 14px 14px 14px 54px;
  border: 1px solid var(--sl-border);
  border-radius: 16px;
  background: var(--sl-white);
}

.sl-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 13px;
  left: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--sl-white);
  background: var(--sl-blue);
  font-size: 13px;
  font-weight: 900;
}

.sl-legal-note {
  border-left: 4px solid var(--sl-blue);
  background: var(--sl-soft-blue);
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
}

.sl-footer {
  border-top: 1px solid var(--sl-border);
  background: var(--sl-soft);
  padding: 28px 0;
}

.sl-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--sl-muted);
  font-size: 14px;
}

.sl-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .sl-container {
    width: min(100% - 28px, 1120px);
  }

  .sl-nav {
    min-height: 66px;
  }

  .sl-menu {
    display: none;
  }

  .sl-hero {
    padding-top: 40px;
  }

  .sl-hero-grid,
  .sl-support-layout,
  .sl-policy-grid,
  .sl-grid {
    grid-template-columns: 1fr;
  }

  .sl-hero p,
  .sl-page-title p {
    font-size: 16px;
  }

  .sl-number {
    font-size: 24px;
  }
}
