/* Gradimeli corporate site — shared stylesheet */

:root {
  --ink: #1c1c1e;
  --muted: #5b5b5f;
  --line: #e3e3e6;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --accent: #3d5a9e;
  --accent-dark: #2e447c;
  --amber: #b8863a;
  --amber-bg: #fff6e0;
  --warn-bg: #fff2f0;
  --warn-line: #c94a3a;
  --warn-ink: #7a2c22;
  --note-bg: #f0f3fa;
  --max: 960px;
  --max-narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .logo-word {
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, Arial, sans-serif;
}

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

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand:hover { text-decoration: none; }
.brand:hover .brand-name { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.is-current { color: var(--accent); }

.lang-switch a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.lang-switch a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
}

p { margin: 0 0 16px; }

/* ---------- Hero (photo) ---------- */

.hero-photo {
  position: relative;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 42%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.34) 55%, rgba(255,255,255,0) 78%);
}

.hero-photo__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo__mark {
  height: 84px;
  width: auto;
  margin-bottom: 22px;
}

.hero-photo__word {
  height: 56px;
  width: auto;
  margin-bottom: 22px;
}

.hero-photo__tagline {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-photo__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Plain (non-photo) hero used on inner pages */
.hero {
  padding: 72px 0 56px;
}

.hero__logo {
  height: 96px;
  width: auto;
  margin-bottom: 28px;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.card + .card { margin-top: 24px; }

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.app-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.app-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--note-bg);
  flex-shrink: 0;
  overflow: hidden;
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card__body { flex: 1; min-width: 220px; }

.feature-list {
  padding-left: 1.2em;
  margin: 16px 0 0;
}

.feature-list li {
  margin-bottom: 8px;
  color: var(--ink);
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
}

/* Products grid (apps overview page) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}

.product-tile:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.product-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}

.product-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-tile h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.product-tile .subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.product-tile p.desc {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 16px;
}

.product-tile .learn-more {
  font-size: 0.88rem;
  font-weight: 700;
}

/* App detail page header */
.app-detail__head {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.app-detail__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-detail__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Legal document pages ---------- */

.doc-wrap {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.doc-wrap h1 {
  font-size: 1.55rem;
  margin: 0 0 8px;
}

.doc-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 40px;
}

.doc-wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc-wrap p, .doc-wrap li {
  font-size: 0.95rem;
  color: var(--ink);
}

.doc-wrap ul {
  padding-left: 1.3em;
  margin: 8px 0;
}

.doc-wrap li { margin-bottom: 6px; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 16px 0;
}

.warning {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-line);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--warn-ink);
  margin: 16px 0;
}

.placeholder {
  background: var(--amber-bg);
  padding: 1px 4px;
  border-radius: 3px;
  color: #7a5b00;
}

/* ---------- Support page ---------- */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin: 24px 0;
}

.contact-box .email {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

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

.contact-form {
  margin-top: 8px;
  max-width: 520px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group .required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--warn-line);
  background: var(--warn-bg);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.recaptcha-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 16px 0;
}

.g-recaptcha {
  margin: 20px 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover { color: var(--accent); }

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

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

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 56px 0 48px; }
  .hero__logo { height: 72px; }
  section { padding: 48px 0; }
  .site-header__inner { padding: 14px 20px; }
  .main-nav { gap: 16px; }
}
